Skip to content

Secret

Appears in

  • .Values.persistence.$name

objectName

Define the secret name.

Keypersistence.$name.objectName
Typestring
Required
Helm tpl
Default""

Example

persistence:
secret-vol:
objectName: secret-name

expandObjectName

Whether to expand (adding the fullname as prefix) the secret name.

Keypersistence.$name.expandObjectName
Typebool
Required
Helm tpl
Defaulttrue

Example

persistence:
secret-vol:
expandObjectName: false

optional

Whether the secret should be required or not.

Keypersistence.$name.optional
Typebool
Required
Helm tpl
Defaultfalse

Example

persistence:
secret-vol:
optional: false

defaultMode

Define the defaultMode (must be a string in format of “0777”).

Keypersistence.$name.defaultMode
Typestring
Required
Helm tpl
Default""

Example

persistence:
secret-vol:
defaultMode: "0777"

items

Define a list of items for secret.

Keypersistence.$name.items
Typelist
Required
Helm tpl
Default[]

Example

persistence:
secret-vol:
items:
- key: key1
path: path1
- key: key2
path: path2

items.key

Define the key of the secret.

Keypersistence.$name.items[].key
Typestring
Required
Helm tpl
Default""

Example

persistence:
secret-vol:
items:
- key: key1
path: path1

items.path

Define the path.

Keypersistence.$name.items[].path
Typestring
Required
Helm tpl
Default""

Example

persistence:
secret-vol:
items:
- key: key1
path: path1

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