|
@@ -14,15 +14,22 @@ import org.springframework.web.client.RestTemplate;
|
|
|
@Configuration
|
|
|
public class KubeSphereConfig {
|
|
|
public static String kubesphereUrl;
|
|
|
+ public static String host;
|
|
|
|
|
|
@Value("${kubesphereUrl}")
|
|
|
public void setKubesphereUrl(String kubesphereUrl) {
|
|
|
KubeSphereConfig.kubesphereUrl = kubesphereUrl;
|
|
|
}
|
|
|
|
|
|
+ @Value("${kubesphereUrl}")
|
|
|
+ public void setHost(String host) {
|
|
|
+ KubeSphereConfig.host = host;
|
|
|
+ }
|
|
|
+
|
|
|
public static class URL {
|
|
|
|
|
|
- private static final String host = "http://42.192.195.253:30881";
|
|
|
+
|
|
|
+ //private static final String host = "http://43.143.237.223:30881";
|
|
|
// s2i相关url
|
|
|
public static final String S2I_BUILDER_URL = host + "/apis/devops.kubesphere.io/v1alpha1/namespaces/mkcloud/s2ibuilders";
|
|
|
public static final String S2I_CREATE_BINARY_QUERY_URL = host + "/apis/devops.kubesphere.io/v1alpha1/namespaces/mkcloud/s2ibinaries";
|