Skip to content

Commit

Permalink
Allow other database than mysql
Browse files Browse the repository at this point in the history
This allow to specify a full springDatasourceUrl instead of create url
from springDatasourceHost and springDatasourceDb.
  • Loading branch information
Florian Bezannier committed Nov 6, 2023
1 parent f4511ba commit 0a91aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/hawkbit/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
- name: SPRING_PROFILES_ACTIVE
value: "{{ .Values.spring.profiles }}"
- name: "SPRING_DATASOURCE_URL"
value: "jdbc:mysql://{{ if .Values.mysql.enabled }}{{ .Release.Name }}-mysql{{ else }}{{ .Values.env.springDatasourceHost }}{{ end }}:3306/{{ .Values.env.springDatasourceDb }}"
value: "{{ if .Values.env.springDatasourceUrl }}{{ .Values.env.springDatasourceUrl }}{{ else }}jdbc:mysql://{{ if .Values.mysql.enabled }}{{ .Release.Name }}-mysql{{ else }}{{ .Values.env.springDatasourceHost }}{{ end }}:3306/{{ .Values.env.springDatasourceDb }} {{end}}"
- name: "SPRING_APPLICATION_JSON"
valueFrom:
secretKeyRef:
Expand Down
1 change: 1 addition & 0 deletions charts/hawkbit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ fileStorage:
env:
springDatasourceHost: "hawkbit-mysql"
springDatasourceDb: "hawkbit"
springDatasourceUrl: ""
springRabbitmqHost: "hawkbit-rabbitmq"
springRabbitmqUsername: "hawkbit"
springRabbitmqPassword: "hawkbit"
Expand Down

0 comments on commit 0a91aec

Please sign in to comment.