Skip to content

Commit

Permalink
#864 typo in apiKind, add missing base64 encode secret data
Browse files Browse the repository at this point in the history
  • Loading branch information
WaywardWizard committed Sep 2, 2023
1 parent 9eb5508 commit 0284db1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/fluent-operator/templates/fluentbit-output-loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
When http{User,Password} or tenantID is a string, make a secret for them
When these keys are objects, they specify a secret to use generated elsewhere, assumed to exist in the k8s cluster
*/}}
{{ $userSecret := "loki-http-auth" -}}
{{ $userSecret := "loki-http-user" -}}
{{ $passSecret := "loki-http-pass" -}}
{{ $tenantIDSecret := "loki-tenant-id" -}}

{{ range $k, $v := dict $userSecret .httpUser $passSecret .httpPassword $tenantIDSecret .tenantID -}}
{{ if kindIs "string" $v -}}
---
secretapiVersion: v1
apiVersion: v1
kind: Secret
metadata:
name: {{ $k |quote }}
type: Opaque
data:
value: {{ $v | quote }}
value: {{ $v | b64enc | quote }}
{{ end -}}
{{ end -}}

Expand Down Expand Up @@ -117,4 +117,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 0284db1

Please sign in to comment.