mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
Don't take Helm's default namespace into account
This commit is contained in:
7
main.go
7
main.go
@@ -53,7 +53,12 @@ func main() {
|
||||
}
|
||||
|
||||
func parseFlags() options {
|
||||
opts := options{Namespace: os.Getenv("HELM_NAMESPACE")}
|
||||
ns := os.Getenv("HELM_NAMESPACE")
|
||||
if ns == "default" {
|
||||
ns = ""
|
||||
}
|
||||
|
||||
opts := options{Namespace: ns}
|
||||
args, err := flags.Parse(&opts)
|
||||
if err != nil {
|
||||
if e, ok := err.(*flags.Error); ok {
|
||||
|
||||
Reference in New Issue
Block a user