KubectlAliases.

KubectlConvertWithResult(ICakeContext, KubectlConvertSettings) Method

Summary

Convert config files between different API versions. Both YAML and JSON formats are accepted. The command takes filename, directory, or URL as input, and convert it into format of version specified by --output-version flag. If target version is not specified or not supported, convert to latest version. The default output will be printed to stdout in YAML format. One can use -o option to change to output destination.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlConvertWithResult(this ICakeContext context, KubectlConvertSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.