KubectlAliases.

KubectlPortForwardWithResult(ICakeContext, KubectlPortForwardSettings) Method

Summary

Forward one or more local ports to a pod. Use resource type/name such as deployment/mydeployment to select a pod. Resource type defaults to 'pod' if omitted. If there are multiple pods matching the criteria, a pod will be selected automatically. The forwarding session ends when the selected pod terminates, and a rerun of the command is needed to resume forwarding.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlPortForwardWithResult(this ICakeContext context, KubectlPortForwardSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
IEnumerable<string> Output lines.