You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
698 B
21 lines
698 B
{{/* vim: set filetype=mustache: */}}
|
|
|
|
{{- define "openshift-users" -}}
|
|
{{- $stash := dict "result" (list) -}}
|
|
{{- range $user := .Values.openshift.users }}
|
|
{{- $_ := printf "%s" $user | append $stash.result | set $stash "result" -}}
|
|
{{- end -}}
|
|
{{- toJson $stash.result -}}
|
|
{{- end -}}
|
|
|
|
{{- define "openshift-htpasswd" -}}
|
|
{{- range (include "openshift-users" . | fromJsonArray) }}
|
|
{{ htpasswd . (trunc 8 (sha256sum (cat $.Values.masterKey "openshift-htpasswd" .))) }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- define "openshift-users-txt" -}}
|
|
{{- range (include "openshift-users" . | fromJsonArray) }}
|
|
{{ . }}:{{ trunc 8 (sha256sum (cat $.Values.masterKey "openshift-htpasswd" .)) }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|