Share via


SecretVolumeSourceV1.SecretName Property

Definition

Gets or sets the name of the Secret to be referenced as a volume.

[YamlDotNet.Serialization.YamlMember(Alias="secretName")]
public string SecretName { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="secretName")>]
member this.SecretName : string with get, set
Public Property SecretName As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The SecretName property specifies the name of a Kubernetes Secret resource to mount as a volume. This allows pods to access Secret data, such as sensitive information, in a filesystem-based layout. When a Secret is mounted as a volume, the key-value pairs within the Secret are projected as files. The property should contain the name of an existing Secret in the same namespace as the Pod. If the referenced Secret does not exist, the Pod will fail to instantiate unless the Optional property is set to true.

Applies to