Package io.fabric8.kubernetes.client
Class Config
- java.lang.Object
-
- io.fabric8.kubernetes.client.Config
-
public class Config extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Config()
Deprecated.useautoConfigure(String)
orConfigBuilder
insteadConfig(String masterUrl, String apiVersion, String namespace, boolean trustCerts, boolean disableHostnameVerification, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, String oauthToken, int watchReconnectInterval, int watchReconnectLimit, int connectionTimeout, int requestTimeout, long rollingTimeout, long scaleTimeout, int loggingInterval, int maxConcurrentRequests, int maxConcurrentRequestsPerHost, boolean http2Disable, String httpProxy, String httpsProxy, String[] noProxy, Map<Integer,String> errorMessages, String userAgent, okhttp3.TlsVersion[] tlsVersions, long websocketTimeout, long websocketPingInterval, String proxyUsername, String proxyPassword, String trustStoreFile, String trustStorePassphrase, String keyStoreFile, String keyStorePassphrase, String impersonateUsername, String[] impersonateGroups, Map<String,List<String>> impersonateExtras, OAuthTokenProvider oauthTokenProvider, Map<String,String> customHeaders)
Config(String masterUrl, String apiVersion, String namespace, boolean trustCerts, boolean disableHostnameVerification, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, String oauthToken, int watchReconnectInterval, int watchReconnectLimit, int connectionTimeout, int requestTimeout, long rollingTimeout, long scaleTimeout, int loggingInterval, int maxConcurrentRequests, int maxConcurrentRequestsPerHost, String httpProxy, String httpsProxy, String[] noProxy, Map<Integer,String> errorMessages, String userAgent, okhttp3.TlsVersion[] tlsVersions, long websocketTimeout, long websocketPingInterval, String proxyUsername, String proxyPassword, String trustStoreFile, String trustStorePassphrase, String keyStoreFile, String keyStorePassphrase, String impersonateUsername, String[] impersonateGroups, Map<String,List<String>> impersonateExtras)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Config
autoConfigure(String context)
Does auto detection with some opinionated defaults.static io.fabric8.kubernetes.api.model.ConfigBuilder
builder()
static void
configFromSysPropsOrEnvVars(Config config)
static Config
empty()
Create an emptyConfig
class without any automatic configuration (i.e.static Config
fromKubeconfig(String kubeconfigContents)
static Config
fromKubeconfig(String context, String kubeconfigContents, String kubeconfigPath)
String
getApiVersion()
protected static List<String>
getAuthenticatorCommandFromExecConfig(io.fabric8.kubernetes.api.model.ExecConfig exec, File configFile, String systemPathValue)
Boolean
getAutoConfigure()
String
getCaCertData()
String
getCaCertFile()
String
getClientCertData()
String
getClientCertFile()
String
getClientKeyAlgo()
String
getClientKeyData()
String
getClientKeyFile()
String
getClientKeyPassphrase()
protected static String
getCommandWithFullyQualifiedPath(String command, String pathValue)
int
getConnectionTimeout()
List<io.fabric8.kubernetes.api.model.NamedContext>
getContexts()
Returns all theNamedContext
s that exist in the kube configio.fabric8.kubernetes.api.model.NamedContext
getCurrentContext()
Returns the current context that's defined in the kube config.Map<String,String>
getCustomHeaders()
Map<Integer,String>
getErrorMessages()
protected static io.fabric8.kubernetes.client.Config.ExecCredential
getExecCredentialFromExecConfig(io.fabric8.kubernetes.api.model.ExecConfig exec, File configFile)
File
getFile()
Returns the path to the file that this configuration was loaded from.String
getHttpProxy()
String
getHttpsProxy()
Map<String,List<String>>
getImpersonateExtras()
String
getImpersonateGroup()
Deprecated.UsegetImpersonateGroups()
insteadString[]
getImpersonateGroups()
String
getImpersonateUsername()
static String
getKeyAlgorithm(InputStream inputStream)
static String
getKeyAlgorithm(String clientKeyFile, String clientKeyData)
String
getKeyStoreFile()
String
getKeyStorePassphrase()
static String
getKubeconfigFilename()
int
getLoggingInterval()
String
getMasterUrl()
int
getMaxConcurrentRequests()
int
getMaxConcurrentRequestsPerHost()
String
getNamespace()
String[]
getNoProxy()
String
getOauthToken()
OAuthTokenProvider
getOauthTokenProvider()
String
getPassword()
String
getProxyPassword()
String
getProxyUsername()
RequestConfig
getRequestConfig()
int
getRequestTimeout()
long
getRollingTimeout()
long
getScaleTimeout()
okhttp3.TlsVersion[]
getTlsVersions()
String
getTrustStoreFile()
String
getTrustStorePassphrase()
String
getUserAgent()
String
getUsername()
int
getWatchReconnectInterval()
int
getWatchReconnectLimit()
long
getWebsocketPingInterval()
long
getWebsocketTimeout()
boolean
isDisableHostnameVerification()
boolean
isHttp2Disable()
boolean
isTrustCerts()
void
setApiVersion(String apiVersion)
void
setCaCertData(String caCertData)
void
setCaCertFile(String caCertFile)
void
setClientCertData(String clientCertData)
void
setClientCertFile(String clientCertFile)
void
setClientKeyAlgo(String clientKeyAlgo)
void
setClientKeyData(String clientKeyData)
void
setClientKeyFile(String clientKeyFile)
void
setClientKeyPassphrase(String clientKeyPassphrase)
void
setConnectionTimeout(int connectionTimeout)
void
setContexts(List<io.fabric8.kubernetes.api.model.NamedContext> contexts)
void
setCurrentContext(io.fabric8.kubernetes.api.model.NamedContext context)
void
setCustomHeaders(Map<String,String> customHeaders)
void
setDisableHostnameVerification(boolean disableHostnameVerification)
void
setErrorMessages(Map<Integer,String> errorMessages)
void
setHttp2Disable(boolean http2Disable)
void
setHttpProxy(String httpProxy)
void
setHttpsProxy(String httpsProxy)
void
setImpersonateExtras(Map<String,List<String>> impersonateExtras)
void
setImpersonateGroup(String impersonateGroup)
Deprecated.UsesetImpersonateGroups(String...)
insteadvoid
setImpersonateGroups(String... impersonateGroup)
void
setImpersonateUsername(String impersonateUsername)
void
setKeyStoreFile(String keyStoreFile)
void
setKeyStorePassphrase(String keyStorePassphrase)
void
setLoggingInterval(int loggingInterval)
void
setMasterUrl(String masterUrl)
void
setMaxConcurrentRequests(int maxConcurrentRequests)
void
setMaxConcurrentRequestsPerHost(int maxConcurrentRequestsPerHost)
void
setNamespace(String namespace)
void
setNoProxy(String[] noProxy)
void
setOauthToken(String oauthToken)
void
setOauthTokenProvider(OAuthTokenProvider oauthTokenProvider)
void
setPassword(String password)
void
setProxyPassword(String proxyPassword)
void
setProxyUsername(String proxyUsername)
void
setRequestTimeout(int requestTimeout)
void
setRollingTimeout(long rollingTimeout)
void
setScaleTimeout(long scaleTimeout)
void
setTlsVersions(okhttp3.TlsVersion[] tlsVersions)
void
setTrustCerts(boolean trustCerts)
void
setTrustStoreFile(String trustStoreFile)
void
setTrustStorePassphrase(String trustStorePassphrase)
void
setUserAgent(String userAgent)
void
setUsername(String username)
void
setWatchReconnectInterval(int watchReconnectInterval)
void
setWatchReconnectLimit(int watchReconnectLimit)
void
setWebsocketPingInterval(long websocketPingInterval)
void
setWebsocketTimeout(long websocketTimeout)
-
-
-
Field Detail
-
KUBERNETES_DISABLE_AUTO_CONFIG_SYSTEM_PROPERTY
public static final String KUBERNETES_DISABLE_AUTO_CONFIG_SYSTEM_PROPERTY
Disables auto-configuration based on opinionated defaults in aConfig
object in the default constructor- See Also:
- Constant Field Values
-
KUBERNETES_MASTER_SYSTEM_PROPERTY
public static final String KUBERNETES_MASTER_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_API_VERSION_SYSTEM_PROPERTY
public static final String KUBERNETES_API_VERSION_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_TRUST_CERT_SYSTEM_PROPERTY
public static final String KUBERNETES_TRUST_CERT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_DISABLE_HOSTNAME_VERIFICATION_SYSTEM_PROPERTY
public static final String KUBERNETES_DISABLE_HOSTNAME_VERIFICATION_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CA_CERTIFICATE_FILE_SYSTEM_PROPERTY
public static final String KUBERNETES_CA_CERTIFICATE_FILE_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CA_CERTIFICATE_DATA_SYSTEM_PROPERTY
public static final String KUBERNETES_CA_CERTIFICATE_DATA_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CLIENT_CERTIFICATE_FILE_SYSTEM_PROPERTY
public static final String KUBERNETES_CLIENT_CERTIFICATE_FILE_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CLIENT_CERTIFICATE_DATA_SYSTEM_PROPERTY
public static final String KUBERNETES_CLIENT_CERTIFICATE_DATA_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CLIENT_KEY_FILE_SYSTEM_PROPERTY
public static final String KUBERNETES_CLIENT_KEY_FILE_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CLIENT_KEY_DATA_SYSTEM_PROPERTY
public static final String KUBERNETES_CLIENT_KEY_DATA_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CLIENT_KEY_ALGO_SYSTEM_PROPERTY
public static final String KUBERNETES_CLIENT_KEY_ALGO_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CLIENT_KEY_PASSPHRASE_SYSTEM_PROPERTY
public static final String KUBERNETES_CLIENT_KEY_PASSPHRASE_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_AUTH_BASIC_USERNAME_SYSTEM_PROPERTY
public static final String KUBERNETES_AUTH_BASIC_USERNAME_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_AUTH_BASIC_PASSWORD_SYSTEM_PROPERTY
public static final String KUBERNETES_AUTH_BASIC_PASSWORD_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_AUTH_TRYKUBECONFIG_SYSTEM_PROPERTY
public static final String KUBERNETES_AUTH_TRYKUBECONFIG_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_AUTH_TRYSERVICEACCOUNT_SYSTEM_PROPERTY
public static final String KUBERNETES_AUTH_TRYSERVICEACCOUNT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_OAUTH_TOKEN_SYSTEM_PROPERTY
public static final String KUBERNETES_OAUTH_TOKEN_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_WATCH_RECONNECT_INTERVAL_SYSTEM_PROPERTY
public static final String KUBERNETES_WATCH_RECONNECT_INTERVAL_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_WATCH_RECONNECT_LIMIT_SYSTEM_PROPERTY
public static final String KUBERNETES_WATCH_RECONNECT_LIMIT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_CONNECTION_TIMEOUT_SYSTEM_PROPERTY
public static final String KUBERNETES_CONNECTION_TIMEOUT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_REQUEST_TIMEOUT_SYSTEM_PROPERTY
public static final String KUBERNETES_REQUEST_TIMEOUT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_ROLLING_TIMEOUT_SYSTEM_PROPERTY
public static final String KUBERNETES_ROLLING_TIMEOUT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_LOGGING_INTERVAL_SYSTEM_PROPERTY
public static final String KUBERNETES_LOGGING_INTERVAL_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_SCALE_TIMEOUT_SYSTEM_PROPERTY
public static final String KUBERNETES_SCALE_TIMEOUT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_WEBSOCKET_TIMEOUT_SYSTEM_PROPERTY
public static final String KUBERNETES_WEBSOCKET_TIMEOUT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_WEBSOCKET_PING_INTERVAL_SYSTEM_PROPERTY
public static final String KUBERNETES_WEBSOCKET_PING_INTERVAL_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_MAX_CONCURRENT_REQUESTS
public static final String KUBERNETES_MAX_CONCURRENT_REQUESTS
- See Also:
- Constant Field Values
-
KUBERNETES_MAX_CONCURRENT_REQUESTS_PER_HOST
public static final String KUBERNETES_MAX_CONCURRENT_REQUESTS_PER_HOST
- See Also:
- Constant Field Values
-
KUBERNETES_IMPERSONATE_USERNAME
public static final String KUBERNETES_IMPERSONATE_USERNAME
- See Also:
- Constant Field Values
-
KUBERNETES_IMPERSONATE_GROUP
public static final String KUBERNETES_IMPERSONATE_GROUP
- See Also:
- Constant Field Values
-
KUBERNETES_TRUSTSTORE_PASSPHRASE_PROPERTY
public static final String KUBERNETES_TRUSTSTORE_PASSPHRASE_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_TRUSTSTORE_FILE_PROPERTY
public static final String KUBERNETES_TRUSTSTORE_FILE_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_KEYSTORE_PASSPHRASE_PROPERTY
public static final String KUBERNETES_KEYSTORE_PASSPHRASE_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_KEYSTORE_FILE_PROPERTY
public static final String KUBERNETES_KEYSTORE_FILE_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_TLS_VERSIONS
public static final String KUBERNETES_TLS_VERSIONS
- See Also:
- Constant Field Values
-
KUBERNETES_TRYNAMESPACE_PATH_SYSTEM_PROPERTY
public static final String KUBERNETES_TRYNAMESPACE_PATH_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_NAMESPACE_PATH
public static final String KUBERNETES_NAMESPACE_PATH
- See Also:
- Constant Field Values
-
KUBERNETES_NAMESPACE_FILE
public static final String KUBERNETES_NAMESPACE_FILE
- See Also:
- Constant Field Values
-
KUBERNETES_NAMESPACE_SYSTEM_PROPERTY
public static final String KUBERNETES_NAMESPACE_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_KUBECONFIG_FILE
public static final String KUBERNETES_KUBECONFIG_FILE
- See Also:
- Constant Field Values
-
KUBERNETES_SERVICE_HOST_PROPERTY
public static final String KUBERNETES_SERVICE_HOST_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_SERVICE_PORT_PROPERTY
public static final String KUBERNETES_SERVICE_PORT_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_SERVICE_ACCOUNT_TOKEN_PATH
public static final String KUBERNETES_SERVICE_ACCOUNT_TOKEN_PATH
- See Also:
- Constant Field Values
-
KUBERNETES_SERVICE_ACCOUNT_CA_CRT_PATH
public static final String KUBERNETES_SERVICE_ACCOUNT_CA_CRT_PATH
- See Also:
- Constant Field Values
-
KUBERNETES_HTTP2_DISABLE
public static final String KUBERNETES_HTTP2_DISABLE
- See Also:
- Constant Field Values
-
KUBERNETES_HTTP_PROXY
public static final String KUBERNETES_HTTP_PROXY
- See Also:
- Constant Field Values
-
KUBERNETES_HTTPS_PROXY
public static final String KUBERNETES_HTTPS_PROXY
- See Also:
- Constant Field Values
-
KUBERNETES_ALL_PROXY
public static final String KUBERNETES_ALL_PROXY
- See Also:
- Constant Field Values
-
KUBERNETES_NO_PROXY
public static final String KUBERNETES_NO_PROXY
- See Also:
- Constant Field Values
-
KUBERNETES_PROXY_USERNAME
public static final String KUBERNETES_PROXY_USERNAME
- See Also:
- Constant Field Values
-
KUBERNETES_PROXY_PASSWORD
public static final String KUBERNETES_PROXY_PASSWORD
- See Also:
- Constant Field Values
-
KUBERNETES_USER_AGENT
public static final String KUBERNETES_USER_AGENT
-
DEFAULT_MASTER_URL
public static final String DEFAULT_MASTER_URL
- See Also:
- Constant Field Values
-
DEFAULT_ROLLING_TIMEOUT
public static final Long DEFAULT_ROLLING_TIMEOUT
-
DEFAULT_SCALE_TIMEOUT
public static final Long DEFAULT_SCALE_TIMEOUT
-
DEFAULT_LOGGING_INTERVAL
public static final int DEFAULT_LOGGING_INTERVAL
- See Also:
- Constant Field Values
-
DEFAULT_WEBSOCKET_TIMEOUT
public static final Long DEFAULT_WEBSOCKET_TIMEOUT
-
DEFAULT_WEBSOCKET_PING_INTERVAL
public static final Long DEFAULT_WEBSOCKET_PING_INTERVAL
-
DEFAULT_MAX_CONCURRENT_REQUESTS
public static final Integer DEFAULT_MAX_CONCURRENT_REQUESTS
-
DEFAULT_MAX_CONCURRENT_REQUESTS_PER_HOST
public static final Integer DEFAULT_MAX_CONCURRENT_REQUESTS_PER_HOST
-
HTTP_PROTOCOL_PREFIX
public static final String HTTP_PROTOCOL_PREFIX
- See Also:
- Constant Field Values
-
HTTPS_PROTOCOL_PREFIX
public static final String HTTPS_PROTOCOL_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Config
@Deprecated public Config()
Deprecated.useautoConfigure(String)
orConfigBuilder
instead
-
Config
@Deprecated public Config(String masterUrl, String apiVersion, String namespace, boolean trustCerts, boolean disableHostnameVerification, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, String oauthToken, int watchReconnectInterval, int watchReconnectLimit, int connectionTimeout, int requestTimeout, long rollingTimeout, long scaleTimeout, int loggingInterval, int maxConcurrentRequests, int maxConcurrentRequestsPerHost, String httpProxy, String httpsProxy, String[] noProxy, Map<Integer,String> errorMessages, String userAgent, okhttp3.TlsVersion[] tlsVersions, long websocketTimeout, long websocketPingInterval, String proxyUsername, String proxyPassword, String trustStoreFile, String trustStorePassphrase, String keyStoreFile, String keyStorePassphrase, String impersonateUsername, String[] impersonateGroups, Map<String,List<String>> impersonateExtras)
Deprecated.
-
Config
public Config(String masterUrl, String apiVersion, String namespace, boolean trustCerts, boolean disableHostnameVerification, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, String oauthToken, int watchReconnectInterval, int watchReconnectLimit, int connectionTimeout, int requestTimeout, long rollingTimeout, long scaleTimeout, int loggingInterval, int maxConcurrentRequests, int maxConcurrentRequestsPerHost, boolean http2Disable, String httpProxy, String httpsProxy, String[] noProxy, Map<Integer,String> errorMessages, String userAgent, okhttp3.TlsVersion[] tlsVersions, long websocketTimeout, long websocketPingInterval, String proxyUsername, String proxyPassword, String trustStoreFile, String trustStorePassphrase, String keyStoreFile, String keyStorePassphrase, String impersonateUsername, String[] impersonateGroups, Map<String,List<String>> impersonateExtras, OAuthTokenProvider oauthTokenProvider, Map<String,String> customHeaders)
-
-
Method Detail
-
empty
public static Config empty()
Create an emptyConfig
class without any automatic configuration (i.e. reading system properties/environment variables to load defaults.) You can also reuse this object to build your ownConfig
object without any auto configuration like this:Config configFromBuilder = new ConfigBuilder(Config.empty()) // ... .build();
- Returns:
- a Config object without any automatic configuration
-
autoConfigure
public static Config autoConfigure(String context)
Does auto detection with some opinionated defaults.- Parameters:
context
- if null will use current-context- Returns:
- Config object
-
configFromSysPropsOrEnvVars
public static void configFromSysPropsOrEnvVars(Config config)
-
fromKubeconfig
public static Config fromKubeconfig(String kubeconfigContents) throws IOException
- Throws:
IOException
-
fromKubeconfig
public static Config fromKubeconfig(String context, String kubeconfigContents, String kubeconfigPath)
-
getKubeconfigFilename
public static String getKubeconfigFilename()
-
getExecCredentialFromExecConfig
protected static io.fabric8.kubernetes.client.Config.ExecCredential getExecCredentialFromExecConfig(io.fabric8.kubernetes.api.model.ExecConfig exec, File configFile) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
getAuthenticatorCommandFromExecConfig
protected static List<String> getAuthenticatorCommandFromExecConfig(io.fabric8.kubernetes.api.model.ExecConfig exec, File configFile, String systemPathValue)
-
getCommandWithFullyQualifiedPath
protected static String getCommandWithFullyQualifiedPath(String command, String pathValue)
-
getKeyAlgorithm
public static String getKeyAlgorithm(InputStream inputStream) throws IOException
- Throws:
IOException
-
getOauthToken
public String getOauthToken()
-
setOauthToken
public void setOauthToken(String oauthToken)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getImpersonateUsername
public String getImpersonateUsername()
-
setImpersonateUsername
public void setImpersonateUsername(String impersonateUsername)
-
getImpersonateGroups
public String[] getImpersonateGroups()
-
setImpersonateGroups
public void setImpersonateGroups(String... impersonateGroup)
-
getImpersonateGroup
@Deprecated public String getImpersonateGroup()
Deprecated.UsegetImpersonateGroups()
instead- Returns:
- returns string of impersonate group
-
setImpersonateGroup
@Deprecated public void setImpersonateGroup(String impersonateGroup)
Deprecated.UsesetImpersonateGroups(String...)
instead- Parameters:
impersonateGroup
- ImpersonateGroup string
-
getClientKeyPassphrase
public String getClientKeyPassphrase()
-
setClientKeyPassphrase
public void setClientKeyPassphrase(String clientKeyPassphrase)
-
getClientKeyAlgo
public String getClientKeyAlgo()
-
setClientKeyAlgo
public void setClientKeyAlgo(String clientKeyAlgo)
-
getClientKeyData
public String getClientKeyData()
-
setClientKeyData
public void setClientKeyData(String clientKeyData)
-
getClientKeyFile
public String getClientKeyFile()
-
setClientKeyFile
public void setClientKeyFile(String clientKeyFile)
-
getClientCertData
public String getClientCertData()
-
setClientCertData
public void setClientCertData(String clientCertData)
-
getClientCertFile
public String getClientCertFile()
-
setClientCertFile
public void setClientCertFile(String clientCertFile)
-
getCaCertData
public String getCaCertData()
-
setCaCertData
public void setCaCertData(String caCertData)
-
getCaCertFile
public String getCaCertFile()
-
setCaCertFile
public void setCaCertFile(String caCertFile)
-
getApiVersion
public String getApiVersion()
-
setApiVersion
public void setApiVersion(String apiVersion)
-
getMasterUrl
public String getMasterUrl()
-
setMasterUrl
public void setMasterUrl(String masterUrl)
-
isTrustCerts
public boolean isTrustCerts()
-
setTrustCerts
public void setTrustCerts(boolean trustCerts)
-
isDisableHostnameVerification
public boolean isDisableHostnameVerification()
-
setDisableHostnameVerification
public void setDisableHostnameVerification(boolean disableHostnameVerification)
-
getWatchReconnectInterval
public int getWatchReconnectInterval()
-
setWatchReconnectInterval
public void setWatchReconnectInterval(int watchReconnectInterval)
-
getWatchReconnectLimit
public int getWatchReconnectLimit()
-
setWatchReconnectLimit
public void setWatchReconnectLimit(int watchReconnectLimit)
-
builder
public static io.fabric8.kubernetes.api.model.ConfigBuilder builder()
-
getConnectionTimeout
public int getConnectionTimeout()
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
-
getRequestTimeout
public int getRequestTimeout()
-
setRequestTimeout
public void setRequestTimeout(int requestTimeout)
-
getRollingTimeout
public long getRollingTimeout()
-
setRollingTimeout
public void setRollingTimeout(long rollingTimeout)
-
getScaleTimeout
public long getScaleTimeout()
-
setScaleTimeout
public void setScaleTimeout(long scaleTimeout)
-
getLoggingInterval
public int getLoggingInterval()
-
setLoggingInterval
public void setLoggingInterval(int loggingInterval)
-
isHttp2Disable
public boolean isHttp2Disable()
-
setHttp2Disable
public void setHttp2Disable(boolean http2Disable)
-
setHttpProxy
public void setHttpProxy(String httpProxy)
-
getHttpProxy
public String getHttpProxy()
-
setHttpsProxy
public void setHttpsProxy(String httpsProxy)
-
getHttpsProxy
public String getHttpsProxy()
-
setNoProxy
public void setNoProxy(String[] noProxy)
-
getNoProxy
public String[] getNoProxy()
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
-
getUserAgent
public String getUserAgent()
-
setUserAgent
public void setUserAgent(String userAgent)
-
getTlsVersions
public okhttp3.TlsVersion[] getTlsVersions()
-
setTlsVersions
public void setTlsVersions(okhttp3.TlsVersion[] tlsVersions)
-
getWebsocketTimeout
public long getWebsocketTimeout()
-
setWebsocketTimeout
public void setWebsocketTimeout(long websocketTimeout)
-
getWebsocketPingInterval
public long getWebsocketPingInterval()
-
setWebsocketPingInterval
public void setWebsocketPingInterval(long websocketPingInterval)
-
getMaxConcurrentRequests
public int getMaxConcurrentRequests()
-
setMaxConcurrentRequests
public void setMaxConcurrentRequests(int maxConcurrentRequests)
-
getMaxConcurrentRequestsPerHost
public int getMaxConcurrentRequestsPerHost()
-
setMaxConcurrentRequestsPerHost
public void setMaxConcurrentRequestsPerHost(int maxConcurrentRequestsPerHost)
-
getProxyUsername
public String getProxyUsername()
-
setProxyUsername
public void setProxyUsername(String proxyUsername)
-
getProxyPassword
public String getProxyPassword()
-
setProxyPassword
public void setProxyPassword(String proxyPassword)
-
getRequestConfig
public RequestConfig getRequestConfig()
-
setTrustStorePassphrase
public void setTrustStorePassphrase(String trustStorePassphrase)
-
getTrustStorePassphrase
public String getTrustStorePassphrase()
-
setKeyStorePassphrase
public void setKeyStorePassphrase(String keyStorePassphrase)
-
getKeyStorePassphrase
public String getKeyStorePassphrase()
-
setTrustStoreFile
public void setTrustStoreFile(String trustStoreFile)
-
getTrustStoreFile
public String getTrustStoreFile()
-
setKeyStoreFile
public void setKeyStoreFile(String keyStoreFile)
-
getKeyStoreFile
public String getKeyStoreFile()
-
getOauthTokenProvider
public OAuthTokenProvider getOauthTokenProvider()
-
setOauthTokenProvider
public void setOauthTokenProvider(OAuthTokenProvider oauthTokenProvider)
-
getAutoConfigure
public Boolean getAutoConfigure()
-
getContexts
public List<io.fabric8.kubernetes.api.model.NamedContext> getContexts()
Returns all theNamedContext
s that exist in the kube config- Returns:
- all the contexts
- See Also:
NamedContext
-
setContexts
public void setContexts(List<io.fabric8.kubernetes.api.model.NamedContext> contexts)
-
getCurrentContext
public io.fabric8.kubernetes.api.model.NamedContext getCurrentContext()
Returns the current context that's defined in the kube config. Returnsnull
if there's none- Returns:
- the current context
- See Also:
NamedContext
-
setCurrentContext
public void setCurrentContext(io.fabric8.kubernetes.api.model.NamedContext context)
-
getFile
public File getFile()
Returns the path to the file that this configuration was loaded from. Returnsnull
if no file was used.- Returns:
- the path to the kubeConfig file
-
-