KubectlAliases.

KubectlReplaceWithResult(ICakeContext, KubectlReplaceSettings) Method

Summary

Replace a resource by filename or stdin. JSON and YAML formats are accepted. If replacing an existing resource, the complete resource spec must be provided. This can be obtained by $ kubectl get TYPE NAME -o yaml
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlReplaceWithResult(this ICakeContext context, KubectlReplaceSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.