Skip to content

Secret

Appears in

  • .Values.secret

Naming scheme

  • $FullName-$SecretName (release-name-chart-name-secret-name)

secret

Create Secret objects

Keysecret
Typemap
Required
Helm tpl
Default{}

Example

secret: {}

$name

Define Secret

Keysecret.$name
Typemap
Required
Helm tpl
Default{}

Example

secret:
secret-name: {}

enabled

Enables or Disables the Secret

Keysecret.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

secret:
secret-name:
enabled: true

namespace

Define the namespace for this object

Keysecret.$name.namespace
Typestring
Required
Helm tpl
Default""

Example

secret:
secret-name:
namespace: some-namespace

labels

Additional labels for secret

Keysecret.$name.labels
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

secret:
secret-name:
labels:
key: value

annotations

Additional annotations for secret

Keysecret.$name.annotations
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

secret:
secret-name:
annotations:
key: value

type

Define the type of the secret

Keysecret.$name.type
Typestring
Required
Helm tpl
DefaultOpaque

Example

secret:
secret-name:
type: some-custom-type

data

Define the data of the secret

Keysecret.$name.data
Typemap
Required
Helm tpl
Example{}
secret:
secret-name:
data:
key: value

Full Examples

secret:
secret-name:
enabled: true
type: CustomSecretType
labels:
key: value
keytpl: "{{ .Values.some.value }}"
annotations:
key: value
keytpl: "{{ .Values.some.value }}"
data:
key: value
other-secret-name:
enabled: true
namespace: some-namespace
data:
key: |
multi line
text value