public class KubeConfigWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENV_VARIABLE_NAME |
| Constructor and Description |
|---|
KubeConfigWriter(String serverUrl,
String credentialsId,
String caCertificate,
String clusterName,
String contextName,
String namespace,
FilePath workspace,
Launcher launcher,
Run<?,?> build) |
| Modifier and Type | Method and Description |
|---|---|
io.fabric8.kubernetes.api.model.ConfigBuilder |
getConfigBuilder(String credentialsId,
org.jenkinsci.plugins.kubernetes.auth.KubernetesAuth auth) |
String |
writeKubeConfig()
Write a configuration file for kubectl to disk.
|
public static final String ENV_VARIABLE_NAME
public String writeKubeConfig() throws IOException, InterruptedException
IOException - on file operationsInterruptedException - on file operationspublic io.fabric8.kubernetes.api.model.ConfigBuilder getConfigBuilder(String credentialsId, org.jenkinsci.plugins.kubernetes.auth.KubernetesAuth auth) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2020. All rights reserved.