|
1 | 1 | {{/* Generate monitor grafana envs */}} |
2 | 2 | {{- define "grafana.envs" }} |
3 | 3 | env: |
4 | | -{{- if eq .Values.global.influxdb_location "off-cluster" }} |
| 4 | +{{- if eq .Values.global.influxdbLocation "off-cluster" }} |
5 | 5 | - name: "INFLUXDB_URL" |
6 | 6 | valueFrom: |
7 | 7 | secretKeyRef: |
|
33 | 33 | - name: "DEFAULT_USER_PASSWORD" |
34 | 34 | value: {{.Values.grafana.password}} |
35 | 35 | - name: "KUBERNETES_CLUSTER_DOMAIN" |
36 | | - value: {{.Values.global.cluster_domain}} |
| 36 | + value: {{.Values.global.clusterDomain}} |
37 | 37 | {{- range $key, $value := .Values.grafana.environment }} |
38 | 38 | - name: {{ $key }} |
39 | 39 | value: {{ $value | quote }} |
40 | 40 | {{- end }} |
41 | 41 | - name: "DRYCC_GRAFANA_DOMAIN" |
42 | | -{{- if .Values.global.cert_manager_enabled }} |
43 | | - value: https://drycc-monitor-grafana.{{ .Values.global.platform_domain }} |
| 42 | +{{- if .Values.global.certManagerEnabled }} |
| 43 | + value: https://drycc-monitor-grafana.{{ .Values.global.platformDomain }} |
44 | 44 | {{- else }} |
45 | | - value: http://drycc-monitor-grafana.{{ .Values.global.platform_domain }} |
| 45 | + value: http://drycc-monitor-grafana.{{ .Values.global.platformDomain }} |
46 | 46 | {{- end }} |
47 | 47 | - name: "DRYCC_PASSPORT_DOMAIN" |
48 | | -{{- if .Values.global.cert_manager_enabled }} |
49 | | - value: https://drycc-passport.{{ .Values.global.platform_domain }} |
| 48 | +{{- if .Values.global.certManagerEnabled }} |
| 49 | + value: https://drycc-passport.{{ .Values.global.platformDomain }} |
50 | 50 | {{- else }} |
51 | | - value: http://drycc-passport.{{ .Values.global.platform_domain }} |
| 51 | + value: http://drycc-passport.{{ .Values.global.platformDomain }} |
52 | 52 | {{- end }} |
53 | 53 | - name: "SOCIAL_AUTH_DRYCC_AUTHORIZATION_URL" |
54 | 54 | value: "$(DRYCC_PASSPORT_DOMAIN)/oauth/authorize/" |
|
0 commit comments