Skip to content
DocsTry Aspire
DocsTry

KubernetesManifestResource.withLabel

Method
📦 Aspire.Hosting.Kubernetes v13.5.3-preview.1.26425.3
interface KubernetesManifestResource {
// ... omitted for brevity
withLabel(
key: string,
value: string): KubernetesManifestResource;
}

Signature

methodwithLabel
Adds or updates a Kubernetes label on this manifest.
withLabel(
key: string,
value: string): KubernetesManifestResource
keystring
valuestring
KubernetesManifestResource

Defined on

This method is defined on the following type: