Skip to content

Commit

Permalink
Merge pull request #141 from Anton0C/patch-1
Browse files Browse the repository at this point in the history
feat: Add podAnnotations for deployment
  • Loading branch information
zakkg3 authored Sep 25, 2024
2 parents 6969cef + 05dd5c8 commit d6bd826
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/cluster-secret/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
labels:
app: clustersecret
{{- include "cluster-secret.selectorLabels" . | nindent 8 }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 8 }}
{{- end }}
spec:
securityContext:
runAsUser: 100 # 100 is set by the container and can NOT be changed here - this would result in a getpwuid() error
Expand Down Expand Up @@ -59,4 +63,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/cluster-secret/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ nodeSelector: {}
tolerations: []

affinity: {}

# Additional Pod annotations
podAnnotations: {}

0 comments on commit d6bd826

Please sign in to comment.