Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: broken upgrade path from previous versions
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Fernandez <[email protected]>
  • Loading branch information
hectorj2f committed Jan 12, 2021
1 parent 7653009 commit 3eb2704
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
kubefed-control-plane: controller-manager
{{- if .Values.controller.annotations }}
annotations:
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
{{ toYaml .Values.controller.annotations | indent 4 }}
{{- end }}
spec:
Expand Down Expand Up @@ -74,6 +77,9 @@ metadata:
kubefed-admission-webhook: "true"
{{- if .Values.webhook.annotations }}
annotations:
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
{{ toYaml .Values.webhook.annotations | indent 4 }}
{{- end }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
name: validations.core.kubefed.io
{{- end }}
annotations:
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
{{- if .Values.certManager.enabled }}
cert-manager.io/inject-ca-from: {{ printf "%s/%s%s" .Release.Namespace .Release.Name "-root-certificate" | quote }}
{{- end }}
Expand Down Expand Up @@ -114,6 +117,10 @@ metadata:
{{- else }}
name: mutation.core.kubefed.io
{{- end }}
annotations:
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
webhooks:
- name: kubefedconfigs.core.kubefed.io
clientConfig:
Expand Down

0 comments on commit 3eb2704

Please sign in to comment.