Skip to content

Commit b36ece3

Browse files
fnkrhensur
andauthored
Allow to set annotations for deployment or statefulSet via Helm Values (#109)
Co-authored-by: Henning <h.surmeier@mittwald.de>
1 parent 8f4b4d9 commit b36ece3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

chart/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
name: {{ include "kube-httpcache.fullname" . }}
77
labels:
88
{{- include "kube-httpcache.labels" . | nindent 4 }}
9+
{{- with .Values.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
913
spec:
1014
{{- if not .Values.autoscaling.enabled }}
1115
replicas: {{ .Values.replicaCount }}

chart/templates/statefulset.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
name: {{ include "kube-httpcache.fullname" . }}
77
labels:
88
{{- include "kube-httpcache.labels" . | nindent 4 }}
9+
{{- with .Values.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
913
spec:
1014
serviceName: {{ include "kube-httpcache.fullname" . }}
1115
{{- if not .Values.autoscaling.enabled }}

chart/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ podSecurityPolicy:
7171
enabled: false
7272
# name: unrestricted-psp
7373

74+
annotations: {}
7475
podAnnotations: {}
7576

7677
podSecurityContext: {}

0 commit comments

Comments
 (0)