mirror of https://github.com/helm/helm
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.
20 lines
640 B
20 lines
640 B
# This shows a secret as a pre-install hook.
|
|
# A pre-install hook is run before the rest of the chart is loaded.
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "fullname" . }}
|
|
labels:
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
app: {{ template "name" . }}
|
|
# This declares the resource to be a hook. By convention, we also name the
|
|
# file "pre-install-XXX.yaml", but Helm itself doesn't care about file names.
|
|
annotations:
|
|
"helm.sh/hook": pre-install
|
|
type: Opaque
|
|
data:
|
|
password: {{ b64enc "secret" }}
|
|
username: {{ b64enc "user1" }}
|