rancher-charts/charts/epinio/102.0.3+up1.8.1/templates/default-user.yaml

18 lines
429 B
YAML
Raw Normal View History

2023-06-13 08:32:16 +00:00
{{- 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 | quote }}
password: {{ .passwordBcrypt | quote }}
namespaces: |
{{ join "\n" .workspaces -}}
{{- end }}