Skip to content

Commit

Permalink
fix wrong ConfigMap for longhorn-storageclass after upgrading
Browse files Browse the repository at this point in the history
The longhorn-storageclass-override.yaml will be overridden by charts/longhorn after upgrading.
Because longhorn-storageclass-override.yaml only has "post-install" hook, after upgrading, this Configmap will use template of charts/longhorn.
  • Loading branch information
joy717 authored and gitlawr committed May 28, 2021
1 parent d951273 commit 4997d63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: longhorn-storageclass
namespace: {{ .Values.longhorn.namespaceOverride }}
annotations:
"helm.sh/hook": post-install
"helm.sh/hook": post-install,post-upgrade
labels: {{- include "longhorn.labels" . | nindent 4 }}
data:
storageclass.yaml: |
Expand All @@ -29,4 +29,4 @@ data:
{{- if .Values.longhorn.persistence.recurringJobs.enable }}
recurringJobs: '{{ .Values.longhorn.persistence.recurringJobs.jobList }}'
{{- end }}
{{- end -}}
{{- end -}}

0 comments on commit 4997d63

Please sign in to comment.