Package io.kubernetes.client.util
Class KubeConfig
java.lang.Object
io.kubernetes.client.util.KubeConfig
KubeConfig represents a kubernetes client configuration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getDataOrFileRelative
(String data, String path) getUsers()
static KubeConfig
loadKubeConfig
(Reader input) Load a Kubernetes config from a Readerstatic void
boolean
setContext
(String context) void
Indicates a file from which this configuration was loaded.void
setPersistConfig
(ConfigPersister persister) Set persistence for this config.void
setPreferences
(Object preferences) boolean
-
Field Details
-
ENV_HOME
- See Also:
-
KUBEDIR
- See Also:
-
KUBECONFIG
- See Also:
-
CRED_TOKEN_KEY
- See Also:
-
CRED_CLIENT_CERTIFICATE_DATA_KEY
- See Also:
-
CRED_CLIENT_KEY_DATA_KEY
- See Also:
-
-
Constructor Details
-
KubeConfig
-
-
Method Details
-
registerAuthenticator
-
loadKubeConfig
Load a Kubernetes config from a Reader -
getCurrentContext
-
setContext
-
getContexts
-
getClusters
-
getUsers
-
getNamespace
-
getPreferences
-
getServer
-
getCertificateAuthorityData
-
getCertificateAuthorityFile
-
getClientCertificateFile
-
getClientCertificateData
-
getClientKeyFile
-
getClientKeyData
-
getUsername
-
getPassword
-
getCredentials
-
verifySSL
public boolean verifySSL() -
setPersistConfig
Set persistence for this config.- Parameters:
persister
- The persistence to use, or null to not persist the config.
-
setFile
Indicates a file from which this configuration was loaded.- Parameters:
file
- a file path, available for use when resolving relative file paths
-
setPreferences
-
getDataOrFileRelative
- Throws:
IOException
-