From a6550bc4a2de3dd9eaa313081a1fac31ba08f2f0 Mon Sep 17 00:00:00 2001 From: kezhenxu94 Date: Sat, 11 Feb 2023 16:35:57 +0800 Subject: [PATCH] =?UTF-8?q?Set=20init=20job=20as=20a=20helm=20hook=20so=20?= =?UTF-8?q?that=20DS=20can=20be=20upgraded=20using=20`helm=20upgrade`,=20a?= =?UTF-8?q?lso=20remove=20legacy=20`registryPluginDir=CB=9A`=20(#13547)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/job-dolphinscheduler-schema-initializer.yaml | 3 +++ deploy/kubernetes/dolphinscheduler/values.yaml | 1 - docs/docs/en/guide/installation/kubernetes.md | 1 - docs/docs/zh/guide/installation/kubernetes.md | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/kubernetes/dolphinscheduler/templates/job-dolphinscheduler-schema-initializer.yaml b/deploy/kubernetes/dolphinscheduler/templates/job-dolphinscheduler-schema-initializer.yaml index 204223b869..6a7644d2ce 100644 --- a/deploy/kubernetes/dolphinscheduler/templates/job-dolphinscheduler-schema-initializer.yaml +++ b/deploy/kubernetes/dolphinscheduler/templates/job-dolphinscheduler-schema-initializer.yaml @@ -20,6 +20,9 @@ metadata: name: {{ include "dolphinscheduler.fullname" . }}-db-init-job labels: {{- include "dolphinscheduler.common.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": post-install + "helm.sh/hook-weight": "1" spec: template: metadata: diff --git a/deploy/kubernetes/dolphinscheduler/values.yaml b/deploy/kubernetes/dolphinscheduler/values.yaml index 4b212f90c0..6ce0e378fc 100644 --- a/deploy/kubernetes/dolphinscheduler/values.yaml +++ b/deploy/kubernetes/dolphinscheduler/values.yaml @@ -91,7 +91,6 @@ zookeeper: ## If exists external registry and set zookeeper.enable value to false, the external registry will be used. externalRegistry: - registryPluginDir: "lib/plugin/registry" registryPluginName: "zookeeper" registryServers: "127.0.0.1:2181" diff --git a/docs/docs/en/guide/installation/kubernetes.md b/docs/docs/en/guide/installation/kubernetes.md index be32e63c8e..ac6c4faf08 100644 --- a/docs/docs/en/guide/installation/kubernetes.md +++ b/docs/docs/en/guide/installation/kubernetes.md @@ -548,7 +548,6 @@ common: | `zookeeper.persistence.enabled` | Set `zookeeper.persistence.enabled` to `true` to mount a new volume for internal ZooKeeper | `false` | | `zookeeper.persistence.size` | `PersistentVolumeClaim` size | `20Gi` | | `zookeeper.persistence.storageClass` | ZooKeeper data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning | `-` | -| `externalRegistry.registryPluginDir` | If exists external registry and set `zookeeper.enable` to `false`, specify the external registry plugin directory | `lib/plugin/registry` | | `externalRegistry.registryPluginName` | If exists external registry and set `zookeeper.enable` to `false`, specify the external registry plugin name | `zookeeper` | | `externalRegistry.registryServers` | If exists external registry and set `zookeeper.enable` to `false`, specify the external registry servers | `127.0.0.1:2181` | | | | | diff --git a/docs/docs/zh/guide/installation/kubernetes.md b/docs/docs/zh/guide/installation/kubernetes.md index 8416f1e0ee..e01d4fde0a 100644 --- a/docs/docs/zh/guide/installation/kubernetes.md +++ b/docs/docs/zh/guide/installation/kubernetes.md @@ -546,7 +546,6 @@ common: | `zookeeper.persistence.enabled` | Set `zookeeper.persistence.enabled` to `true` to mount a new volume for internal Zookeeper | `false` | | `zookeeper.persistence.size` | `PersistentVolumeClaim` size | `20Gi` | | `zookeeper.persistence.storageClass` | Zookeeper data persistent volume storage class. If set to "-", storageClassName: "", which disables dynamic provisioning | `-` | -| `externalRegistry.registryPluginDir` | If exists external registry and set `zookeeper.enable` to `false`, specify the external registry plugin directory | `lib/plugin/registry` | | `externalRegistry.registryPluginName` | If exists external registry and set `zookeeper.enable` to `false`, specify the external registry plugin name | `zookeeper` | | `externalRegistry.registryServers` | If exists external registry and set `zookeeper.enable` to `false`, specify the external registry servers | `127.0.0.1:2181` | | | | |