Skip to main content

secret

Source: base/pkg/kusion_models/kube/frontend/secret/secret.k

Schema Secret

Secret holds secret data of a certain type.
The total bytes of the values in the Data field
must be less than MaxSecretSize bytes.

Base Schema

@base.pkg.kusion_models.kube.frontend.common.Metadata

Attributes

Name and DescriptionTypeDefault ValueRequired
data
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'.
More info: https://kubernetes.io/docs/concepts/configuration/secret/\#restriction-names-data
{str: str}Undefinedoptional
stringData
stringData allows specifying non-binary secret data in string form.
More info: https://kubernetes.io/docs/concepts/configuration/secret/\#restriction-names-data
{str: str}Undefinedoptional
type
Used to facilitate programmatic handling of secret data.
More info: https://kubernetes.io/docs/concepts/configuration/secret/\#secret-types
strUndefinedoptional

Examples

secret = Secret {
name = "my-secret"
namespace = "my-secret-namespace"
data = {
foo = bar
bar = foo
}
$type = "kubernetes.io/service-account-token"
}