ovpn-admin/helm/templates/secret.yaml

10 lines
298 B
YAML
Raw Normal View History

2022-01-29 15:47:26 +03:00
---
2022-11-09 22:48:08 +03:00
{{- if .Values.ingress.basicAuth.enabled -}}
2022-01-29 15:47:26 +03:00
apiVersion: v1
kind: Secret
metadata:
2022-11-09 22:48:08 +03:00
name: {{ include "ovpn-admin-chart.fullname" . }}-basic-auth
2022-01-29 15:47:26 +03:00
type: Opaque
data:
auth: {{ print .Values.ovpnAdmin.basicAuth.user ":{PLAIN}" .Values.ovpnAdmin.basicAuth.password | b64enc | quote }}
2022-11-09 22:48:08 +03:00
{{- end -}}