Skip to content

Commit

Permalink
Feat: add crdUpgrade enabled flag (#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
meibenjin authored Jun 10, 2023
1 parent 562782d commit 72a6426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/fluid/fluid/templates/upgrade/crd-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if .Values.crdUpgrade.enabled -}}
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -57,3 +58,4 @@ metadata:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
{{- end }}
1 change: 1 addition & 0 deletions charts/fluid/fluid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

workdir: /tmp
crdUpgrade:
enabled: true
image: fluidcloudnative/fluid-crd-upgrader:v1.0.0-457c8f9

## if unspecified, will use built-in variable `.Release.Namespace`.
Expand Down

0 comments on commit 72a6426

Please sign in to comment.