Skip to content
Docs Try Aspire

SecretEnvSourceV1 Properties

Class Properties 2 members
SecretEnvSourceV1 represents a reference to a Secret used for populating environment variables in a container.
Gets or sets the name of the referent secret. The secret must exist in the same namespace as the pod.
public string Name { get; set; }
Optional Section titled Optional nullable bool?
Gets or sets a value indicating whether the specified Secret is optional. If set to true, the application will not fail if the Secret is missing. If set to false or not specified, the Secret must exist for the application to function properly.
public bool? Optional { get; set; }