Skip to content

Commit 374f53b

Browse files
committed
feat(litmus): add pod annotaion support
1 parent 72cf365 commit 374f53b

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

charts/litmus/templates/auth-server-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ spec:
2626
{{- if .Values.portal.server.customLabels }}
2727
{{ toYaml .Values.portal.server.customLabels | nindent 8 }}
2828
{{- end }}
29+
{{- if .Values.portal.server.podAnnotations }}
30+
annotations:
31+
{{- range $key, $value := .Values.portal.server.podAnnotations }}
32+
{{ $key }}: {{ $value | quote }}
33+
{{- end }}
34+
{{- end }}
2935
spec:
3036
automountServiceAccountToken: {{ .Values.portal.server.authServer.automountServiceAccountToken }}
3137
serviceAccountName: {{ .Values.portal.server.serviceAccountName }}

charts/litmus/templates/frontend-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ spec:
2626
{{- if .Values.portal.frontend.customLabels }}
2727
{{ toYaml .Values.portal.frontend.customLabels | nindent 8 }}
2828
{{- end }}
29+
{{- if .Values.portal.frontend.podAnnotations }}
30+
annotations:
31+
{{- range $key, $value := .Values.portal.frontend.podAnnotations }}
32+
{{ $key }}: {{ $value | quote }}
33+
{{- end }}
34+
{{- end }}
2935
spec:
3036
automountServiceAccountToken: {{ .Values.portal.frontend.automountServiceAccountToken }}
3137
{{- if .Values.image.imagePullSecrets }}

charts/litmus/templates/server-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ spec:
2626
{{- if .Values.portal.server.customLabels }}
2727
{{ toYaml .Values.portal.server.customLabels | nindent 8 }}
2828
{{- end }}
29+
{{- if .Values.portal.server.podAnnotations }}
30+
annotations:
31+
{{- range $key, $value := .Values.portal.server.podAnnotations }}
32+
{{ $key }}: {{ $value | quote }}
33+
{{- end }}
34+
{{- end }}
2935
spec:
3036
serviceAccountName: {{ .Values.portal.server.serviceAccountName }}
3137
{{- if .Values.image.imagePullSecrets }}

charts/litmus/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ upgradeAgent:
6363
tolerations: []
6464
affinity: {}
6565
resources: {}
66+
podAnnotations: {}
6667
# We usually recommend not to specify default resources and to leave this as a conscious
6768
# choice for the user. This also increases chances charts run on environments with little
6869
# resources, such as Minikube. If you do want to specify resources, uncomment the following
@@ -100,6 +101,7 @@ portal:
100101
pullPolicy: "Always"
101102
containerPort: 8080
102103
customLabels: {}
104+
podAnnotations: {}
103105
# my.company.com/tier: "frontend"
104106

105107
resources:
@@ -296,6 +298,7 @@ portal:
296298
nodeSelector: {}
297299
tolerations: []
298300
affinity: {}
301+
podAnnotations: {}
299302

300303
# OpenShift specific configuration
301304
openshift:

0 commit comments

Comments
 (0)