WithKubernetesPersistentVolumeMount
Method
func (IComputeResource) WithKubernetesPersistentVolumeMount( volume KubernetesPersistentVolumeResource, mountPath string, options ...*WithKubernetesPersistentVolumeMountOptions,) IComputeResourceSignature
method
WithKubernetesPersistentVolumeMount builderBinds a workload to a Kubernetes persistent volume and mounts it at a path
WithKubernetesPersistentVolumeMount( volume KubernetesPersistentVolumeResource, mountPath string, options ...*WithKubernetesPersistentVolumeMountOptions,) IComputeResourceParameters
volumeKubernetesPersistentVolumeResource The persistent volume resource to bind to.mountPath stringThe path inside the deployed container where the volume is mounted.options...*WithKubernetesPersistentVolumeMountOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithKubernetesPersistentVolumeMountOptions argument.
IsReadOnly *boolWhen true, mounts the deployed volume read-only.Env*stringAn optional environment variable that receives the effective storage path.Returns
IComputeResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
CSharpAppResourcetype
ContainerResourcetype
DotnetToolResourcetype
ExecutableResourcetype
KubernetesAspireDashboardResourcetype
ProjectResource