public class KubernetesAuthToken extends Object implements KubernetesAuth
TokenProducer that may need some execution context.| Constructor and Description |
|---|
KubernetesAuthToken(TokenProducer tokenProducer) |
| Modifier and Type | Method and Description |
|---|---|
io.fabric8.kubernetes.api.model.ConfigBuilder |
buildConfigBuilder(KubernetesAuthConfig config,
String context,
String clusterName,
String username) |
String |
buildKubeConfig(KubernetesAuthConfig config)
Builds a kube config file content based on the current authentication object.
|
io.fabric8.kubernetes.api.model.AuthInfoBuilder |
decorate(io.fabric8.kubernetes.api.model.AuthInfoBuilder authInfoBuilder,
KubernetesAuthConfig config) |
io.fabric8.kubernetes.client.ConfigBuilder |
decorate(io.fabric8.kubernetes.client.ConfigBuilder builder,
KubernetesAuthConfig config)
Decorates a
ConfigBuilder to connect using the current authentication object. |
protected String |
getToken(KubernetesAuthConfig config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildConfigBuilder, buildKubeConfigpublic KubernetesAuthToken(TokenProducer tokenProducer)
protected String getToken(KubernetesAuthConfig config) throws KubernetesAuthException
KubernetesAuthExceptionpublic io.fabric8.kubernetes.api.model.AuthInfoBuilder decorate(io.fabric8.kubernetes.api.model.AuthInfoBuilder authInfoBuilder,
KubernetesAuthConfig config)
throws KubernetesAuthException
KubernetesAuthExceptionpublic io.fabric8.kubernetes.client.ConfigBuilder decorate(io.fabric8.kubernetes.client.ConfigBuilder builder,
KubernetesAuthConfig config)
throws KubernetesAuthException
KubernetesAuthConfigBuilder to connect using the current authentication object.decorate in interface KubernetesAuthbuilder - the configuration to decorateKubernetesAuthException - if anything fails during the processing of the authentication configurationpublic String buildKubeConfig(KubernetesAuthConfig config) throws com.fasterxml.jackson.core.JsonProcessingException, KubernetesAuthException
KubernetesAuthbuildKubeConfig in interface KubernetesAuthcom.fasterxml.jackson.core.JsonProcessingException - if something fails while generating the json document for kubeconfigKubernetesAuthException - if something fails while dealing with credentialspublic io.fabric8.kubernetes.api.model.ConfigBuilder buildConfigBuilder(KubernetesAuthConfig config, String context, String clusterName, String username) throws KubernetesAuthException
buildConfigBuilder in interface KubernetesAuthKubernetesAuthExceptionCopyright © 2016–2020. All rights reserved.