瀏覽代碼

Add init schema job to Helm hooks so that schema can be updated when upgrading deployment (#13898)

kezhenxu94 2 年之前
父節點
當前提交
664d2e4ed3

+ 1 - 1
deploy/kubernetes/dolphinscheduler/templates/job-dolphinscheduler-schema-initializer.yaml

@@ -21,7 +21,7 @@ metadata:
   labels:
     {{- include "dolphinscheduler.common.labels" . | nindent 4 }}
   annotations:
-    "helm.sh/hook": post-install
+    "helm.sh/hook": post-install,post-upgrade,post-rollback
     "helm.sh/hook-weight": "1"
 spec:
   template: