Skip to content
Docs Try Aspire

SecretVolumeSourceV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a volume source based on a Kubernetes Secret.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class SecretVolumeSourceV1
{
// ...
}
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.