ConfigMap Properties
Class Properties 3 members
Represents a Kubernetes ConfigMap resource.
Represents a collection of binary data entries as key-value pairs within a ConfigMap object.
public Dictionary<string, string> BinaryData { get; }Remarks
The BinaryData property is used to store binary data in a Kubernetes ConfigMap. Each entry consists of a unique string key and its corresponding base64-encoded binary value. Keys must follow the Kubernetes naming conventions. This property is read-only in the object and needs to be initialized when configuring the ConfigMap.
Represents a collection of key-value pairs where both the keys and the values are strings.
public Dictionary<string, string> Data { get; }Remarks
The Data property is used to store non-binary configuration data in a ConfigMap resource. Keys must be alphanumeric strings, and values can represent textual configuration details. This property is a central feature of Kubernetes ConfigMaps, enabling applications to access configuration data at runtime without requiring changes to application code. Note that this property is immutable and initialized as an empty dictionary.
Gets or sets a value indicating whether the ConfigMap is immutable.
public bool? Immutable { get; set; }Remarks
When set to true, the ConfigMap becomes immutable, meaning its data and binaryData fields cannot be modified after creation. This ensures that the resource remains unchanged, which is particularly useful for use cases where the ConfigMap data must not be altered, such as configuration storage for applications. When this property is null or false, the ConfigMap can be updated as usual.