Share via


EnvVarSourceV1.SecretKeyRef Property

Definition

SecretKeyRef defines a reference to a specific key within a Kubernetes Secret. It allows the user to map a particular secret key to an environment variable in a container.

[YamlDotNet.Serialization.YamlMember(Alias="secretKeyRef")]
public Aspire.Hosting.Kubernetes.Resources.SecretKeySelectorV1? SecretKeyRef { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="secretKeyRef")>]
member this.SecretKeyRef : Aspire.Hosting.Kubernetes.Resources.SecretKeySelectorV1 with get, set
Public Property SecretKeyRef As SecretKeySelectorV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

This property is used to securely provide sensitive data, such as tokens or passwords, to an application. The referenced key must exist within the specified Secret, and an optional flag can dictate whether the absence of the key is tolerable.

Applies to