github.com/cloudposse/helm@v2.2.3+incompatible/docs/examples/nginx/templates/pre-install-secret.yaml (about)

     1  # This shows a secret as a pre-install hook.
     2  # A pre-install hook is run before the rest of the chart is loaded.
     3  apiVersion: v1
     4  kind: Secret
     5  metadata:
     6    name: "{{.Release.Name}}-secret"
     7    # This declares the resource to be a hook. By convention, we also name the
     8    # file "pre-install-XXX.yaml", but Helm itself doesn't care about file names.
     9    annotations:
    10      "helm.sh/hook": pre-install
    11  type: Opaque
    12  data:
    13    password: {{ b64enc "secret" }}
    14    username: {{ b64enc "user1" }}