Skip to main content

secret

Schema Secret

Secret can be used to store sensitive data.

Attributes

Name and DescriptionTypeDefault ValueRequired
type
Type of secret, used to facilitate programmatic handling of secret data.
More info: https://kubernetes.io/docs/concepts/configuration/secret/\#secret-types
"basic" | "opaque"opaquerequired
data
Data contains the non-binary secret data in string form.
{str: str}Undefinedoptional
immutable
Immutable, if set to true, ensures that data stored in the Secret cannot be updated.
boolUndefinedoptional

Examples

import catalog.models.schema.v1.workload.secret as sec

basicAuth = sec.Secret {
type: "basic"
data: {
"username": ""
"password": ""
}
}