Skip to content

Commit

Permalink
Reintroduce UPGRADE_NO_OP env-var to ease 'helm upgrade' auto-restart…
Browse files Browse the repository at this point in the history
…ing pods to consume new secrets. This is a stop gap until we migrate secrets to volumes, and watch their inodes to restart (#8113) (#8118)
  • Loading branch information
acohen4 committed Aug 25, 2022
1 parent 6b423ae commit 80aee4e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etc/helm/pachyderm/templates/console/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ spec:
secretKeyRef:
name: {{ .Values.console.config.oauthClientSecretSecretName | default "pachyderm-console-secret"}}
key: OAUTH_CLIENT_SECRET
{{- if .Release.IsUpgrade }}
- name: UPGRADE_NO_OP
value: {{ randAlphaNum 32 }}
{{- end }}
{{- if and .Values.pachd.tls.enabled .Values.global.customCaCerts }}
- name: NODE_EXTRA_CA_CERTS
value: /pach-tls/certs/root.crt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ spec:
name: pachyderm-console-secret
key: OAUTH_CLIENT_SECRET
{{- end }}
{{- if .Release.IsUpgrade }}
- name: UPGRADE_NO_OP
value: {{ randAlphaNum 32 }}
{{- end }}
envFrom:
- secretRef:
name: pachyderm-deployment-id-secret
Expand Down
4 changes: 4 additions & 0 deletions etc/helm/pachyderm/templates/pachd/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ spec:
- name: IDENTITY_SERVER_DATABASE
value: {{ .Values.global.postgresql.identityDatabaseFullNameOverride }}
{{ end }}
{{- if .Release.IsUpgrade }}
- name: UPGRADE_NO_OP
value: {{ randAlphaNum 32 }}
{{- end }}
envFrom:
- secretRef:
name: pachyderm-storage-secret
Expand Down

0 comments on commit 80aee4e

Please sign in to comment.