Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[loki-distributed] defining an annotation for the secret gateway loki-distributed-gateway #3368

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
10 changes: 6 additions & 4 deletions charts/loki-distributed/templates/gateway/secret-gateway.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{{- with .Values.gateway }}
{{- if and .enabled .basicAuth.enabled (not .basicAuth.existingSecret) }}
{{- if and .Values.gateway.enabled .Values.gateway.basicAuth.enabled (not .Values.gateway.basicAuth.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "loki.gatewayFullname" $ }}
labels:
{{- include "loki.gatewayLabels" $ | nindent 4 }}
{{- with .Values.loki.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
stringData:
.htpasswd: |
{{- tpl .basicAuth.htpasswd $ | nindent 4 }}
{{- end }}
{{- tpl .Values.gateway.basicAuth.htpasswd . | nindent 4 }}
{{- end }}
Binary file added loki-distributed-0.79.4.tgz
Binary file not shown.