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 |
|---|---|
|
Which are passed as key-value pair in the map |
|
k8s model |
|
Payload for the k8s resource to be updated |
|
Namespace to look into, it should not be specified for cluster-scoped resources. |
|
Resource name to be updated. |
|
Appends as subpath if provided |
|
The query parameters to be included in the URL. |