Class KubernetesAuthKubeconfig
java.lang.Object
org.jenkinsci.plugins.kubernetes.auth.impl.KubernetesAuthKubeconfig
- All Implemented Interfaces:
KubernetesAuth
Kubernetes authentication using a raw kubeconfig string.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.fabric8.kubernetes.api.model.ConfigBuilder
buildConfigBuilder
(KubernetesAuthConfig config, String context, String clusterName, String username) buildKubeConfig
(KubernetesAuthConfig config) Builds a kube config file content based on the current authentication object.io.fabric8.kubernetes.client.ConfigBuilder
decorate
(io.fabric8.kubernetes.client.ConfigBuilder builder, KubernetesAuthConfig config) Decorates aConfigBuilder
to connect using the current authentication object.
-
Constructor Details
-
KubernetesAuthKubeconfig
-
-
Method Details
-
buildKubeConfig
Description copied from interface:KubernetesAuth
Builds a kube config file content based on the current authentication object.- Specified by:
buildKubeConfig
in interfaceKubernetesAuth
- Returns:
- Kubeconfig file content corresponding to this authentication object.
-
decorate
public io.fabric8.kubernetes.client.ConfigBuilder decorate(io.fabric8.kubernetes.client.ConfigBuilder builder, KubernetesAuthConfig config) Description copied from interface:KubernetesAuth
Decorates aConfigBuilder
to connect using the current authentication object.- Specified by:
decorate
in interfaceKubernetesAuth
- Parameters:
builder
- the configuration to decorate- Returns:
- the decorated configuration
-
buildConfigBuilder
public io.fabric8.kubernetes.api.model.ConfigBuilder buildConfigBuilder(KubernetesAuthConfig config, String context, String clusterName, String username) throws KubernetesAuthException - Specified by:
buildConfigBuilder
in interfaceKubernetesAuth
- Throws:
KubernetesAuthException
-
getKubeconfig
-