public KubeApiProxySettings getProxySettings()

in teamcity-kubernetes-plugin-server/src/main/java/jetbrains/buildServer/clouds/kubernetes/RequestKubeApiConnection.java [57:77]


  public KubeApiProxySettings getProxySettings() {
    final String proxyHost = myProps.get(PROXY_SERVER);
    if (StringUtil.isEmpty(proxyHost)) {
      return null;
    }

    final String[] nonProxyHosts;
    final String nonProxyHostsValue = myProps.get(NON_PROXY_HOSTS);
    if (StringUtil.isEmpty(nonProxyHostsValue)) {
      nonProxyHosts = new String[0];
    } else {
      nonProxyHosts = nonProxyHostsValue.split(",");
    }

    return new KubeApiProxySettingsImpl(
      proxyHost,
      myProps.get(PROXY_LOGIN),
      myProps.get(SECURE_PROPERTY_PREFIX + PROXY_PASSWORD),
      nonProxyHosts
    );
  }