k8sPatchResource

It patches any resource in the cluster, based on provided options. When a client needs to perform the partial update, they can use k8sPatch. Alternatively can use k8sUpdate to replace an existing resource entirely. See Data Tracker for more. It returns a promise that resolves to the response of the resource patched. In case of failure promise gets rejected with HTTP error response.

Parameter Name Description

options

Which are passed as key-value pairs in the map.

options.model

k8s model

options.resource

The resource to be patched.

options.data

Only the data to be patched on existing resource with the operation, path, and value.

options.path

Appends as subpath if provided.

options.queryParams

The query parameters to be included in the URL.