Share via


Secret.StringData Property

Definition

Represents a dictionary of non-base64 encoded strings that will be used to populate a Kubernetes Secret object.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The StringData property allows users to provide secret data as plain text values instead of base64-encoded strings. When the Kubernetes API processes the secret manifest, these string values will be encoded into base64 and stored in the `Data` field of the Secret. This is a convenience feature to simplify secret creation for developers.

Applies to