KubectlAliases.

KubectlScaleWithResult(ICakeContext, KubectlScaleSettings) Method

Summary

Set a new size for a deployment, replica set, replication controller, or stateful set. Scale also allows users to specify one or more preconditions for the scale action. If --current-replicas or --resource-version is specified, it is validated before the scale is attempted, and it is guaranteed that the precondition holds true when the scale is sent to the server.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlScaleWithResult(this ICakeContext context, KubectlScaleSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.