Secret
Appears in
Section titled “Appears in”.Values.secret
Naming scheme
Section titled “Naming scheme”$FullName-$SecretName(release-name-chart-name-secret-name)
secret
Section titled “secret”Create Secret objects
| Key | secret |
| Type | map |
| Required | ❌ |
Helm tpl | ❌ |
| Default | {} |
Example
secret: {}Define Secret
| Key | secret.$name |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
secret: secret-name: {}enabled
Section titled “enabled”Enables or Disables the Secret
| Key | secret.$name.enabled |
| Type | bool |
| Required | ✅ |
Helm tpl | ✅ |
| Default | false |
Example
secret: secret-name: enabled: truenamespace
Section titled “namespace”Define the namespace for this object
| Key | secret.$name.namespace |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | "" |
Example
secret: secret-name: namespace: some-namespacelabels
Section titled “labels”Additional labels for secret
| Key | secret.$name.labels |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
secret: secret-name: labels: key: valueannotations
Section titled “annotations”Additional annotations for secret
| Key | secret.$name.annotations |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
secret: secret-name: annotations: key: valueDefine the type of the secret
| Key | secret.$name.type |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | Opaque |
Example
secret: secret-name: type: some-custom-typeDefine the data of the secret
| Key | secret.$name.data |
| Type | map |
| Required | ✅ |
Helm tpl | ✅ |
| Example | {} |
secret: secret-name: data: key: valueFull Examples
Section titled “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