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 name: {{ include "dolphinscheduler.fullname" . }}-externaldb
key: database-password key: database-password
{{- end }} {{- 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 -}} {{- end -}}
{{/* {{/*

3
deploy/kubernetes/dolphinscheduler/values.yaml

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

Loading…
Cancel
Save