# CsiVolumeSourceV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Kubernetes/Resources/CsiVolumeSourceV1.cs)

Represents a CSI (Container Storage Interface) volume source in Kubernetes.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class CsiVolumeSourceV1
{
    // ...
}
```

## Remarks

CSI volumes are inline ephemeral volumes that are served by a CSI driver. They can be used by drivers to project external storage, secrets, or certificates into a pod at mount time.

## Constructors

- [CsiVolumeSourceV1](/reference/api/csharp/aspire.hosting.kubernetes/csivolumesourcev1/constructors.md#constructor)

## Properties

- [Driver](/reference/api/csharp/aspire.hosting.kubernetes/csivolumesourcev1/properties.md#driver) : `string` `get; set` -- Gets or sets the name of the CSI driver that handles the volume.
- [FsType](/reference/api/csharp/aspire.hosting.kubernetes/csivolumesourcev1/properties.md#fstype) : `string?` `get; set` -- Gets or sets the filesystem type to mount.
- [NodePublishSecretRef](/reference/api/csharp/aspire.hosting.kubernetes/csivolumesourcev1/properties.md#nodepublishsecretref) : [LocalObjectReferenceV1?](/reference/api/csharp/aspire.hosting.kubernetes/localobjectreferencev1.md) `get; set` -- Gets or sets a reference to the secret that contains node publish credentials.
- [ReadOnly](/reference/api/csharp/aspire.hosting.kubernetes/csivolumesourcev1/properties.md#readonly) : `bool?` `get; set` -- Gets or sets a value indicating whether the volume should be mounted read-only.
- [VolumeAttributes](/reference/api/csharp/aspire.hosting.kubernetes/csivolumesourcev1/properties.md#volumeattributes) : `Dictionary<string, string>` `get` -- Gets the driver-specific volume attributes.
