mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2ddb94c16 | ||
|
|
861de33bfe | ||
|
|
26d82dd5ab | ||
|
|
b1294cbe1a | ||
|
|
d4583a222e | ||
|
|
a0bf59edc6 | ||
|
|
79a79979e2 |
@@ -9,7 +9,7 @@
|
|||||||
<p align="center">A simplified way of working with Helm.</p>
|
<p align="center">A simplified way of working with Helm.</p>
|
||||||
|
|
||||||
|
|
||||||
 [](https://github.com/komodorio/helm-dashboard/issues)      [](https://github.com/komodorio/helm-dashboard)
|
 [](https://github.com/komodorio/helm-dashboard/issues)    [](https://github.com/komodorio/helm-dashboard/releases)  [](https://github.com/komodorio/helm-dashboard)
|
||||||
|
|
||||||
<kbd>[<img src="images/screenshot.png" style="width: 100%; border: 1px solid silver;" border="1" alt="Screenshot">](images/screenshot.png)</kbd>
|
<kbd>[<img src="images/screenshot.png" style="width: 100%; border: 1px solid silver;" border="1" alt="Screenshot">](images/screenshot.png)</kbd>
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ name: helm-dashboard
|
|||||||
description: A GUI Dashboard for Helm by Komodor
|
description: A GUI Dashboard for Helm by Komodor
|
||||||
icon: "https://raw.githubusercontent.com/komodorio/helm-dashboard/main/pkg/dashboard/static/logo.svg"
|
icon: "https://raw.githubusercontent.com/komodorio/helm-dashboard/main/pkg/dashboard/static/logo.svg"
|
||||||
|
|
||||||
version: 0.1.6
|
version: 0.1.7
|
||||||
appVersion: "1.2.0"
|
appVersion: "1.3.0"
|
||||||
|
|||||||
@@ -14,8 +14,10 @@ spec:
|
|||||||
{{- if .Values.dashboard.persistence.hostPath }}
|
{{- if .Values.dashboard.persistence.hostPath }}
|
||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
{{- if kindIs "string" .Values.dashboard.persistence.storageClass }}
|
||||||
storageClassName: "{{ .Values.dashboard.persistence.storageClass }}"
|
storageClassName: "{{ .Values.dashboard.persistence.storageClass }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
accessModes:
|
accessModes:
|
||||||
{{- if not (empty .Values.dashboard.persistence.accessModes) }}
|
{{- if not (empty .Values.dashboard.persistence.accessModes) }}
|
||||||
{{- range .Values.dashboard.persistence.accessModes }}
|
{{- range .Values.dashboard.persistence.accessModes }}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ dashboard:
|
|||||||
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
||||||
## GKE, AWS & OpenStack)
|
## GKE, AWS & OpenStack)
|
||||||
##
|
##
|
||||||
storageClass: ""
|
storageClass: null
|
||||||
|
|
||||||
## Helm Dashboard Persistent Volume access modes
|
## Helm Dashboard Persistent Volume access modes
|
||||||
## Must match those of existing PV or dynamic provisioner
|
## Must match those of existing PV or dynamic provisioner
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -48,7 +48,7 @@ require (
|
|||||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||||
github.com/docker/cli v20.10.21+incompatible // indirect
|
github.com/docker/cli v20.10.21+incompatible // indirect
|
||||||
github.com/docker/distribution v2.8.1+incompatible // indirect
|
github.com/docker/distribution v2.8.1+incompatible // indirect
|
||||||
github.com/docker/docker v20.10.21+incompatible // indirect
|
github.com/docker/docker v20.10.24+incompatible // indirect
|
||||||
github.com/docker/docker-credential-helpers v0.7.0 // indirect
|
github.com/docker/docker-credential-helpers v0.7.0 // indirect
|
||||||
github.com/docker/go-connections v0.4.0 // indirect
|
github.com/docker/go-connections v0.4.0 // indirect
|
||||||
github.com/docker/go-metrics v0.0.1 // indirect
|
github.com/docker/go-metrics v0.0.1 // indirect
|
||||||
|
|||||||
4
go.sum
4
go.sum
@@ -135,8 +135,8 @@ github.com/docker/cli v20.10.21+incompatible h1:qVkgyYUnOLQ98LtXBrwd/duVqPT2X4SH
|
|||||||
github.com/docker/cli v20.10.21+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
github.com/docker/cli v20.10.21+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
||||||
github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68=
|
github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68=
|
||||||
github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||||
github.com/docker/docker v20.10.21+incompatible h1:UTLdBmHk3bEY+w8qeO5KttOhy6OmXWsl/FEet9Uswog=
|
github.com/docker/docker v20.10.24+incompatible h1:Ugvxm7a8+Gz6vqQYQQ2W7GYq5EUPaAiuPgIfVyI3dYE=
|
||||||
github.com/docker/docker v20.10.21+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
github.com/docker/docker v20.10.24+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||||
github.com/docker/docker-credential-helpers v0.7.0 h1:xtCHsjxogADNZcdv1pKUHXryefjlVRqWqIhk/uXJp0A=
|
github.com/docker/docker-credential-helpers v0.7.0 h1:xtCHsjxogADNZcdv1pKUHXryefjlVRqWqIhk/uXJp0A=
|
||||||
github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0=
|
github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0=
|
||||||
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
|
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
@@ -133,8 +134,19 @@ func (h *HelmHandler) Resources(c *gin.Context) {
|
|||||||
|
|
||||||
res, err := objects.ParseManifests(rel.Orig.Manifest)
|
res, err := objects.ParseManifests(rel.Orig.Manifest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = c.AbortWithError(http.StatusInternalServerError, err)
|
res = append(res, &v1.Carp{
|
||||||
return
|
TypeMeta: metav1.TypeMeta{Kind: "ManifestParseError"},
|
||||||
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
|
Name: err.Error(),
|
||||||
|
},
|
||||||
|
Spec: v1.CarpSpec{},
|
||||||
|
Status: v1.CarpStatus{
|
||||||
|
Phase: "BrokenManifest",
|
||||||
|
Message: err.Error(),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
//_ = c.AbortWithError(http.StatusInternalServerError, err)
|
||||||
|
//return
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Query("health") != "" { // we need to query k8s for health status
|
if c.Query("health") != "" { // we need to query k8s for health status
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import (
|
|||||||
"helm.sh/helm/v3/pkg/release"
|
"helm.sh/helm/v3/pkg/release"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
|
||||||
"k8s.io/client-go/tools/clientcmd"
|
"k8s.io/client-go/tools/clientcmd"
|
||||||
|
//"sigs.k8s.io/yaml"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DataLayer struct {
|
type DataLayer struct {
|
||||||
@@ -113,20 +114,20 @@ func ParseManifests(out string) ([]*v1.Carp, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errorx.Decorate(err, "failed to parse manifest document #%d", len(res)+1)
|
return res, errorx.Decorate(err, "failed to parse manifest document #%d", len(res)+1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// k8s libs uses only JSON tags defined, say hello to https://github.com/go-yaml/yaml/issues/424
|
// k8s libs uses only JSON tags defined, say hello to https://github.com/go-yaml/yaml/issues/424
|
||||||
// we can juggle it
|
// we can juggle it
|
||||||
jsoned, err := json.Marshal(tmp)
|
jsoned, err := json.Marshal(tmp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var doc v1.Carp
|
var doc v1.Carp
|
||||||
err = json.Unmarshal(jsoned, &doc)
|
err = json.Unmarshal(jsoned, &doc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if doc.Kind == "" {
|
if doc.Kind == "" {
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ function reportError(err, xhr) {
|
|||||||
$("#errorAlert p").text(xhr.responseText)
|
$("#errorAlert p").text(xhr.responseText)
|
||||||
}
|
}
|
||||||
$("#errorAlert").show()
|
$("#errorAlert").show()
|
||||||
|
sendStats("errorReported", {"errMessage": err})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: "dashboard"
|
name: "dashboard"
|
||||||
version: "1.2.0"
|
version: "1.3.0"
|
||||||
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