Package io.fabric8.openshift.client
Class OpenShiftConfig
- java.lang.Object
-
- io.fabric8.kubernetes.client.Config
-
- io.fabric8.openshift.client.OpenShiftConfig
-
public class OpenShiftConfig extends Config
-
-
Field Summary
Fields Modifier and Type Field Description static LongDEFAULT_BUILD_TIMEOUTstatic StringKUBERNETES_OAPI_VERSION_SYSTEM_PROPERTYstatic StringOPENSHIFT_BUILD_TIMEOUT_SYSTEM_PROPERTYstatic StringOPENSHIFT_URL_SYSTEM_PROPERTY-
Fields inherited from class io.fabric8.kubernetes.client.Config
DEFAULT_LOGGING_INTERVAL, DEFAULT_MASTER_URL, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_MAX_CONCURRENT_REQUESTS_PER_HOST, DEFAULT_ROLLING_TIMEOUT, DEFAULT_SCALE_TIMEOUT, DEFAULT_WEBSOCKET_PING_INTERVAL, DEFAULT_WEBSOCKET_TIMEOUT, HTTP_PROTOCOL_PREFIX, HTTPS_PROTOCOL_PREFIX, KUBERNETES_ALL_PROXY, KUBERNETES_API_VERSION_SYSTEM_PROPERTY, KUBERNETES_AUTH_BASIC_PASSWORD_SYSTEM_PROPERTY, KUBERNETES_AUTH_BASIC_USERNAME_SYSTEM_PROPERTY, KUBERNETES_AUTH_TRYKUBECONFIG_SYSTEM_PROPERTY, KUBERNETES_AUTH_TRYSERVICEACCOUNT_SYSTEM_PROPERTY, KUBERNETES_CA_CERTIFICATE_DATA_SYSTEM_PROPERTY, KUBERNETES_CA_CERTIFICATE_FILE_SYSTEM_PROPERTY, KUBERNETES_CLIENT_CERTIFICATE_DATA_SYSTEM_PROPERTY, KUBERNETES_CLIENT_CERTIFICATE_FILE_SYSTEM_PROPERTY, KUBERNETES_CLIENT_KEY_ALGO_SYSTEM_PROPERTY, KUBERNETES_CLIENT_KEY_DATA_SYSTEM_PROPERTY, KUBERNETES_CLIENT_KEY_FILE_SYSTEM_PROPERTY, KUBERNETES_CLIENT_KEY_PASSPHRASE_SYSTEM_PROPERTY, KUBERNETES_CONNECTION_TIMEOUT_SYSTEM_PROPERTY, KUBERNETES_DISABLE_AUTO_CONFIG_SYSTEM_PROPERTY, KUBERNETES_DISABLE_HOSTNAME_VERIFICATION_SYSTEM_PROPERTY, KUBERNETES_HTTP_PROXY, KUBERNETES_HTTP2_DISABLE, KUBERNETES_HTTPS_PROXY, KUBERNETES_IMPERSONATE_GROUP, KUBERNETES_IMPERSONATE_USERNAME, KUBERNETES_KEYSTORE_FILE_PROPERTY, KUBERNETES_KEYSTORE_PASSPHRASE_PROPERTY, KUBERNETES_KUBECONFIG_FILE, KUBERNETES_LOGGING_INTERVAL_SYSTEM_PROPERTY, KUBERNETES_MASTER_SYSTEM_PROPERTY, KUBERNETES_MAX_CONCURRENT_REQUESTS, KUBERNETES_MAX_CONCURRENT_REQUESTS_PER_HOST, KUBERNETES_NAMESPACE_FILE, KUBERNETES_NAMESPACE_PATH, KUBERNETES_NAMESPACE_SYSTEM_PROPERTY, KUBERNETES_NO_PROXY, KUBERNETES_OAUTH_TOKEN_SYSTEM_PROPERTY, KUBERNETES_PROXY_PASSWORD, KUBERNETES_PROXY_USERNAME, KUBERNETES_REQUEST_TIMEOUT_SYSTEM_PROPERTY, KUBERNETES_ROLLING_TIMEOUT_SYSTEM_PROPERTY, KUBERNETES_SCALE_TIMEOUT_SYSTEM_PROPERTY, KUBERNETES_SERVICE_ACCOUNT_CA_CRT_PATH, KUBERNETES_SERVICE_ACCOUNT_TOKEN_PATH, KUBERNETES_SERVICE_HOST_PROPERTY, KUBERNETES_SERVICE_PORT_PROPERTY, KUBERNETES_TLS_VERSIONS, KUBERNETES_TRUST_CERT_SYSTEM_PROPERTY, KUBERNETES_TRUSTSTORE_FILE_PROPERTY, KUBERNETES_TRUSTSTORE_PASSPHRASE_PROPERTY, KUBERNETES_TRYNAMESPACE_PATH_SYSTEM_PROPERTY, KUBERNETES_USER_AGENT, KUBERNETES_WATCH_RECONNECT_INTERVAL_SYSTEM_PROPERTY, KUBERNETES_WATCH_RECONNECT_LIMIT_SYSTEM_PROPERTY, KUBERNETES_WEBSOCKET_PING_INTERVAL_SYSTEM_PROPERTY, KUBERNETES_WEBSOCKET_TIMEOUT_SYSTEM_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description OpenShiftConfig(Config kubernetesConfig)OpenShiftConfig(Config kubernetesConfig, String openShiftUrl)OpenShiftConfig(Config kubernetesConfig, String openShiftUrl, String oapiVersion, long buildTimeout)OpenShiftConfig(String openShiftUrl, String oapiVersion, 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, Integer maxConcurrentRequests, Integer maxConcurrentRequestsPerHost, String httpProxy, String httpsProxy, String[] noProxy, Map<Integer,String> errorMessages, String userAgent, okhttp3.TlsVersion[] tlsVersions, long buildTimeout, 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, boolean openshiftApiGroupsEnabled, boolean disableApiGroupCheck)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBuildTimeout()StringgetOapiVersion()StringgetOpenShiftUrl()booleanisDisableApiGroupCheck()booleanisOpenshiftApiGroupsEnabled()voidsetBuildTimeout(long buildTimeout)voidsetDisableApiGroupCheck(boolean disableApiGroupCheck)voidsetOapiVersion(String oapiVersion)voidsetOpenshiftApiGroupsEnabled(boolean openshiftApiGroupsEnabled)voidsetOpenShiftUrl(String openShiftUrl)OpenShiftConfigwithOpenshiftApiGroupsEnabled(boolean openshiftApiGroupsEnabled)static OpenShiftConfigwrap(Config config)-
Methods inherited from class io.fabric8.kubernetes.client.Config
autoConfigure, builder, configFromSysPropsOrEnvVars, empty, fromKubeconfig, fromKubeconfig, getApiVersion, getAuthenticatorCommandFromExecConfig, getAutoConfigure, getCaCertData, getCaCertFile, getClientCertData, getClientCertFile, getClientKeyAlgo, getClientKeyData, getClientKeyFile, getClientKeyPassphrase, getCommandWithFullyQualifiedPath, getConnectionTimeout, getContexts, getCurrentContext, getCustomHeaders, getErrorMessages, getExecCredentialFromExecConfig, getFile, getHttpProxy, getHttpsProxy, getImpersonateExtras, getImpersonateGroup, getImpersonateGroups, getImpersonateUsername, getKeyAlgorithm, getKeyAlgorithm, getKeyStoreFile, getKeyStorePassphrase, getKubeconfigFilename, getLoggingInterval, getMasterUrl, getMaxConcurrentRequests, getMaxConcurrentRequestsPerHost, getNamespace, getNoProxy, getOauthToken, getOauthTokenProvider, getPassword, getProxyPassword, getProxyUsername, getRequestConfig, getRequestTimeout, getRollingTimeout, getScaleTimeout, getTlsVersions, getTrustStoreFile, getTrustStorePassphrase, getUserAgent, getUsername, getWatchReconnectInterval, getWatchReconnectLimit, getWebsocketPingInterval, getWebsocketTimeout, isDisableHostnameVerification, isHttp2Disable, isTrustCerts, setApiVersion, setCaCertData, setCaCertFile, setClientCertData, setClientCertFile, setClientKeyAlgo, setClientKeyData, setClientKeyFile, setClientKeyPassphrase, setConnectionTimeout, setContexts, setCurrentContext, setCustomHeaders, setDisableHostnameVerification, setErrorMessages, setHttp2Disable, setHttpProxy, setHttpsProxy, setImpersonateExtras, setImpersonateGroup, setImpersonateGroups, setImpersonateUsername, setKeyStoreFile, setKeyStorePassphrase, setLoggingInterval, setMasterUrl, setMaxConcurrentRequests, setMaxConcurrentRequestsPerHost, setNamespace, setNoProxy, setOauthToken, setOauthTokenProvider, setPassword, setProxyPassword, setProxyUsername, setRequestTimeout, setRollingTimeout, setScaleTimeout, setTlsVersions, setTrustCerts, setTrustStoreFile, setTrustStorePassphrase, setUserAgent, setUsername, setWatchReconnectInterval, setWatchReconnectLimit, setWebsocketPingInterval, setWebsocketTimeout
-
-
-
-
Field Detail
-
KUBERNETES_OAPI_VERSION_SYSTEM_PROPERTY
public static final String KUBERNETES_OAPI_VERSION_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
OPENSHIFT_URL_SYSTEM_PROPERTY
public static final String OPENSHIFT_URL_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
OPENSHIFT_BUILD_TIMEOUT_SYSTEM_PROPERTY
public static final String OPENSHIFT_BUILD_TIMEOUT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_BUILD_TIMEOUT
public static final Long DEFAULT_BUILD_TIMEOUT
-
-
Constructor Detail
-
OpenShiftConfig
public OpenShiftConfig(Config kubernetesConfig)
-
OpenShiftConfig
public OpenShiftConfig(String openShiftUrl, String oapiVersion, 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, Integer maxConcurrentRequests, Integer maxConcurrentRequestsPerHost, String httpProxy, String httpsProxy, String[] noProxy, Map<Integer,String> errorMessages, String userAgent, okhttp3.TlsVersion[] tlsVersions, long buildTimeout, 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, boolean openshiftApiGroupsEnabled, boolean disableApiGroupCheck)
-
-
Method Detail
-
wrap
public static OpenShiftConfig wrap(Config config)
-
withOpenshiftApiGroupsEnabled
public OpenShiftConfig withOpenshiftApiGroupsEnabled(boolean openshiftApiGroupsEnabled)
-
getOapiVersion
public String getOapiVersion()
-
setOapiVersion
public void setOapiVersion(String oapiVersion)
-
getOpenShiftUrl
public String getOpenShiftUrl()
-
setOpenShiftUrl
public void setOpenShiftUrl(String openShiftUrl)
-
getBuildTimeout
public long getBuildTimeout()
-
setBuildTimeout
public void setBuildTimeout(long buildTimeout)
-
isDisableApiGroupCheck
public boolean isDisableApiGroupCheck()
-
setDisableApiGroupCheck
public void setDisableApiGroupCheck(boolean disableApiGroupCheck)
-
isOpenshiftApiGroupsEnabled
public boolean isOpenshiftApiGroupsEnabled()
-
setOpenshiftApiGroupsEnabled
public void setOpenshiftApiGroupsEnabled(boolean openshiftApiGroupsEnabled)
-
-