Browse Source

[Improvement][HELM] add driver-class-name (#14614)

Signed-off-by: Gallardot <gallardot@apache.org>
Co-authored-by: xiangzihao <460888207@qq.com>
Co-authored-by: Eric Gao <ericgao.apache@gmail.com>
3.2.1-prepare
Gallardot 1 year ago committed by GitHub
parent
commit
0188f40b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      deploy/kubernetes/dolphinscheduler/templates/_helpers.tpl
  2. 3
      deploy/kubernetes/dolphinscheduler/values.yaml

8
deploy/kubernetes/dolphinscheduler/templates/_helpers.tpl

@ -175,6 +175,14 @@ Create a database environment variables.
name: {{ include "dolphinscheduler.fullname" . }}-externaldb
key: database-password
{{- end }}
- name: SPRING_DATASOURCE_DRIVER-CLASS-NAME
{{- if .Values.postgresql.enabled }}
value: {{ .Values.postgresql.driverClassName }}
{{- else if .Values.mysql.enabled }}
value: {{ .Values.mysql.driverClassName }}
{{- else }}
value: {{ .Values.externalDatabase.driverClassName | quote }}
{{- end }}
{{- end -}}
{{/*

3
deploy/kubernetes/dolphinscheduler/values.yaml

@ -43,6 +43,7 @@ postgresql:
postgresqlUsername: "root"
postgresqlPassword: "root"
postgresqlDatabase: "dolphinscheduler"
driverClassName: "org.postgresql.Driver"
params: "characterEncoding=utf8"
persistence:
enabled: false
@ -51,6 +52,7 @@ postgresql:
mysql:
enabled: false
driverClassName: "com.mysql.cj.jdbc.Driver"
auth:
username: "ds"
password: "ds"
@ -82,6 +84,7 @@ externalDatabase:
password: "root"
database: "dolphinscheduler"
params: "characterEncoding=utf8"
driverClassName: "org.postgresql.Driver"
## If not exists external registry, the zookeeper registry will be used by default.
zookeeper:

Loading…
Cancel
Save