Skip to content
Docs Try Aspire

Secret Constructors

Class Constructors 1 member
Represents a Kubernetes Secret resource in the v1 API version.
Represents a Kubernetes Secret resource in the v1 API version.
public sealed class Secret
{
public Secret()
{
// ...
}
}
The Secret class is used to store sensitive information, such as passwords, OAuth tokens, and other secrets. Secrets are encoded as key-value pairs and can be mounted into containers or referenced by other Kubernetes resources. By default, the data is Base64-encoded, and alternative string-based representations can also be used.