Class SundrioConfig

  • Direct Known Subclasses:
    Config

    public class SundrioConfig
    extends Object
    To add a new config option:
    1. add a field in this class. Adding getters / setters is optional
    2. add logic in the Config constructor to copy the field. Optionally add auto configuration logic.
    3. no other changes are typically necessary
    This class is necessary to be able to cleanly deserialize the config. It is also used to autogenerate a builder for the Config class using Sundrio while providing specific behavior for the build() method. This way we can extend the default SundrioConfigBuilder, overriding the build method and enabling autoconfiguration only in this case. The builder is also capable of having a state of the Config with null values (no defaults or autoconfigured). The end purpose is for users to actually use the builder to override the default values or autoconfigured ones by providing their values through the builder withXxx accessors
    • Field Detail

      • trustCerts

        protected Boolean trustCerts
      • disableHostnameVerification

        protected Boolean disableHostnameVerification
      • masterUrl

        protected String masterUrl
      • apiVersion

        protected String apiVersion
      • namespace

        protected String namespace
      • defaultNamespace

        protected Boolean defaultNamespace
      • caCertFile

        protected String caCertFile
      • caCertData

        protected String caCertData
      • clientCertFile

        protected String clientCertFile
      • clientCertData

        protected String clientCertData
      • clientKeyFile

        protected String clientKeyFile
      • clientKeyData

        protected String clientKeyData
      • clientKeyAlgo

        protected String clientKeyAlgo
      • clientKeyPassphrase

        protected String clientKeyPassphrase
      • trustStoreFile

        protected String trustStoreFile
      • trustStorePassphrase

        protected String trustStorePassphrase
      • keyStoreFile

        protected String keyStoreFile
      • keyStorePassphrase

        protected String keyStorePassphrase
      • authProvider

        protected io.fabric8.kubernetes.api.model.AuthProviderConfig authProvider
      • username

        protected String username
      • password

        protected String password
      • oauthToken

        protected volatile String oauthToken
      • autoOAuthToken

        protected volatile String autoOAuthToken
      • websocketPingInterval

        protected Long websocketPingInterval
      • connectionTimeout

        protected Integer connectionTimeout
      • maxConcurrentRequests

        protected Integer maxConcurrentRequests
      • maxConcurrentRequestsPerHost

        protected Integer maxConcurrentRequestsPerHost
      • contexts

        protected List<io.fabric8.kubernetes.api.model.NamedContext> contexts
      • currentContext

        protected io.fabric8.kubernetes.api.model.NamedContext currentContext
      • watchReconnectInterval

        protected Integer watchReconnectInterval
      • watchReconnectLimit

        protected Integer watchReconnectLimit
      • uploadRequestTimeout

        protected Integer uploadRequestTimeout
      • requestRetryBackoffLimit

        protected Integer requestRetryBackoffLimit
      • requestRetryBackoffInterval

        protected Integer requestRetryBackoffInterval
      • requestTimeout

        protected Integer requestTimeout
      • scaleTimeout

        protected Long scaleTimeout
      • loggingInterval

        protected Integer loggingInterval
      • impersonateUsername

        protected String impersonateUsername
      • impersonateGroups

        protected String[] impersonateGroups
      • http2Disable

        protected Boolean http2Disable
      • httpProxy

        protected String httpProxy
      • httpsProxy

        protected String httpsProxy
      • proxyUsername

        protected String proxyUsername
      • proxyPassword

        protected String proxyPassword
      • noProxy

        protected String[] noProxy
      • userAgent

        protected String userAgent
      • onlyHttpWatches

        protected Boolean onlyHttpWatches
      • customHeaders

        protected Map<String,​String> customHeaders
        custom headers
      • autoConfigure

        protected Boolean autoConfigure
      • additionalProperties

        protected Map<String,​Object> additionalProperties
    • Constructor Detail

      • SundrioConfig

        public SundrioConfig()
    • Method Detail

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setImpersonateGroups

        public void setImpersonateGroups​(String... impersonateGroup)
      • getContexts

        public List<io.fabric8.kubernetes.api.model.NamedContext> getContexts()
        Returns all the NamedContexts that exist in the kube config
        Returns:
        all the contexts
        See Also:
        NamedContext
      • getCurrentContext

        public io.fabric8.kubernetes.api.model.NamedContext getCurrentContext()
        Returns the current context that's defined in the kube config. Returns null if there's none
        Returns:
        the current context
        See Also:
        NamedContext