Secret Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a Kubernetes Secret resource in the v1 API version.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class Secret : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type Secret = class
inherit BaseKubernetesResource
Public NotInheritable Class Secret
Inherits BaseKubernetesResource
- Inheritance
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
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.
Constructors
Secret() |
Represents a Kubernetes Secret resource in the v1 API version. |
Properties
ApiVersion |
Gets or sets the API version for the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Data |
Represents a collection of base64-encoded data entries within a Kubernetes Secret resource. |
Immutable |
Indicates whether the Secret is immutable. |
Kind |
Gets or sets the kind of the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Metadata |
Gets or sets the metadata for the Kubernetes resource. (Inherited from BaseKubernetesResource) |
StringData |
Represents a dictionary of non-base64 encoded strings that will be used to populate a Kubernetes Secret object. |
Type |
Represents the type of the Kubernetes Secret resource. |