mirror of https://git.rancher.io/charts
17 lines
524 B
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 }}
|