mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-07-12 14:38:52 +00:00
update osartifact helm chart
This commit is contained in:
parent
bd0806c50d
commit
7c34046e54
@ -2,4 +2,4 @@ apiVersion: v2
|
||||
name: osartifact
|
||||
description: A Helm chart for OSArtifact CRD deployment
|
||||
type: application
|
||||
version: 0.2.0
|
||||
version: 0.3.0
|
@ -1,6 +1,11 @@
|
||||
{{ $tokenSecret := (lookup "v1" "Secret" .Release.Namespace .Values.tokenSecret.name) }}
|
||||
{{ $passwordSecret := (lookup "v1" "Secret" .Release.Namespace .Values.passwordSecret.name) }}
|
||||
|
||||
{{- if and $tokenSecret $passwordSecret }}
|
||||
|
||||
{{ $token := index $tokenSecret.data .Values.tokenSecret.key | b64dec }}
|
||||
{{ $password := index $passwordSecret.data .Values.passwordSecret.key | b64dec }}
|
||||
|
||||
kind: Secret
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
@ -12,7 +17,7 @@ stringData:
|
||||
|
||||
users:
|
||||
- name: {{ .Values.username }}
|
||||
passwd: {{ index $passwordSecret .Values.passwordSecret.key }}
|
||||
passwd: {{ $password }}
|
||||
{{- with .Values.defaultUser }}
|
||||
groups: [
|
||||
{{- range .groups -}}
|
||||
@ -68,10 +73,11 @@ stringData:
|
||||
{{- end }}
|
||||
|
||||
plural:
|
||||
token: {{ index $tokenSecret .Values.tokenSecret.key }}
|
||||
token: {{ $token }}
|
||||
url: {{ .Values.url }}
|
||||
|
||||
{{- if .Values.extraUserCloudConfig }}
|
||||
{{ .Values.extraCloudConfig | toYaml | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
{{- end}}
|
Loading…
Reference in New Issue
Block a user