Share via


SecretVolumeSourceV1 Class

Definition

Represents a volume source based on a Kubernetes Secret.

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

Remarks

This class allows configuring a Secret as the data source for a Kubernetes volume. The SecretVolumeSourceV1 can be used to specify the secret name, default access permissions, and specific key-to-path mappings for projecting the contents of the secret into the volume. It also allows specifying whether the configuration is optional.

Constructors

SecretVolumeSourceV1()

Properties

DefaultMode

Gets or sets the default file mode for files created in the volume.

Items

Gets a list of key-to-path mappings that specify how individual keys within the secret should be projected into files within the volume.

Optional

Specifies whether the Secret or its keys must be defined.

SecretName

Gets or sets the name of the Secret to be referenced as a volume.

Applies to