Roll pods to pick up db migrations even if podAnnotations is empty (#19702)

This commit is contained in:
Alex Nordlund 2022-11-08 17:19:14 +01:00 committed by GitHub
parent d3afd7a2f1
commit fd3c482104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -14,12 +14,12 @@ spec:
component: rails component: rails
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }}
annotations: annotations:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }}
# roll the pods to pick up any db migrations # roll the pods to pick up any db migrations
rollme: {{ randAlphaNum 5 | quote }} rollme: {{ randAlphaNum 5 | quote }}
{{- end }}
labels: labels:
{{- include "mastodon.selectorLabels" . | nindent 8 }} {{- include "mastodon.selectorLabels" . | nindent 8 }}
component: rails component: rails

View File

@ -14,12 +14,12 @@ spec:
component: rails component: rails
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }}
annotations: annotations:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }}
# roll the pods to pick up any db migrations # roll the pods to pick up any db migrations
rollme: {{ randAlphaNum 5 | quote }} rollme: {{ randAlphaNum 5 | quote }}
{{- end }}
labels: labels:
{{- include "mastodon.selectorLabels" . | nindent 8 }} {{- include "mastodon.selectorLabels" . | nindent 8 }}
component: rails component: rails