Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithVolumeAnnotationParam

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
func (KubernetesPersistentVolumeResource) WithVolumeAnnotationParam(
key string,
value ParameterResource,
) KubernetesPersistentVolumeResource

Signature

methodWithVolumeAnnotationParambuilder
Adds a parameterized Kubernetes metadata annotation to a persistent volume
WithVolumeAnnotationParam(
key string,
value ParameterResource,
) KubernetesPersistentVolumeResource
keystringThe annotation key.
valueParameterResourceA parameter resource builder for the annotation value.
KubernetesPersistentVolumeResource

The same builder for chaining.

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

Applies to

This method applies to the following types: