Class KubeConfigWriter
java.lang.Object
org.jenkinsci.plugins.kubernetes.cli.kubeconfig.KubeConfigWriter
- Author:
- Max Laverse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.fabric8.kubernetes.api.model.ConfigBuilder
io.fabric8.kubernetes.api.model.ConfigBuilder
getConfigBuilderWithAuth
(String credentialsId, org.jenkinsci.plugins.kubernetes.auth.KubernetesAuth auth) Write a configuration file for kubectl to disk.
-
Field Details
-
ENV_VARIABLE_NAME
- See Also:
-
-
Constructor Details
-
KubeConfigWriter
-
-
Method Details
-
writeKubeConfig
Write a configuration file for kubectl to disk.- Returns:
- path to kubeconfig file
- Throws:
IOException
- on file operationsInterruptedException
- on file operations
-
getConfigBuilderInCluster
public io.fabric8.kubernetes.api.model.ConfigBuilder getConfigBuilderInCluster() throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
getConfigBuilderWithAuth
public io.fabric8.kubernetes.api.model.ConfigBuilder getConfigBuilderWithAuth(String credentialsId, org.jenkinsci.plugins.kubernetes.auth.KubernetesAuth auth) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-