|
76 | 76 | {{- end }}
|
77 | 77 |
|
78 | 78 | {{- define "snoty.envLoaders" -}}
|
79 |
| - {{ if kindIs "map" .Values.mongodb.auth }} |
80 |
| - {{- with .Values.mongodb.auth }} |
81 |
| - {{ if .existingSecret }} |
82 |
| - - name: mongodb.authentication.password |
83 |
| - valueFrom: |
84 |
| - secretKeyRef: |
85 |
| - name: {{ .existingSecret }} |
86 |
| - key: {{ .secretKey | default "mongodb-passwords" }} |
87 |
| - {{- end -}} |
88 |
| - {{- end -}} |
89 |
| - {{- end -}} |
90 |
| - {{- with $.Values.appConfig }} |
91 |
| - {{- with .authentication -}} |
92 |
| - {{ if kindIs "map" .clientId }} |
93 |
| - - name: authentication.clientId |
94 |
| - valueFrom: |
95 |
| - secretKeyRef: |
96 |
| - name: {{ .clientId.secretName }} |
97 |
| - key: {{ .clientId.secretKey | default "clientId" }} |
98 |
| - {{- end -}} |
99 |
| - {{ if kindIs "map" .clientSecret }} |
100 |
| - - name: authentication.clientSecret |
101 |
| - valueFrom: |
102 |
| - secretKeyRef: |
103 |
| - name: {{ .clientSecret.secretName }} |
104 |
| - key: {{ .clientSecret.secretKey | default "clientSecret" }} |
105 |
| - {{- end -}} |
106 |
| - {{- end -}} |
107 |
| - {{- end -}} |
| 79 | +{{- if kindIs "map" .Values.mongodb.auth }} |
| 80 | +{{- with .Values.mongodb.auth -}} |
| 81 | +{{- if .existingSecret -}} |
| 82 | +- name: mongodb.authentication.password |
| 83 | + valueFrom: |
| 84 | + secretKeyRef: |
| 85 | + name: {{ .existingSecret }} |
| 86 | + key: {{ .secretKey | default "mongodb-passwords" }} |
| 87 | +{{- end -}} |
| 88 | +{{- end -}} |
| 89 | +{{- end -}} |
| 90 | +{{- with $.Values.appConfig -}} |
| 91 | +{{- with .authentication -}} |
| 92 | +{{- if kindIs "map" .clientId }} |
| 93 | +- name: authentication.clientId |
| 94 | + valueFrom: |
| 95 | + secretKeyRef: |
| 96 | + name: {{ .clientId.secretName }} |
| 97 | + key: {{ .clientId.secretKey | default "clientId" }} |
| 98 | +{{- end -}} |
| 99 | +{{- if kindIs "map" .clientSecret }} |
| 100 | +- name: authentication.clientSecret |
| 101 | + valueFrom: |
| 102 | + secretKeyRef: |
| 103 | + name: {{ .clientSecret.secretName }} |
| 104 | + key: {{ .clientSecret.secretKey | default "clientSecret" }} |
| 105 | +{{- end -}} |
| 106 | +{{- end -}} |
| 107 | +{{- end -}} |
108 | 108 | {{- end -}}
|
0 commit comments