Package io.fabric8.kubernetes.client
Class Config
- java.lang.Object
-
- io.fabric8.kubernetes.client.Config
-
public class Config extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Config.ExecCredential
static class
Config.ExecCredentialSpec
static class
Config.ExecCredentialStatus
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
Config(boolean autoConfigure)
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, String autoOAuthToken, Integer watchReconnectInterval, Integer watchReconnectLimit, Integer connectionTimeout, Integer requestTimeout, Long scaleTimeout, Integer loggingInterval, Integer maxConcurrentRequests, Integer maxConcurrentRequestsPerHost, Boolean http2Disable, String httpProxy, String httpsProxy, String[] noProxy, String userAgent, TlsVersion[] tlsVersions, 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, Integer requestRetryBackoffLimit, Integer requestRetryBackoffInterval, Integer uploadRequestTimeout, Boolean onlyHttpWatches, io.fabric8.kubernetes.api.model.NamedContext currentContext, List<io.fabric8.kubernetes.api.model.NamedContext> contexts, Boolean autoConfigure)
-
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)
protected static boolean
disableAutoConfig()
static Config
empty()
Create an emptyConfig
class without any automatic configuration (i.e. reading system properties/environment variables to set values).static Config
fromKubeconfig(File kubeconfigFile)
static Config
fromKubeconfig(String kubeconfigContents)
static Config
fromKubeconfig(String context, File kubeconfig)
static Config
fromKubeconfig(String context, String kubeconfigContents, String kubeconfigPath)
Deprecated, for removal: This API element is subject to removal in a future version.usefromKubeconfig(File)
insteadMap<String,Object>
getAdditionalProperties()
String
getApiVersion()
io.fabric8.kubernetes.api.model.AuthProviderConfig
getAuthProvider()
Boolean
getAutoConfigure()
String
getAutoOAuthToken()
String
getCaCertData()
String
getCaCertFile()
String
getClientCertData()
String
getClientCertFile()
String
getClientKeyAlgo()
String
getClientKeyData()
String
getClientKeyFile()
String
getClientKeyPassphrase()
Integer
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()
File
getFile()
Returns the path to the file that contains the context from which this configuration was loaded from.File
getFileWithAuthInfo()
Returns the path to the file that contains the user information from which this configuration was loaded from.File
getFileWithCluster()
Returns the path to the file that contains the cluster information from which this configuration was loaded from.protected static String
getHomeDir(Predicate<String> directoryExists, UnaryOperator<String> getEnvVar)
String
getHttpProxy()
String
getHttpsProxy()
Map<String,List<String>>
getImpersonateExtras()
String[]
getImpersonateGroups()
String
getImpersonateUsername()
static String
getKeyAlgorithm(InputStream inputStream)
static String
getKeyAlgorithm(String clientKeyFile, String clientKeyData)
String
getKeyStoreFile()
String
getKeyStorePassphrase()
static Collection<String>
getKubeconfigFilenames()
Integer
getLoggingInterval()
String
getMasterUrl()
Integer
getMaxConcurrentRequests()
Integer
getMaxConcurrentRequestsPerHost()
String
getNamespace()
String[]
getNoProxy()
String
getOauthToken()
OAuthTokenProvider
getOauthTokenProvider()
String
getPassword()
String
getProxyPassword()
String
getProxyUsername()
Readiness
getReadiness()
RequestConfig
getRequestConfig()
Integer
getRequestRetryBackoffInterval()
Integer
getRequestRetryBackoffLimit()
Integer
getRequestTimeout()
Long
getScaleTimeout()
TlsVersion[]
getTlsVersions()
String
getTrustStoreFile()
String
getTrustStorePassphrase()
Integer
getUploadRequestTimeout()
String
getUserAgent()
String
getUsername()
Integer
getWatchReconnectInterval()
Integer
getWatchReconnectLimit()
Long
getWebsocketPingInterval()
boolean
isDefaultNamespace()
boolean
isDisableHostnameVerification()
boolean
isHttp2Disable()
boolean
isOnlyHttpWatches()
boolean
isTrustCerts()
Config
refresh()
Refresh the config from file / env sources.void
setAdditionalProperty(String name, Object value)
void
setApiVersion(String apiVersion)
void
setAuthProvider(io.fabric8.kubernetes.api.model.AuthProviderConfig authProvider)
void
setAutoOAuthToken(String autoOAuthToken)
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(Integer 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
setDefaultNamespace(boolean defaultNamespace)
void
setDisableHostnameVerification(boolean disableHostnameVerification)
void
setHttp2Disable(Boolean http2Disable)
void
setHttpProxy(String httpProxy)
void
setHttpsProxy(String httpsProxy)
void
setImpersonateExtras(Map<String,List<String>> impersonateExtras)
void
setImpersonateGroups(String... impersonateGroup)
void
setImpersonateUsername(String impersonateUsername)
void
setKeyStoreFile(String keyStoreFile)
void
setKeyStorePassphrase(String keyStorePassphrase)
void
setLoggingInterval(Integer loggingInterval)
void
setMasterUrl(String masterUrl)
void
setMaxConcurrentRequests(Integer maxConcurrentRequests)
void
setMaxConcurrentRequestsPerHost(Integer maxConcurrentRequestsPerHost)
void
setNamespace(String namespace)
void
setNoProxy(String[] noProxy)
void
setOauthToken(String oauthToken)
void
setOauthTokenProvider(OAuthTokenProvider oauthTokenProvider)
void
setOnlyHttpWatches(boolean onlyHttpWatches)
void
setPassword(String password)
void
setProxyPassword(String proxyPassword)
void
setProxyUsername(String proxyUsername)
void
setRequestRetryBackoffInterval(Integer requestRetryBackoffInterval)
void
setRequestRetryBackoffLimit(Integer requestRetryBackoffLimit)
void
setRequestTimeout(Integer requestTimeout)
void
setScaleTimeout(Long scaleTimeout)
void
setTlsVersions(TlsVersion[] tlsVersions)
void
setTrustCerts(boolean trustCerts)
void
setTrustStoreFile(String trustStoreFile)
void
setTrustStorePassphrase(String trustStorePassphrase)
void
setUploadRequestTimeout(Integer requestTimeout)
void
setUserAgent(String userAgent)
void
setUsername(String username)
void
setWatchReconnectInterval(Integer watchReconnectInterval)
void
setWatchReconnectLimit(Integer watchReconnectLimit)
void
setWebsocketPingInterval(Long websocketPingInterval)
-
-
-
Field Detail
-
KUBERNETES_DISABLE_AUTO_CONFIG_SYSTEM_PROPERTY
public static final String KUBERNETES_DISABLE_AUTO_CONFIG_SYSTEM_PROPERTY
Disables autoconfiguration based on opinionated defaults in aConfig
object in the all arguments 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_AUTH_SERVICEACCOUNT_TOKEN_FILE_SYSTEM_PROPERTY
public static final String KUBERNETES_AUTH_SERVICEACCOUNT_TOKEN_FILE_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_UPLOAD_REQUEST_TIMEOUT_SYSTEM_PROPERTY
public static final String KUBERNETES_UPLOAD_REQUEST_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_REQUEST_RETRY_BACKOFFLIMIT_SYSTEM_PROPERTY
public static final String KUBERNETES_REQUEST_RETRY_BACKOFFLIMIT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
KUBERNETES_REQUEST_RETRY_BACKOFFINTERVAL_SYSTEM_PROPERTY
public static final String KUBERNETES_REQUEST_RETRY_BACKOFFINTERVAL_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_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
- See Also:
- Constant Field Values
-
DEFAULT_MASTER_URL
public static final String DEFAULT_MASTER_URL
- See Also:
- Constant Field Values
-
DEFAULT_SCALE_TIMEOUT
public static final Long DEFAULT_SCALE_TIMEOUT
-
DEFAULT_REQUEST_TIMEOUT
public static final int DEFAULT_REQUEST_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_LOGGING_INTERVAL
public static final int DEFAULT_LOGGING_INTERVAL
- See Also:
- Constant Field Values
-
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
-
DEFAULT_REQUEST_RETRY_BACKOFFLIMIT
public static final Integer DEFAULT_REQUEST_RETRY_BACKOFFLIMIT
-
DEFAULT_REQUEST_RETRY_BACKOFFINTERVAL
public static final Integer DEFAULT_REQUEST_RETRY_BACKOFFINTERVAL
-
DEFAULT_UPLOAD_REQUEST_TIMEOUT
public static final int DEFAULT_UPLOAD_REQUEST_TIMEOUT
- See Also:
- Constant Field Values
-
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
-
SOCKS5_PROTOCOL_PREFIX
public static final String SOCKS5_PROTOCOL_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Config
protected Config(boolean autoConfigure)
-
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, String autoOAuthToken, Integer watchReconnectInterval, Integer watchReconnectLimit, Integer connectionTimeout, Integer requestTimeout, Long scaleTimeout, Integer loggingInterval, Integer maxConcurrentRequests, Integer maxConcurrentRequestsPerHost, Boolean http2Disable, String httpProxy, String httpsProxy, String[] noProxy, String userAgent, TlsVersion[] tlsVersions, 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, Integer requestRetryBackoffLimit, Integer requestRetryBackoffInterval, Integer uploadRequestTimeout, Boolean onlyHttpWatches, io.fabric8.kubernetes.api.model.NamedContext currentContext, List<io.fabric8.kubernetes.api.model.NamedContext> contexts, Boolean autoConfigure)
-
-
Method Detail
-
disableAutoConfig
protected static boolean disableAutoConfig()
-
empty
public static Config empty()
Create an emptyConfig
class without any automatic configuration (i.e. reading system properties/environment variables to set values).The configuration does include the Kubernetes Client default values for timeouts, etc.
You can also reuse this object to build your own
Config
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
@Deprecated(since="7.0.0", forRemoval=true) public static Config fromKubeconfig(String context, String kubeconfigContents, String kubeconfigPath)
Deprecated, for removal: This API element is subject to removal in a future version.usefromKubeconfig(File)
instead
-
refresh
public Config refresh()
Refresh the config from file / env sources. Any values that the user have programmatically set will be lost.- Returns:
- this Config instance with the refreshed values (if applicable)
-
getKubeconfigFilenames
public static Collection<String> getKubeconfigFilenames()
-
getHomeDir
protected static String getHomeDir(Predicate<String> directoryExists, UnaryOperator<String> getEnvVar)
-
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)
-
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 Integer getWatchReconnectInterval()
-
setWatchReconnectInterval
public void setWatchReconnectInterval(Integer watchReconnectInterval)
-
getWatchReconnectLimit
public Integer getWatchReconnectLimit()
-
setWatchReconnectLimit
public void setWatchReconnectLimit(Integer watchReconnectLimit)
-
builder
public static io.fabric8.kubernetes.api.model.ConfigBuilder builder()
-
getConnectionTimeout
public Integer getConnectionTimeout()
-
setConnectionTimeout
public void setConnectionTimeout(Integer connectionTimeout)
-
getUploadRequestTimeout
public Integer getUploadRequestTimeout()
-
setUploadRequestTimeout
public void setUploadRequestTimeout(Integer requestTimeout)
-
getRequestTimeout
public Integer getRequestTimeout()
-
setRequestTimeout
public void setRequestTimeout(Integer requestTimeout)
-
getRequestRetryBackoffLimit
public Integer getRequestRetryBackoffLimit()
-
setRequestRetryBackoffLimit
public void setRequestRetryBackoffLimit(Integer requestRetryBackoffLimit)
-
getRequestRetryBackoffInterval
public Integer getRequestRetryBackoffInterval()
-
setRequestRetryBackoffInterval
public void setRequestRetryBackoffInterval(Integer requestRetryBackoffInterval)
-
getScaleTimeout
public Long getScaleTimeout()
-
setScaleTimeout
public void setScaleTimeout(Long scaleTimeout)
-
getLoggingInterval
public Integer getLoggingInterval()
-
setLoggingInterval
public void setLoggingInterval(Integer 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)
-
isDefaultNamespace
public boolean isDefaultNamespace()
-
setDefaultNamespace
public void setDefaultNamespace(boolean defaultNamespace)
-
getUserAgent
public String getUserAgent()
-
setUserAgent
public void setUserAgent(String userAgent)
-
getTlsVersions
public TlsVersion[] getTlsVersions()
-
setTlsVersions
public void setTlsVersions(TlsVersion[] tlsVersions)
-
getWebsocketPingInterval
public Long getWebsocketPingInterval()
-
setWebsocketPingInterval
public void setWebsocketPingInterval(Long websocketPingInterval)
-
getMaxConcurrentRequests
public Integer getMaxConcurrentRequests()
-
setMaxConcurrentRequests
public void setMaxConcurrentRequests(Integer maxConcurrentRequests)
-
getMaxConcurrentRequestsPerHost
public Integer getMaxConcurrentRequestsPerHost()
-
setMaxConcurrentRequestsPerHost
public void setMaxConcurrentRequestsPerHost(Integer 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 contains the context from which this configuration was loaded from.Returns
null
if no file was used.- Returns:
- the path to the kubeconfig file.
-
getFileWithCluster
public File getFileWithCluster()
Returns the path to the file that contains the cluster information from which this configuration was loaded from.Returns
null
if no file was used.- Returns:
- the path to the kubeconfig file.
-
getFileWithAuthInfo
public File getFileWithAuthInfo()
Returns the path to the file that contains the user information from which this configuration was loaded from.Returns
null
if no file was used.- Returns:
- the path to the kubeconfig file.
-
getReadiness
public Readiness getReadiness()
-
setAuthProvider
public void setAuthProvider(io.fabric8.kubernetes.api.model.AuthProviderConfig authProvider)
-
getAuthProvider
public io.fabric8.kubernetes.api.model.AuthProviderConfig getAuthProvider()
-
getAutoOAuthToken
public String getAutoOAuthToken()
-
setAutoOAuthToken
public void setAutoOAuthToken(String autoOAuthToken)
-
isOnlyHttpWatches
public boolean isOnlyHttpWatches()
-
setOnlyHttpWatches
public void setOnlyHttpWatches(boolean onlyHttpWatches)
-
-