-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove svc/endpoint of datasource and use bare ip:port && use u…
…rlOverride to fully custom jdbc url (#30) * feat: remove svc/endpoint of datasource and use bare ip:port Signed-off-by: Bird <aflybird0@gmail.com> * feat: use urlOverride to fully custom jdbc url Signed-off-by: Bird <aflybird0@gmail.com> --------- Signed-off-by: Bird <aflybird0@gmail.com>
- Loading branch information
Showing
5 changed files
with
46 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{- define "shenyu.h2.url" }} | ||
{{- .Values.dataSource.h2.url | default "jdbc:h2:mem:~/shenyu;DB_CLOSE_DELAY=-1;MODE=MySQL;" }} | ||
{{- end -}} | ||
|
||
{{- define "shenyu.mysql.url" -}} | ||
{{- with .Values.dataSource.mysql -}} | ||
{{- if .urlOverride -}} | ||
{{- .urlOverride | quote -}} | ||
{{- else -}} | ||
jdbc:mysql://{{ required ".dataSource.mysql.ip is required" .ip }}:{{ .port }}/{{ required "" .database | default "shenyu" }}?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "shenyu.pg.url" -}} | ||
{{- with .Values.dataSource.pg -}} | ||
{{- if .urlOverride -}} | ||
{{- .urlOverride -}} | ||
{{- else -}} | ||
jdbc:postgresql://{{ .ip }}:{{ .port }}/{{ .database | default "shenyu" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "shenyu.oracle.url" -}} | ||
{{- with .Values.dataSource.oracle -}} | ||
{{- if .urlOverride -}} | ||
{{- .urlOverride -}} | ||
{{- else -}} | ||
jdbc:oracle:thin:@{{ .ip }}:{{ .port }}/{{ .serviceName | default "shenyu" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters