Skip to content
DocsTry Aspire
DocsTry

EnvFromSourceV1 Properties

ClassProperties3 members
EnvFromSourceV1 represents an environment variable source used to populate environment variables in a container.
Represents a reference to a ConfigMap resource that is used to populate the environment variables within a container. It provides key-value pairs from the specified ConfigMap for use as environment variable values.
public ConfigMapEnvSourceV1? ConfigMapRef { get; set; }
PrefixSection titled Prefixnullablestring?
The prefix to be added to each environment variable name defined by ConfigMapRef or SecretRef. This allows easy identification or grouping of environment variables injected from ConfigMap or Secret sources within the application.
public string? Prefix { get; set; }
SecretRef represents a reference to a Secret resource. It is used to populate environment variables by mapping key-value pairs from the Secret's Data field to environment variables.
public SecretEnvSourceV1? SecretRef { get; set; }