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) |
Modifier and Type | Method and Description |
---|---|
Authentication |
getDelegateAuthentication() |
void |
provide(io.kubernetes.client.openapi.ApiClient client) |
public KubeconfigAuthentication(KubeConfig config) throws IOException
IOException
public void provide(io.kubernetes.client.openapi.ApiClient client)
provide
in interface Authentication
public Authentication getDelegateAuthentication()
Copyright © 2022. All rights reserved.