Skip to content

Commit c0020c4

Browse files
committed
chore(monitor): add off-cluster passport configure
1 parent a74a525 commit c0020c4

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

charts/monitor/templates/_helpers.tmpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ env:
4848
{{- else }}
4949
value: http://drycc-monitor-grafana.{{ .Values.global.platformDomain }}
5050
{{- end }}
51+
{{- if eq .Values.global.passportLocation "on-cluster"}}
5152
- name: "DRYCC_PASSPORT_URL"
5253
{{- if .Values.global.certManagerEnabled }}
5354
value: https://drycc-passport.{{ .Values.global.platformDomain }}
@@ -64,4 +65,12 @@ env:
6465
secretKeyRef:
6566
name: passport-creds
6667
key: drycc-passport-grafana-secret
68+
{{- else }}
69+
- name: DRYCC_PASSPORT_URL
70+
value: "{{ .Values.grafana.passportUrl }}"
71+
- name: DRYCC_PASSPORT_KEY
72+
value: "{{ .Values.grafana.passportKey }}"
73+
- name: DRYCC_PASSPORT_SECRET
74+
value: "{{ .Values.grafana.passportSecret }}"
75+
{{- end }}
6776
{{- end }}

charts/monitor/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ grafana:
3737
# this is usually a non required setting.
3838
environment:
3939
ALLOW_SIGN_UP: false
40+
# The passportUrl, passportKey and passportSecret are will no longer use the built-in passport component
41+
passportUrl: ""
42+
passportKey: ""
43+
passportSecret: ""
4044

4145
telegraf:
4246
imageOrg: "drycc"

0 commit comments

Comments
 (0)