public class KubeconfigAuthentication extends Object implements Authentication
KubeConfig to configure ApiClient authentication to the Kubernetes API.
Tries to configure the following authentication mechanisms in this order.
ClientCertificateAuthentication (using client certificate files or data)
UsernamePasswordAuthentication
AccessTokenAuthentication
| Constructor and Description |
|---|
KubeconfigAuthentication(KubeConfig config) |
public KubeconfigAuthentication(KubeConfig config) throws IOException
IOExceptionpublic void provide(io.kubernetes.client.openapi.ApiClient client)
provide in interface AuthenticationCopyright © 2020. All rights reserved.