java.lang.Object
io.micronaut.kubernetes.client.openapi.config.KubeConfig

public final class KubeConfig extends Object
Holder for data loaded from the kube config file.
  • Constructor Details

  • Method Details

    • getCluster

      public Cluster getCluster()
      Gets a cluster from the current context.
      Returns:
      Cluster instance
    • getUser

      public AuthInfo getUser()
      Gets a user from the current context.
      Returns:
      AuthInfo instance
    • getKubeConfigParentPath

      public Optional<Path> 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