Secret
Default version: v1
Example
If you already encoded the fields, you can pass false
to the second parameter:
Data Retrieval
Data retrieval by default returns base64-encoded data:
Passing true
to the getData()
method will decode the data for you:
Immutability
Since Kubernetes v1.21.0, Secrets support immutability. If you do not specify the immutable()
method, it will default to false:
Last updated