KubectlAliases.

KubectlConfigSetCredentialsWithResult(ICakeContext, KubectlConfigSetCredentialsSettings) Method

Summary

Set a user entry in kubeconfig. Specifying a name that already exists will merge new fields on top of existing values. Client-certificate flags: --client-certificate=certfile --client-key=keyfile Bearer token flags: --token=bearer_token Basic auth flags: --username=basic_user --password=basic_password Bearer token and basic auth are mutually exclusive.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlConfigSetCredentialsWithResult(this ICakeContext context, KubectlConfigSetCredentialsSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.