rancher-charts/charts/epinio/100.0.0+up1.2.1/templates/default-user.yaml

18 lines
413 B
YAML

{{- range .Values.api.users }}
---
apiVersion: v1
kind: Secret
type: BasicAuth
metadata:
labels:
epinio.io/api-user-credentials: "true"
epinio.io/role: {{ .role }}
name: {{ include "epinio-truncate" (print "user-" .username) }}
namespace: {{ $.Release.Namespace }}
stringData:
username: {{ .username }}
password: {{ .passwordBcrypt }}
namespaces: |
{{ join "\n" .workspaces -}}
{{- end }}