1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

feat: add grafana dashboard to helm chart ()

* feat: add grafana dashboard to helm chart

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* release note

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: treydock <tdockendorf@osc.edu>
This commit is contained in:
Charles-Edouard Brétéché 2022-11-04 17:38:05 +01:00 committed by GitHub
parent 745482a0e4
commit 5557d6c85d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 2883 additions and 2 deletions

View file

@ -50,3 +50,5 @@ annotations:
description: Add startup probes support
- kind: added
description: Support extra CRD annotations
- kind: added
description: Grafana dashboard.

View file

@ -210,7 +210,10 @@ The command removes all the Kubernetes components associated with the chart and
| networkPolicy.ingressFrom | list | `[]` | A list of valid from selectors according to https://kubernetes.io/docs/concepts/services-networking/network-policies. |
| webhooksCleanup.enable | bool | `false` | Create a helm pre-delete hook to cleanup 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.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. |
## TLS Configuration

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,13 @@
{{- if .Values.grafana.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "kyverno.configMapName" . }}-grafana
namespace: {{ default (include "kyverno.namespace" .) .Values.grafana.namespace }}
annotations:
{{- toYaml .Values.grafana.annotations | nindent 4 }}
labels:
grafana_dashboard: "1"
data:
{{ (.Files.Glob "grafana/*").AsConfig | indent 2 }}
{{- end -}}

View file

@ -464,5 +464,14 @@ webhooksCleanup:
# -- `kubectl` image to run commands for deleting webhooks.
image: bitnami/kubectl:latest
# -- A writable volume to use for the TUF root initialization
# -- A writable volume to use for the TUF root initialization.
tufRootMountPath: /.sigstore
grafana:
# -- Enable grafana dashboard creation.
enabled: false
# -- Namespace to create the grafana dashboard configmap.
# If not set, it will be created in the same namespace where the chart is deployed.
namespace:
# -- Grafana dashboard configmap annotations.
annotations: {}