Skip to content

Commit

Permalink
feat(litmus): add pod annotaion support
Browse files Browse the repository at this point in the history
  • Loading branch information
itninja-hue committed Sep 14, 2022
1 parent 72cf365 commit 374f53b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/litmus/templates/auth-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ spec:
{{- if .Values.portal.server.customLabels }}
{{ toYaml .Values.portal.server.customLabels | nindent 8 }}
{{- end }}
{{- if .Values.portal.server.podAnnotations }}
annotations:
{{- range $key, $value := .Values.portal.server.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
automountServiceAccountToken: {{ .Values.portal.server.authServer.automountServiceAccountToken }}
serviceAccountName: {{ .Values.portal.server.serviceAccountName }}
Expand Down
6 changes: 6 additions & 0 deletions charts/litmus/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ spec:
{{- if .Values.portal.frontend.customLabels }}
{{ toYaml .Values.portal.frontend.customLabels | nindent 8 }}
{{- end }}
{{- if .Values.portal.frontend.podAnnotations }}
annotations:
{{- range $key, $value := .Values.portal.frontend.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
automountServiceAccountToken: {{ .Values.portal.frontend.automountServiceAccountToken }}
{{- if .Values.image.imagePullSecrets }}
Expand Down
6 changes: 6 additions & 0 deletions charts/litmus/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ spec:
{{- if .Values.portal.server.customLabels }}
{{ toYaml .Values.portal.server.customLabels | nindent 8 }}
{{- end }}
{{- if .Values.portal.server.podAnnotations }}
annotations:
{{- range $key, $value := .Values.portal.server.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
serviceAccountName: {{ .Values.portal.server.serviceAccountName }}
{{- if .Values.image.imagePullSecrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/litmus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ upgradeAgent:
tolerations: []
affinity: {}
resources: {}
podAnnotations: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down Expand Up @@ -100,6 +101,7 @@ portal:
pullPolicy: "Always"
containerPort: 8080
customLabels: {}
podAnnotations: {}
# my.company.com/tier: "frontend"

resources:
Expand Down Expand Up @@ -296,6 +298,7 @@ portal:
nodeSelector: {}
tolerations: []
affinity: {}
podAnnotations: {}

# OpenShift specific configuration
openshift:
Expand Down

0 comments on commit 374f53b

Please sign in to comment.