From c4edf6ff8a4c1f1038c6ae9953dfda0f2460d0ae Mon Sep 17 00:00:00 2001 From: Daljit Sharma Date: Thu, 24 Oct 2024 11:57:55 -0400 Subject: [PATCH] feat: add support for volume mounts in skooner --- charts/skooner/Chart.yaml | 4 ++-- charts/skooner/README.md | 3 +++ charts/skooner/templates/deployment.yaml | 8 ++++++++ charts/skooner/values.schema.json | 6 ++++++ charts/skooner/values.yaml | 6 ++++++ 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/charts/skooner/Chart.yaml b/charts/skooner/Chart.yaml index a1922d64..3eca5298 100644 --- a/charts/skooner/Chart.yaml +++ b/charts/skooner/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: skooner description: Simple Kubernetes real-time dashboard and management. type: application -version: 0.0.10 +version: 0.0.11 appVersion: "stable" home: https://github.com/christianhuth/helm-charts icon: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRu8eQrFBosk7yHTiDEwjnVcMRyDD5uIaNXhlZ1m0yiC4H8RP1j0PlBPtgtv0bdH0JwlOE @@ -15,7 +15,7 @@ annotations: artifacthub.io/category: monitoring-logging artifacthub.io/changes: | - kind: changed - description: added support for stable autoscaling api + description: added support for volume mounts artifacthub.io/screenshots: | - title: Overview of the workloads running inside of Kubernetes. url: https://skooner.io/images/k8dash-screen.png diff --git a/charts/skooner/README.md b/charts/skooner/README.md index 6a24045e..41b7c27b 100644 --- a/charts/skooner/README.md +++ b/charts/skooner/README.md @@ -86,6 +86,9 @@ The command removes all the Kubernetes components associated with the chart and | serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | | tolerations | list | `[]` | Toleration labels for pod assignment | +| volumeMounts | list | `[]` | Container's volume mounts | +| volumes | list | `[]` | Pod's volumes | + Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/charts/skooner/templates/deployment.yaml b/charts/skooner/templates/deployment.yaml index 98ba355b..c8ac186a 100644 --- a/charts/skooner/templates/deployment.yaml +++ b/charts/skooner/templates/deployment.yaml @@ -49,6 +49,10 @@ spec: resources: {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} {{- if .Values.oidc.enabled }} env: - name: OIDC_URL @@ -77,3 +81,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.volumes}} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/skooner/values.schema.json b/charts/skooner/values.schema.json index 34a73d76..b2a4241f 100644 --- a/charts/skooner/values.schema.json +++ b/charts/skooner/values.schema.json @@ -200,6 +200,12 @@ }, "tolerations": { "type": "array" + }, + "volumeMounts": { + "type": "array" + }, + "volumes": { + "type": "array" } } } diff --git a/charts/skooner/values.yaml b/charts/skooner/values.yaml index e6ee3ab6..6f4d35e2 100644 --- a/charts/skooner/values.yaml +++ b/charts/skooner/values.yaml @@ -115,3 +115,9 @@ oidc: clusterRoleBinding: # -- Define which ClusterRole to bind to: cluster-admin, edit, view clusterRole: edit + +# -- Container's volume mounts +volumeMounts: [] + +# -- Pod's volumes +volumes: []