KubernetesManifestResource

Handle
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesManifestResource {
metadata: ObjectMetaV1;
withAnnotation(
key: string,
value: string): KubernetesManifestResource;
withField(
path: string,
value: any): KubernetesManifestResource;
withLabel(
key: string,
value: string): KubernetesManifestResource;
withNamespace(namespace: string): KubernetesManifestResource;
}

Properties

propertymetadataObjectMetaV1get · set
Gets or sets the metadata for the Kubernetes resource.

Methods

Adds or updates a Kubernetes annotation on this manifest.
withAnnotation(
key: string,
value: string): KubernetesManifestResource
keystringThe annotation key.
valuestringThe annotation value.
KubernetesManifestResource
methodwithField
Adds or updates a manifest field using a dot-separated path.
withField(
path: string,
value: any): KubernetesManifestResource
pathstringThe dot-separated manifest field path, for example `spec.replicas` or `data.username`.
valueanyThe JSON-compatible field value.
KubernetesManifestResource
methodwithLabel
Adds or updates a Kubernetes label on this manifest.
withLabel(
key: string,
value: string): KubernetesManifestResource
keystringThe label key.
valuestringThe label value.
KubernetesManifestResource
Sets the namespace for this manifest.
withNamespace(namespace: string): KubernetesManifestResource
namespacestringThe Kubernetes namespace.
KubernetesManifestResource