diff --git a/templates/applications/notify.yaml b/templates/applications/notify.yaml index a6a441a9..4e00a10a 100644 --- a/templates/applications/notify.yaml +++ b/templates/applications/notify.yaml @@ -9,6 +9,10 @@ metadata: {{- if .Values.commonLabels }} {{- include "docspace.labels.commonLabels" . | trim | nindent 4 }} {{- end }} + {{- if or .Values.commonAnnotations .Values.notify.annotations }} + {{- $dictValue := default .Values.commonAnnotations .Values.notify.annotations }} + annotations: {{- include "docspace.annotations" ( dict "keyName" $dictValue "context" $ ) | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.notify.replicaCount }} selector: @@ -37,11 +41,9 @@ spec: {{- if .Values.commonLabels }} {{- include "docspace.labels.commonLabels" . | trim | nindent 8 }} {{- end }} - {{- if .Values.podAnnotations }} - annotations: - {{- range $key, $value := .Values.podAnnotations }} - {{ $key }}: {{ tpl $value $ }} - {{- end }} + {{- if or .Values.podAnnotations .Values.notify.podAnnotations }} + {{- $dictValue := default .Values.podAnnotations .Values.notify.podAnnotations }} + annotations: {{- include "docspace.annotations" ( dict "keyName" $dictValue "context" $ ) | nindent 8 }} {{- end }} spec: serviceAccountName: {{ include "docspace.serviceAccountName" . }} diff --git a/values.yaml b/values.yaml index 9c9b0c8c..15912928 100644 --- a/values.yaml +++ b/values.yaml @@ -2372,6 +2372,10 @@ notify: # notify.kind The controller used for deploy # Possible values are `Deployment` (default) or `StatefulSet` kind: Deployment + # notify.annotations Defines annotations that will be additionally added to Notify deploy + # If set to, it takes priority over the `commonAnnotations` + # You can also use `tpl` as the value for the key + annotations: {} # notify.replicaCount Number of Notify replicas to deploy replicaCount: 2 # Update strategy used to replace old Pods by new ones @@ -2389,6 +2393,8 @@ notify: # Used if `notify.kind` is set to `StatefulSet` # ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies podManagementPolicy: OrderedReady + # notify.podAnnotations Map of annotations to add to the Notify pods + podAnnotations: {} # Configure a Security Context for the Notify Pods # If set to, it takes priority over the `podSecurityContext` podSecurityContext: