Skip to content

Commit 9bdd918

Browse files
authored
Merge pull request #17 from jianxiaoguo/main
chore(chart): set the domain depends cert_manager_enabled
2 parents 8e5cb65 + 30358d7 commit 9bdd918

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

charts/monitor/templates/_helpers.tmpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,17 @@ env:
3939
value: {{ $value | quote }}
4040
{{- end }}
4141
- name: "DRYCC_GRAFANA_DOMAIN"
42+
{{- if .Values.global.cert_manager_enabled }}
43+
value: https://drycc-monitor-grafana.{{ .Values.global.platform_domain }}
44+
{{- else }}
4245
value: http://drycc-monitor-grafana.{{ .Values.global.platform_domain }}
46+
{{- end }}
4347
- name: "DRYCC_PASSPORT_DOMAIN"
48+
{{- if .Values.global.cert_manager_enabled }}
49+
value: https://drycc-passport.{{ .Values.global.platform_domain }}
50+
{{- else }}
4451
value: http://drycc-passport.{{ .Values.global.platform_domain }}
52+
{{- end }}
4553
- name: "SOCIAL_AUTH_DRYCC_AUTHORIZATION_URL"
4654
value: "$(DRYCC_PASSPORT_DOMAIN)/oauth/authorize/"
4755
- name: "SOCIAL_AUTH_DRYCC_ACCESS_TOKEN_URL"

0 commit comments

Comments
 (0)