Share via


ConfigMapVolumeSourceV1 Class

Definition

Represents a Kubernetes ConfigMap volume source configuration.

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

Remarks

A ConfigMapVolumeSourceV1 allows the contents of a Kubernetes ConfigMap to be mounted as a volume. The ConfigMap data can be used directly within the container and optionally mapped to specific paths inside the volume. It also provides the ability to configure default file permissions, specify the target ConfigMap by name, and set optional loading behavior.

Constructors

ConfigMapVolumeSourceV1()

Properties

DefaultMode

Specifies the default permissions mode for files created within the volume. This value is represented as an integer and interpreted as an octal value. If not specified, it defaults to 0644, meaning read/write for owner and read-only for group and others.

Items

Gets the collection of key-to-path mappings that specifies how configuration data from a ConfigMap is mapped to paths within a volume. Each entry in this list maps a key from the ConfigMap to a specific path in the volume.

Name

Specifies the name of the ConfigMap. This is a required property that identifies the ConfigMap to be mounted as a volume.

Optional

Specifies whether the ConfigMap or its keys must be defined. If set to true, the ConfigMap or its keys are optional and the application will not fail to start if the ConfigMap or keys are missing. If set to false or omitted, the ConfigMap or its keys are required.

Applies to