| Constructor and Description |
|---|
KubectlWrapper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
runKubectlCommand(JenkinsRunContext context,
KubeConfig kubeConfig,
String command,
com.google.common.collect.ImmutableList<String> args)
Runs the specified kubectl command within the specified
JenkinsRunContext's
environment. |
public static void runKubectlCommand(JenkinsRunContext context, KubeConfig kubeConfig, String command, com.google.common.collect.ImmutableList<String> args) throws IOException, InterruptedException
JenkinsRunContext's
environment.context - The JenkinsRunContext whose environment the command will execute in.kubeConfig - The KubeConfig containing the credentials for the cluster being
executed against.command - The kubectl command to be run.args - Arguments for the command.IOException - If an error occurred while executing the command.InterruptedException - If an error occured while executing the command.Copyright © 2016–2019 Google. All rights reserved.