KubernetesManifestResource.withField

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesManifestResource {
// ... omitted for brevity
withField(
path: string,
value: any): KubernetesManifestResource;
}

Signature

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

Defined on

This method is defined on the following type: