Skip to content

Commit

Permalink
Added possibility to set annotations in deployment template
Browse files Browse the repository at this point in the history
  • Loading branch information
Hauke Brandt committed Aug 11, 2022
1 parent e237fa1 commit 60c8dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static_site/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
metadata:
labels:
app: {{ .Values.name }}
annotations:
{{- range $key, $value := .Values.deployment.template.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
containers:
- name: {{ .Values.name }}
Expand Down
2 changes: 2 additions & 0 deletions static_site/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ service:
- protocol: TCP
port: 80
deployment:
template:
annotations: {}
containers:
imagePullPolicy: "IfNotPresent"
resources:
Expand Down

0 comments on commit 60c8dea

Please sign in to comment.