diff --git a/charts/litmus/templates/auth-server-deployment.yaml b/charts/litmus/templates/auth-server-deployment.yaml index c2f0f15d..c36018cf 100644 --- a/charts/litmus/templates/auth-server-deployment.yaml +++ b/charts/litmus/templates/auth-server-deployment.yaml @@ -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 }} diff --git a/charts/litmus/templates/frontend-deployment.yaml b/charts/litmus/templates/frontend-deployment.yaml index e597de44..0f60980b 100644 --- a/charts/litmus/templates/frontend-deployment.yaml +++ b/charts/litmus/templates/frontend-deployment.yaml @@ -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 }} diff --git a/charts/litmus/templates/server-deployment.yaml b/charts/litmus/templates/server-deployment.yaml index 041d5eb9..48b36d32 100644 --- a/charts/litmus/templates/server-deployment.yaml +++ b/charts/litmus/templates/server-deployment.yaml @@ -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 }} diff --git a/charts/litmus/values.yaml b/charts/litmus/values.yaml index c162fa10..cb8b6973 100644 --- a/charts/litmus/values.yaml +++ b/charts/litmus/values.yaml @@ -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 @@ -100,6 +101,7 @@ portal: pullPolicy: "Always" containerPort: 8080 customLabels: {} + podAnnotations: {} # my.company.com/tier: "frontend" resources: @@ -296,6 +298,7 @@ portal: nodeSelector: {} tolerations: [] affinity: {} + podAnnotations: {} # OpenShift specific configuration openshift: