SecretEnvSourceV1
Class sealed net10.0
SecretEnvSourceV1 represents a reference to a Secret used for populating environment variables in a container.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class SecretEnvSourceV1{ // ...}Remarks
Section titled Remarks This class provides a way to source environment variable data from a Secret within Kubernetes. A Secret contains sensitive information such as tokens, passwords, or keys that can be used as part of a container's environment.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesNameget; setstring Gets or sets the name of the referent secret. The secret must exist in the same namespace as the pod.
Optionalget; setbool? 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.