Files
chart/docs/common-library/values/secret.md
2022-12-20 20:18:30 +02:00

1.0 KiB

Secret

key: secret

  • Type: dict
  • Default: {}
  • Helm Template:
    • secretType:
    • content.KEY:
    • content.KEY.value:

secret dict creates a secret based on the content

Options:

secret:
  somename:
    enabled: true
    # Optional
    labels: {}
    # Optional
    annotations: {}
    # Optional
    nameOverride: ""
    # Optional - Defaults to Opaque
    secretType: ""
    # Tells to common that this contains environment variables
    # So it wil be checked for duplicates among `env`, `envList`, `fixedEnvs`
    # and other `secrets` / `configmaps` (with parseAsEnv set)
    parseAsEnv: true
    # Key/Value
    content:
      key: value
    # Or yaml scalar
    content:
      someKey: |
        configmap content

Examples:

secret:
  somename:
    enabled: true
    content:
      somekey: value
      otherkey: othervalue

secret:
  somename:
    enabled: true
    content:
      somekey: value
      nginx.conf: |
        listen {{ .Values.service.main.ports.main.port }}