rancher-charts/charts/neuvector/104.0.3+up2.8.3/templates/bootstrap-secret.yaml

17 lines
524 B
YAML

{{/* Use the bootstrap password from values.yaml or random value*/}}
{{- $bootstrapPassword := .Values.bootstrapPassword -}}
{{/* If a bootstrap password was found in the values or AWS is enabled */}}
{{- if $bootstrapPassword }}
apiVersion: v1
kind: Secret
metadata:
name: "neuvector-bootstrap-secret"
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
release: {{ .Release.Name }}
type: Opaque
data:
bootstrapPassword: {{ $bootstrapPassword | b64enc |quote }}
{{- end }}