KeyToPathV1
Class sealed net10.0
Represents a mapping of a key from a data source (e.g., ConfigMap or Secret) to a specific file path.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class KeyToPathV1{ // ...}Remarks
Section titled 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.
Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesKeyget; setstring 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.
Modeget; setint? 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.
Pathget; setstring 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.