Share via


Secret.Data Property

Definition

Represents a collection of base64-encoded data entries within a Kubernetes Secret resource.

[YamlDotNet.Serialization.YamlMember(Alias="data")]
public System.Collections.Generic.Dictionary<string,string> Data { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="data")>]
member this.Data : System.Collections.Generic.Dictionary<string, string>
Public ReadOnly Property Data As Dictionary(Of String, String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Data property serves as a storage mechanism for sensitive data, such as credentials or configurations, within a Kubernetes Secret object. The property uses a dictionary structure, where the keys correspond to the names of the data entries, and the values are the base64-encoded strings representing the actual data content. It is important to note that Data values must be encoded in base64 format before assignment. When managing secrets, Kubernetes ensures that these values are securely handled and accessible only within the designated scope provided by the resource.

Applies to