Skip to content
DocsTry Aspire
DocsTry

KubernetesManifestResource

Handle
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
interface KubernetesManifestResource {
withAnnotation(
key: string,
value: string): KubernetesManifestResource;
withField(
path: string,
value: string|number|boolean): KubernetesManifestResource;
withLabel(
key: string,
value: string): KubernetesManifestResource;
withNamespace(namespace: string): KubernetesManifestResource;
}

Methods

Adds or updates a Kubernetes annotation on this manifest.
withAnnotation(
key: string,
value: string): KubernetesManifestResource
keystring
valuestring
KubernetesManifestResource
methodwithField
Adds or updates a manifest field using a dot-separated path.
withField(
path: string,
value: string|number|boolean): KubernetesManifestResource
pathstring
valuestring|number|boolean
KubernetesManifestResource
methodwithLabel
Adds or updates a Kubernetes label on this manifest.
withLabel(
key: string,
value: string): KubernetesManifestResource
keystring
valuestring
KubernetesManifestResource
Sets the namespace for this manifest.
withNamespace(namespace: string): KubernetesManifestResource
namespacestring
KubernetesManifestResource