KubectlAliases.

KubectlSetSelectorWithResult(ICakeContext, KubectlSetSelectorSettings) Method

Summary

Set the selector on a resource. Note that the new selector will overwrite the old selector if the resource had one prior to the invocation of 'set selector'. A selector must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to 63 characters. If --resource-version is specified, then updates will use this resource version, otherwise the existing resource-version will be used. Note: currently selectors can only be set on Service objects.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlSetSelectorWithResult(this ICakeContext context, KubectlSetSelectorSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.