Skip to content

Commit

Permalink
Allow to set annotations for deployment or statefulSet via Helm Values (
Browse files Browse the repository at this point in the history
#109)

Co-authored-by: Henning <[email protected]>
  • Loading branch information
fnkr and hensur authored Oct 18, 2021
1 parent 8f4b4d9 commit b36ece3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
name: {{ include "kube-httpcache.fullname" . }}
labels:
{{- include "kube-httpcache.labels" . | nindent 4 }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
name: {{ include "kube-httpcache.fullname" . }}
labels:
{{- include "kube-httpcache.labels" . | nindent 4 }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
serviceName: {{ include "kube-httpcache.fullname" . }}
{{- if not .Values.autoscaling.enabled }}
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ podSecurityPolicy:
enabled: false
# name: unrestricted-psp

annotations: {}
podAnnotations: {}

podSecurityContext: {}
Expand Down

0 comments on commit b36ece3

Please sign in to comment.