mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-27 19:47:31 +00:00
* ✨ Add `kube://` prefixed URI support * 🐛 Fix the `a container name must be specified for pod <POD_NAME>, choose one of: [sniffer tracer]` error * 🐛 Fix all of the issues in `kube://` prefixed URI support * 🐛 Fix the `invalid reference format` error * 🐛 Fix the `kubeUrl`
30 lines
691 B
Go
30 lines
691 B
Go
package misc
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path"
|
|
)
|
|
|
|
var (
|
|
Software = "Kubeshark"
|
|
Program = "kubeshark"
|
|
Description = "The API Traffic Analyzer for Kubernetes"
|
|
Website = "https://kubeshark.co"
|
|
Email = "info@kubeshark.co"
|
|
Ver = "0.0.0"
|
|
Branch = "master"
|
|
GitCommitHash = "" // this var is overridden using ldflags in makefile when building
|
|
BuildTimestamp = "" // this var is overridden using ldflags in makefile when building
|
|
RBACVersion = "v1"
|
|
Platform = ""
|
|
)
|
|
|
|
func GetDotFolderPath() string {
|
|
home, homeDirErr := os.UserHomeDir()
|
|
if homeDirErr != nil {
|
|
return ""
|
|
}
|
|
return path.Join(home, fmt.Sprintf(".%s", Program))
|
|
}
|