KubectlAliases.

KubectlConfigGetContextsWithResult(ICakeContext, KubectlConfigGetContextsSettings) Method

Summary

Display one or many contexts from the kubeconfig file.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlConfigGetContextsWithResult(this ICakeContext context, KubectlConfigGetContextsSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.