Skip to content

Commit

Permalink
Adding configmap annotation with example in values file how to use it…
Browse files Browse the repository at this point in the history
… with ArgoCD in case configmap is too big.

Signed-off-by: jmiszczak <jaroslaw.miszczak83@gmail.com>
  • Loading branch information
jmiszczak83 committed Apr 4, 2024
1 parent 3761a1f commit 9fe7a1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: grafana
version: 7.3.7
version: 7.3.8
appVersion: 10.4.0
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
9 changes: 7 additions & 2 deletions charts/grafana/templates/configmap.yaml
Expand Up @@ -6,9 +6,14 @@ metadata:
namespace: {{ include "grafana.namespace" . }}
labels:
{{- include "grafana.labels" . | nindent 4 }}
{{- with .Values.annotations }}
{{- if or .Values.configMapAnnotations .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.configMapAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
data:
{{- include "grafana.configData" . | nindent 2 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/grafana/values.yaml
Expand Up @@ -198,6 +198,10 @@ downloadDashboards:
## Pod Annotations
# podAnnotations: {}

## ConfigMap Annotations
# configMapAnnotations: {}
# argocd.argoproj.io/sync-options: Replace=true

## Pod Labels
# podLabels: {}

Expand Down

0 comments on commit 9fe7a1c

Please sign in to comment.