k8sUpdateResource

It updates the entire resource in the cluster, based on provided options. When a client needs to replace an existing resource entirely, they can use k8sUpdate. Alternatively can use k8sPatch to perform the partial update. It returns a promise that resolves to the response of the resource updated. In case of failure promise gets rejected with HTTP error response.

Parameter Name Description

options

Which are passed as key-value pair in the map

options.model

k8s model

options.data

Payload for the k8s resource to be updated

options.ns

Namespace to look into, it should not be specified for cluster-scoped resources.

options.name

Resource name to be updated.

options.path

Appends as subpath if provided

options.queryParams

The query parameters to be included in the URL.