Skip to content

Commit

Permalink
fix: apply pod annotations to all node.js sim deployments (#681)
Browse files Browse the repository at this point in the history
fix: apply pod annotations to all node.js deployments
  • Loading branch information
kalinkrustev authored Feb 3, 2025
1 parent d8530f0 commit 2d51da7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mojaloop-simulator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ spec:
{{- include "mojaloop-simulator.common-labels" $ | nindent 8 }}
annotations:
checksum/config-rules: {{ $checksumConfigRules }}
# Custom Pod annotations
{{- if $config.config.podAnnotations }}
{{- range $key, $value := $config.config.podAnnotations }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- end }}
{{- end }}
spec:
initContainers:
{{ include "mojaloop-simulator.prependDictToContainerEnv" (dict "containers" $config.config.backend.initContainers "dict" (merge $config.config.backend.env $initContainerEnv)) | indent 6 }}
Expand Down Expand Up @@ -353,6 +359,12 @@ spec:
checksum/config-rules: {{ $checksumConfigRules }}
checksum/config-jws-public-keys: {{ $checksumConfigJWSPublicKeys }}
checksum/secrets: {{ $checksumConfigSecrets }}
# Custom Pod annotations
{{- if $config.config.podAnnotations }}
{{- range $key, $value := $config.config.podAnnotations }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- end }}
{{- end }}
spec:
volumes:
- name: {{ $fullName }}-thirdparty-sdk-config-volume
Expand Down

0 comments on commit 2d51da7

Please sign in to comment.