Secret
Class sealed net10.0
Represents a Kubernetes Secret resource in the v1 API version.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class Secret : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource{ // ...} 5 members
Remarks
Section titled Remarks 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. Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesDatagetDictionary<string, string> Represents a collection of base64-encoded data entries within a Kubernetes Secret resource.
Immutableget; setbool? Indicates whether the Secret is immutable.
StringDatagetDictionary<string, string> Represents a dictionary of non-base64 encoded strings that will be used to populate a Kubernetes Secret object.
Typeget; setstring Represents the type of the Kubernetes Secret resource.