Share via


ConfigMapEnvSourceV1 Class

Definition

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.

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

Constructors

ConfigMapEnvSourceV1()

Properties

Name

Gets or sets the name of the ConfigMap resource being referenced.

Optional

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.

Applies to