mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-04-20 17:37:06 +00:00
37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
package mizu
|
|
|
|
import (
|
|
"os"
|
|
"path"
|
|
)
|
|
|
|
var (
|
|
SemVer = "0.0.1"
|
|
Branch = "develop"
|
|
GitCommitHash = "" // this var is overridden using ldflags in makefile when building
|
|
BuildTimestamp = "" // this var is overridden using ldflags in makefile when building
|
|
RBACVersion = "v1"
|
|
)
|
|
|
|
const (
|
|
MizuResourcesPrefix = "mizu-"
|
|
ApiServerPodName = MizuResourcesPrefix + "api-server"
|
|
ClusterRoleBindingName = MizuResourcesPrefix + "cluster-role-binding"
|
|
ClusterRoleName = MizuResourcesPrefix + "cluster-role"
|
|
K8sAllNamespaces = ""
|
|
RoleBindingName = MizuResourcesPrefix + "role-binding"
|
|
RoleName = MizuResourcesPrefix + "role"
|
|
ServiceAccountName = MizuResourcesPrefix + "service-account"
|
|
TapperDaemonSetName = MizuResourcesPrefix + "tapper-daemon-set"
|
|
TapperPodName = MizuResourcesPrefix + "tapper"
|
|
ConfigMapName = MizuResourcesPrefix + "policy"
|
|
)
|
|
|
|
func GetMizuFolderPath() string {
|
|
home, homeDirErr := os.UserHomeDir()
|
|
if homeDirErr != nil {
|
|
return ""
|
|
}
|
|
return path.Join(home, ".mizu")
|
|
}
|