Skip to content
DocsTry Aspire
DocsTry

SecretEnvSourceV1 Properties

ClassProperties2 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; }
OptionalSection titled Optionalnullablebool?
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; }