Change chart directory structure

This commit is contained in:
wbsong111
2026-01-19 16:11:44 +09:00
parent 0f2284bf35
commit 0436749932
5948 changed files with 119 additions and 79 deletions
@@ -0,0 +1,3 @@
apiVersion: v2
name: grafana
version: 3.4.1
@@ -0,0 +1,16 @@
# grafana
![Version: 3.4.1](https://img.shields.io/badge/Version-3.4.1-informational?style=flat-square)
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| configMapName | string | `"{{ include \"kyverno.fullname\" . }}-grafana"` | Configmap name template. |
| 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. |
| annotations | object | `{}` | Grafana dashboard configmap annotations. |
| labels | object | `{"grafana_dashboard":"1"}` | Grafana dashboard configmap labels |
| grafanaDashboard | object | `{"create":false,"matchLabels":{"dashboards":"grafana"}}` | create GrafanaDashboard custom resource referencing to the configMap. according to https://grafana-operator.github.io/grafana-operator/docs/examples/dashboard_from_configmap/readme/ |
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
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"