Share via


KeyToPathV1 Class

Definition

Represents a mapping of a key from a data source (e.g., ConfigMap or Secret) to a specific file path.

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

Remarks

The KeyToPathV1 class allows users to define how key-value pairs from a data source should be projected into a volume. Each key is mapped to a file at the specified path, and optional file access modes can be set.

Constructors

KeyToPathV1()

Properties

Key

Gets or sets the specific key to project. This property represents the key within a data source that will be mapped or projected to a specified path.

Mode

Gets or sets the file mode to be applied to the path. Represents optional permissions for the file, expressed as an integer. If not specified, the default mode is utilized.

Path

Represents the file system path where the key should be projected. This property specifies the target ___location for the key data within the file system when handling Kubernetes resources. The value should be a valid file path.

Applies to