Watch Aspire live streamsDocsTry Aspire

FileKeySelectorV1 Properties

ClassProperties4 members
Selects a key from an environment variable file in a pod's emptyDir volume.
Gets or sets the key whose value is selected from the environment variable file. Keys may contain printable ASCII characters except =. An invalid key prevents the pod from starting. In Kubernetes 1.34, where EnvFiles is alpha, keys are limited to 128 characters.
public string Key { get; set; }
OptionalSection titled Optionalnullablebool?
Gets or sets whether the file or key may be absent. When true, a missing file or key leaves the environment variable unset. When false or unspecified, a missing file or key prevents the container from starting.
public bool? Optional { get; set; }
Gets or sets the file path relative to the volume root. The path must not contain a parent directory component or start with ...
public string Path { get; set; }
Gets or sets the name of the emptyDir volume containing the environment variable file.
public string VolumeName { get; set; }