KubectlAliases.

KubectlConfigRenameContextWithResult(ICakeContext, KubectlConfigRenameContextSettings) Method

Summary

Renames a context from the kubeconfig file. CONTEXT_NAME is the context name that you want to change. NEW_NAME is the new name you want to set. Note: If 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 IEnumerable<string> KubectlConfigRenameContextWithResult(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
IEnumerable<string> Output lines.