Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCapacityParam

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
func (KubernetesPersistentVolumeResource) WithCapacityParam(capacity ParameterResource) KubernetesPersistentVolumeResource

Signature

methodWithCapacityParambuilder
Sets a parameterized storage capacity for a persistent volume
WithCapacityParam(capacity ParameterResource) KubernetesPersistentVolumeResource
capacityParameterResourceA parameter resource builder for the capacity quantity string.
KubernetesPersistentVolumeResource

The same builder for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: