mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-14 11:48:53 +00:00
Make the grafana dashboard configmap name customizable (#6110)
* Make the grafana dashboard configmap customizable Signed-off-by: Campesino Chacón Alvaro <acampesino@stratio.com> * Manage the grafana configMapName in helpers * use tpl Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * Use configMapName as variable name --------- Signed-off-by: Campesino Chacón Alvaro <acampesino@stratio.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
7b3db15662
commit
0ff195667d
3 changed files with 9 additions and 3 deletions
|
@ -241,6 +241,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||||
| webhooksCleanup.image | string | `"bitnami/kubectl:latest"` | `kubectl` image to run commands for deleting webhooks. |
|
| webhooksCleanup.image | string | `"bitnami/kubectl:latest"` | `kubectl` image to run commands for deleting webhooks. |
|
||||||
| tufRootMountPath | string | `"/.sigstore"` | A writable volume to use for the TUF root initialization. |
|
| tufRootMountPath | string | `"/.sigstore"` | A writable volume to use for the TUF root initialization. |
|
||||||
| grafana.enabled | bool | `false` | Enable grafana dashboard creation. |
|
| grafana.enabled | bool | `false` | Enable grafana dashboard creation. |
|
||||||
|
| grafana.configMapName | string | `"{{ include \"kyverno.fullname\" . }}-grafana"` | Configmap name template. |
|
||||||
| grafana.namespace | string | `nil` | Namespace to create the grafana dashboard configmap. If not set, it will be created in the same namespace where the chart is deployed. |
|
| grafana.namespace | string | `nil` | Namespace to create the grafana dashboard configmap. If not set, it will be created in the same namespace where the chart is deployed. |
|
||||||
| grafana.annotations | object | `{}` | Grafana dashboard configmap annotations. |
|
| grafana.annotations | object | `{}` | Grafana dashboard configmap annotations. |
|
||||||
| cleanupController.enabled | bool | `true` | Enable cleanup controller. |
|
| cleanupController.enabled | bool | `true` | Enable cleanup controller. |
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "kyverno.configMapName" . }}-grafana
|
name: {{ tpl .Values.grafana.configMapName . }}
|
||||||
namespace: {{ default (include "kyverno.namespace" .) .Values.grafana.namespace }}
|
namespace: {{ default (include "kyverno.namespace" .) .Values.grafana.namespace }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .Values.grafana.annotations | nindent 4 }}
|
{{- toYaml .Values.grafana.annotations | nindent 4 }}
|
||||||
|
|
|
@ -503,9 +503,14 @@ tufRootMountPath: /.sigstore
|
||||||
grafana:
|
grafana:
|
||||||
# -- Enable grafana dashboard creation.
|
# -- Enable grafana dashboard creation.
|
||||||
enabled: false
|
enabled: false
|
||||||
# -- Namespace to create the grafana dashboard configmap.
|
|
||||||
|
# -- Configmap name template.
|
||||||
|
configMapName: '{{ include "kyverno.fullname" . }}-grafana'
|
||||||
|
|
||||||
|
# -- (string) Namespace to create the grafana dashboard configmap.
|
||||||
# If not set, it will be created in the same namespace where the chart is deployed.
|
# If not set, it will be created in the same namespace where the chart is deployed.
|
||||||
namespace:
|
namespace: ~
|
||||||
|
|
||||||
# -- Grafana dashboard configmap annotations.
|
# -- Grafana dashboard configmap annotations.
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue