File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1313 {{- include "adminer.selectorLabels" . | nindent 6 }}
1414 template :
1515 metadata :
16- {{- with .Values.podAnnotations }}
16+ {{- if .Values.podAnnotations }}
1717 annotations :
18- {{- toYaml . | nindent 8 }}
18+ # allow dynamic values in pod annotations
19+ {{- tpl (toYaml .Values.podAnnotations) . | nindent 8 }}
1920 {{- end }}
2021 labels :
2122 {{- include "adminer.labels" . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ serviceAccount:
2525 # If not set and create is true, a name is generated using the fullname template
2626 name: ""
2727
28- podAnnotations: {}
28+ podAnnotations:
29+ # automatically restart pod on network policy change (to be sure new rules are applied)
30+ checksum/networkpolicy: '{{`{{ include (print $.Template.BasePath "/networkpolicy.yaml") . | sha256sum }}`}}'
2931podLabels: {}
3032
3133podSecurityContext:
You can’t perform that action at this time.
0 commit comments