KubectlAliases.

KubectlAuthWhoamiWithResult(ICakeContext, KubectlAuthWhoamiSettings) Method

Summary

Experimental: Check who you are and your attributes (groups, extra). This command is helpful to get yourself aware of the current user attributes, especially when dynamic authentication, e.g., token webhook, auth proxy, or OIDC provider, is enabled in the Kubernetes cluster.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlAuthWhoamiWithResult(this ICakeContext context, KubectlAuthWhoamiSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.