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