rancher-charts/charts/rancher-monitoring/100.0.0+up16.6.0/templates/grafana/namespaces.yaml

14 lines
507 B
YAML
Raw Normal View History

2021-08-30 16:48:23 +00:00
{{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled (not .Values.grafana.defaultDashboards.useExistingNamespace) }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.grafana.defaultDashboards.namespace }}
labels:
name: {{ .Values.grafana.defaultDashboards.namespace }}
{{ include "kube-prometheus-stack.labels" . | indent 4 }}
annotations:
{{- if not .Values.grafana.defaultDashboards.cleanupOnUninstall }}
helm.sh/resource-policy: "keep"
{{- end }}
{{- end }}