Class ClusterConfig

    • Constructor Detail

      • ClusterConfig

        @DataBoundConstructor
        public ClusterConfig​(String name)
    • Method Detail

      • getName

        public String getName()
      • getServerUrl

        public String getServerUrl()
      • setServerUrl

        @DataBoundSetter
        public void setServerUrl​(String serverUrl)
      • getServerCertificateAuthority

        public String getServerCertificateAuthority()
      • setServerCertificateAuthority

        @DataBoundSetter
        public void setServerCertificateAuthority​(String serverCertificateAuthority)
      • isSkipTlsVerify

        public boolean isSkipTlsVerify()
      • setSkipTlsVerify

        @DataBoundSetter
        public void setSkipTlsVerify​(boolean skipTLSVerify)
      • getDefaultProject

        public String getDefaultProject()
      • setDefaultProject

        @DataBoundSetter
        public void setDefaultProject​(String defaultProject)
      • getCredentialsId

        public String getCredentialsId()
      • setCredentialsId

        @DataBoundSetter
        public void setCredentialsId​(String credentialsId)
      • getHostClusterApiServerUrl

        public static String getHostClusterApiServerUrl()
        Returns:
        Returns a URL to contact the API server of the OpenShift cluster running this node or throws an Exception if it cannot be determined.
      • getHostClusterApiServerUrl

        public static String getHostClusterApiServerUrl​(String defaultHost,
                                                        String defaultPort)
        Takes in defaults, with assumption that the 'env' pipeline global var is better populated as pipelines evolve
        Parameters:
        defaultHost - the default host
        defaultPort - the default port
        Returns:
        Returns a URL to contact the API server of the OpenShift cluster running this node or throws an Exception if it cannot be determined.
      • doFillCredentialsIdItems

        public static ListBoxModel doFillCredentialsIdItems​(String credentialsId)