Skip to main content

Function: renameCluster()

function renameCluster(
cluster: string,
newClusterName: string,
source: string,
clusterID?: string): Promise<any>

renameCluster sends call to backend to update a field in kubeconfig which is the custom name of the cluster used by the user.

Note: Currently, the use for the optional clusterID is only for the clusterID for non-dynamic clusters. It is not needed or used for dynamic clusters.

Parameters

ParameterTypeDescription
clusterstring
newClusterNamestring
sourcestring
clusterID?string

Returns

Promise<any>

Defined in

src/lib/k8s/api/v1/clusterApi.ts:161