Files
devops-infra-helm-charts-gcp/helm-templates/victoria-metrics-auth/templates/secret.yaml
T
2026-08-26 03:39:42 +05:30

18 lines
485 B
YAML

{{- if eq .Values.secretName "" }}
{{- $ctx := dict "helm" . }}
{{- $fullname := include "vm.plain.fullname" $ctx }}
{{- $ns := include "vm.namespace" $ctx }}
apiVersion: v1
kind: Secret
metadata:
name: {{ $fullname }}
namespace: {{ $ns }}
{{- with .Values.configAnnotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
labels: {{ include "vm.labels" $ctx | nindent 4 }}
type: Opaque
data:
auth.yml: |{{ toYaml .Values.config | b64enc | nindent 4 }}
{{- end }}