Secret
Appears in
Section titled “Appears in”.Values.persistence.$name
objectName
Section titled “objectName”Define the secret name.
| Key | persistence.$name.objectName |
| Type | string |
| Required | ✅ |
Helm tpl | ✅ |
| Default | "" |
Example
persistence: secret-vol: objectName: secret-nameexpandObjectName
Section titled “expandObjectName”Whether to expand (adding the fullname as prefix) the secret name.
| Key | persistence.$name.expandObjectName |
| Type | bool |
| Required | ❌ |
Helm tpl | ✅ |
| Default | true |
Example
persistence: secret-vol: expandObjectName: falseoptional
Section titled “optional”Whether the secret should be required or not.
| Key | persistence.$name.optional |
| Type | bool |
| Required | ❌ |
Helm tpl | ❌ |
| Default | false |
Example
persistence: secret-vol: optional: falsedefaultMode
Section titled “defaultMode”Define the defaultMode (must be a string in format of “0777”).
| Key | persistence.$name.defaultMode |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | "" |
Example
persistence: secret-vol: defaultMode: "0777"Define a list of items for secret.
| Key | persistence.$name.items |
| Type | list |
| Required | ❌ |
Helm tpl | ❌ |
| Default | [] |
Example
persistence: secret-vol: items: - key: key1 path: path1 - key: key2 path: path2items.key
Section titled “items.key”Define the key of the secret.
| Key | persistence.$name.items[].key |
| Type | string |
| Required | ✅ |
Helm tpl | ✅ |
| Default | "" |
Example
persistence: secret-vol: items: - key: key1 path: path1items.path
Section titled “items.path”Define the path.
| Key | persistence.$name.items[].path |
| Type | string |
| Required | ✅ |
Helm tpl | ✅ |
| Default | "" |
Example
persistence: secret-vol: items: - key: key1 path: path1Full Examples
Section titled “Full Examples”persistence: secret-vol: enabled: true type: secret objectName: secret-name expandObjectName: false optional: false defaultMode: "0777" items: - key: key1 path: path1 - key: key2 path: path2