ConfigMapKeySelectorV1
Class sealed net10.0
ConfigMapKeySelectorV1 represents a selector for a specific key in a ConfigMap. It is used to select a named key from a ConfigMap, with an optional flag to indicate if the key or ConfigMap is optional.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ConfigMapKeySelectorV1{ // ...}Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesKeyget; setstring Specifies the key to select from the referenced ConfigMap. This property identifies a specific entry within the ConfigMap that should be used.
Nameget; setstring Gets or sets the name of the ConfigMap whose key-value pair is to be selected.
Optionalget; setbool? Indicates whether the specific key in the ConfigMap is optional. If set to true, the absence of the specified key will not raise an error. If set to false or null, the specified key must exist in the ConfigMap; otherwise, an error may be raised.