Class KubeConfig

java.lang.Object
io.kubernetes.client.util.KubeConfig

public class KubeConfig extends Object
KubeConfig represents a kubernetes client configuration
  • Field Details

  • Constructor Details

  • Method Details

    • registerAuthenticator

      public static void registerAuthenticator(Authenticator auth)
    • loadKubeConfig

      public static KubeConfig loadKubeConfig(Reader input)
      Load a Kubernetes config from a Reader
    • getCurrentContext

      public String getCurrentContext()
    • setContext

      public boolean setContext(String context)
    • getContexts

      public ArrayList<Object> getContexts()
    • getClusters

      public ArrayList<Object> getClusters()
    • getUsers

      public ArrayList<Object> getUsers()
    • getNamespace

      public String getNamespace()
    • getPreferences

      public Object getPreferences()
    • getServer

      public String getServer()
    • getCertificateAuthorityData

      public String getCertificateAuthorityData()
    • getCertificateAuthorityFile

      public String getCertificateAuthorityFile()
    • getClientCertificateFile

      public String getClientCertificateFile()
    • getClientCertificateData

      public String getClientCertificateData()
    • getClientKeyFile

      public String getClientKeyFile()
    • getClientKeyData

      public String getClientKeyData()
    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()
    • getCredentials

      public Map<String,String> getCredentials()
    • verifySSL

      public boolean verifySSL()
    • setPersistConfig

      public void setPersistConfig(ConfigPersister persister)
      Set persistence for this config.
      Parameters:
      persister - The persistence to use, or null to not persist the config.
    • setFile

      public void setFile(File file)
      Indicates a file from which this configuration was loaded.
      Parameters:
      file - a file path, available for use when resolving relative file paths
    • setPreferences

      public void setPreferences(Object preferences)
    • getDataOrFileRelative

      public byte[] getDataOrFileRelative(String data, String path) throws IOException
      Throws:
      IOException