Class KubernetesAuthCertificate
java.lang.Object
org.jenkinsci.plugins.kubernetes.auth.impl.KubernetesAuthCertificate
- All Implemented Interfaces:
KubernetesAuth
-
Constructor Summary
ConstructorDescriptionKubernetesAuthCertificate
(String certificate, Secret key) KubernetesAuthCertificate
(String certificate, String key) -
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.api.model.AuthInfoBuilder
decorate
(io.fabric8.kubernetes.api.model.AuthInfoBuilder builder, KubernetesAuthConfig config) io.fabric8.kubernetes.client.ConfigBuilder
decorate
(io.fabric8.kubernetes.client.ConfigBuilder builder, KubernetesAuthConfig config) Decorates aConfigBuilder
to connect using the current authentication object.getKey()
Deprecated.
-
Constructor Details
-
KubernetesAuthCertificate
-
KubernetesAuthCertificate
-
-
Method Details
-
decorate
public io.fabric8.kubernetes.api.model.AuthInfoBuilder decorate(io.fabric8.kubernetes.api.model.AuthInfoBuilder builder, KubernetesAuthConfig config) -
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.- Parameters:
builder
- the configuration to decorate- Returns:
- the decorated configuration
-
getCertificate
-
getKey
Deprecated. -
getKeySecret
-
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.
- Throws:
KubernetesAuthException
- if something fails while dealing with credentials
-
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
-