Share via


ConfigMapKeySelectorV1 Class

Definition

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.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class ConfigMapKeySelectorV1
[<YamlDotNet.Serialization.YamlSerializable>]
type ConfigMapKeySelectorV1 = class
Public NotInheritable Class ConfigMapKeySelectorV1
Inheritance
ConfigMapKeySelectorV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

ConfigMapKeySelectorV1()

Properties

Key

Specifies the key to select from the referenced ConfigMap. This property identifies a specific entry within the ConfigMap that should be used.

Name

Gets or sets the name of the ConfigMap whose key-value pair is to be selected.

Optional

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.

Applies to