Skip to content

Commit 0cf363f

Browse files
authored
Helm chart support pod annotation (#88)
1 parent 01d8dbd commit 0cf363f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/artifacts/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ spec:
1919
app: {{ template "fullname" $ }}
2020
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
2121
release: "{{ .Release.Name }}"
22+
{{- with .Values.podAnnotations }}
23+
annotations:
24+
{{- toYaml . | nindent 8 }}
25+
{{- end }}
2226
spec:
2327
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
2428
{{- if .Values.image.pullSecrets }}

charts/artifacts/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ nameOverride: "artifacts"
77
## fullnameOverride allows to change the full name of resources
88
fullnameOverride:
99

10+
podAnnotations: {}
11+
1012
githubApiBasicAuth:
1113
## githubApiUrl contains the api url to check the auth connection
1214
##

0 commit comments

Comments
 (0)