KubectlAliases.

KubectlApplySetLastAppliedWithResult(ICakeContext, KubectlApplySetLastAppliedSettings) Method

Summary

Set the latest last-applied-configuration annotations by setting it to match the contents of a file. This results in the last-applied-configuration being updated as though 'kubectl apply -f<file> ' was run, without updating any other parts of the object.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlApplySetLastAppliedWithResult(this ICakeContext context, KubectlApplySetLastAppliedSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.