mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48: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 {
|
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)
|
args, err := flags.Parse(&opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e, ok := err.(*flags.Error); ok {
|
if e, ok := err.(*flags.Error); ok {
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ $(function () {
|
|||||||
reportError("Failed to get tool version", xhr)
|
reportError("Failed to get tool version", xhr)
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
fillToolVersion(data)
|
fillToolVersion(data)
|
||||||
|
if (data.LimitedToNamespace) {
|
||||||
$("#limitNamespace").show().find("span").text(data.LimitedToNamespace)
|
$("#limitNamespace").show().find("span").text(data.LimitedToNamespace)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: "dashboard"
|
name: "dashboard"
|
||||||
version: "0.2.5"
|
version: "0.2.6"
|
||||||
usage: "A simplified way of working with Helm"
|
usage: "A simplified way of working with Helm"
|
||||||
description: "View HELM situation in nice web UI"
|
description: "View HELM situation in nice web UI"
|
||||||
command: "$HELM_PLUGIN_DIR/bin/helm-dashboard"
|
command: "$HELM_PLUGIN_DIR/bin/helm-dashboard"
|
||||||
|
|||||||
Reference in New Issue
Block a user