KubectlAliases.

KubectlConfigRenameContext(ICakeContext, KubectlConfigRenameContextSettings) Method

Summary

Renames a context from the kubeconfig file. CONTEXT_NAME is the context name that you wish change. NEW_NAME is the new name you wish to set. Note: In case the context being renamed is the 'current-context', this field will also be updated.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static void KubectlConfigRenameContext(this ICakeContext context, KubectlConfigRenameContextSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings KubectlConfigRenameContextSettings The settings.

Return Value

Type Description
void