Class KubeConfig
java.lang.Object
io.micronaut.kubernetes.client.openapi.config.KubeConfig
Holder for data loaded from the kube config file.
-
Constructor Summary
ConstructorDescriptionKubeConfig
(String kubeConfigPath, Map<String, Object> configMap) KubeConfig
(Map<String, Object> configMap) -
Method Summary
Modifier and TypeMethodDescriptionGets a cluster from the current context.Gets a path of the parent folder of the kube config file.getUser()
Gets a user from the current context.boolean
Checks whether the exec command is provided for getting authentication token.
-
Constructor Details
-
KubeConfig
-
KubeConfig
-
-
Method Details
-
getCluster
Gets a cluster from the current context.- Returns:
Cluster
instance
-
getUser
Gets a user from the current context.- Returns:
AuthInfo
instance
-
getKubeConfigParentPath
Gets a path of the parent folder of the kube config file.- Returns:
Path
instance
-
isExecCommandProvided
public boolean isExecCommandProvided()Checks whether the exec command is provided for getting authentication token.- Returns:
true
if the exec command is provided in the kube config
-