Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 1 | {{- with .Values.gateway }} |
| 2 | {{- if and .enabled .basicAuth.enabled (not .basicAuth.existingSecret) }} |
| 3 | apiVersion: v1 |
| 4 | kind: Secret |
| 5 | metadata: |
| 6 | name: {{ include "loki.gatewayFullname" $ }} |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 7 | namespace: {{ $.Release.Namespace }} |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 8 | labels: |
| 9 | {{- include "loki.gatewayLabels" $ | nindent 4 }} |
| 10 | stringData: |
| 11 | .htpasswd: | |
| 12 | {{- tpl .basicAuth.htpasswd $ | nindent 4 }} |
| 13 | {{- end }} |
| 14 | {{- end }} |