added repo
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
apiVersion: v2
|
||||
name: grafana
|
||||
version: 3.8.1
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ tpl .Values.configMapName . }}
|
||||
namespace: {{ default (include "kyverno.namespace" .) .Values.namespace }}
|
||||
annotations:
|
||||
{{- toYaml .Values.annotations | nindent 4 }}
|
||||
labels:
|
||||
{{- toYaml .Values.labels | nindent 4 }}
|
||||
data:
|
||||
{{ (.Files.Glob "dashboard/*").AsConfig | indent 2 }}
|
||||
---
|
||||
{{- if .Values.grafanaDashboard.create -}}
|
||||
{{ range $path, $_ := .Files.Glob "dashboard/*" -}}
|
||||
{{ $name := base $path }}
|
||||
apiVersion: grafana.integreatly.org/v1beta1
|
||||
kind: GrafanaDashboard
|
||||
metadata:
|
||||
name: {{ tpl $.Values.configMapName $ }}-{{ $name }}
|
||||
namespace: {{ default (include "kyverno.namespace" $ ) $.Values.namespace }}
|
||||
spec:
|
||||
allowCrossNamespaceImport: {{ $.Values.grafanaDashboard.allowCrossNamespaceImport }}
|
||||
folder: {{ $.Values.grafanaDashboard.folder }}
|
||||
instanceSelector:
|
||||
matchLabels:
|
||||
{{- toYaml $.Values.grafanaDashboard.matchLabels | nindent 6 }}
|
||||
configMapRef:
|
||||
name: {{ tpl $.Values.configMapName $ }}
|
||||
key: {{ $name }}
|
||||
---
|
||||
{{ end -}}
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,20 @@
|
||||
# -- 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.
|
||||
namespace: ~
|
||||
|
||||
# -- Grafana dashboard configmap annotations.
|
||||
annotations: {}
|
||||
|
||||
# -- Grafana dashboard configmap labels
|
||||
labels:
|
||||
grafana_dashboard: "1"
|
||||
|
||||
# -- create GrafanaDashboard custom resource referencing to the configMap.
|
||||
# according to https://grafana-operator.github.io/grafana-operator/docs/examples/dashboard_from_configmap/readme/
|
||||
grafanaDashboard:
|
||||
create: false
|
||||
matchLabels:
|
||||
dashboards: "grafana"
|
||||
Reference in New Issue
Block a user