SecretVolumeSourceV1
Class sealed net10.0
Represents a volume source based on a Kubernetes Secret.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class SecretVolumeSourceV1{ // ...} 5 members
Remarks
Section titled 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.
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesDefaultModeget; setint? Gets or sets the default file mode for files created in the volume.
Itemsget Gets a list of key-to-path mappings that specify how individual keys within the secret should be projected into files within the volume.
Optionalget; setbool? Specifies whether the Secret or its keys must be defined.
SecretNameget; setstring Gets or sets the name of the Secret to be referenced as a volume.