ConfigMapEnvSourceV1
Class sealed net10.0
ConfigMapEnvSourceV1 represents a reference to a ConfigMap that provides key-value pair data for environment variables. The specified ConfigMap is used to populate the environment variables in a container.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ConfigMapEnvSourceV1{ // ...}Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesNameget; setstring Gets or sets the name of the ConfigMap resource being referenced.
Optionalget; setbool? Gets or sets a value indicating whether the ConfigMap is optional. If true, the ConfigMap reference is considered optional, and the application will continue running even if the ConfigMap is not found. If false or not set, the absence of the ConfigMap will result in an error.