summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-01-09 15:38:22 +0100
committerBjørn Christian Seime <bjorncs@oath.com>2018-01-09 15:38:22 +0100
commitbafe8545e805a93439d7b313a6bde72ebece18ab (patch)
tree34a5b0ec6e38c0ef18acd93995d658cb915ba715 /controller-server
parente8b197ceb9652cb85f3473675725e3c3d894c98f (diff)
Provide secure configserver uris from application v4 api
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Controller.java9
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java4
2 files changed, 3 insertions, 10 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Controller.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Controller.java
index 1f386b662aa..24b85ce55af 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Controller.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/Controller.java
@@ -160,14 +160,7 @@ public class Controller extends AbstractComponent {
return zoneRegistry.getLogServerUri(deploymentId);
}
- /**
- * @deprecated Use {@link #getSecureConfigServerUris(ZoneId)} instead
- */
- @Deprecated
- public List<URI> getConfigServerUris(ZoneId zoneId) {
- return zoneRegistry.getConfigServerUris(zoneId);
- }
-
+ // TODO Rename to getConfigServerUris once port 4080 is removed from configservers
public List<URI> getSecureConfigServerUris(ZoneId zoneId) {
return zoneRegistry.getConfigServerSecureUris(zoneId);
}
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
index 21230cb8e0d..9c61a010082 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
@@ -579,7 +579,7 @@ public class ApplicationApiHandler extends LoggingRequestHandler {
ApplicationView applicationView = controller.getApplicationView(tenantName, applicationName, instanceName, environment, region);
ServiceApiResponse response = new ServiceApiResponse(ZoneId.from(environment, region),
new ApplicationId.Builder().tenant(tenantName).applicationName(applicationName).instanceName(instanceName).build(),
- controller.getConfigServerUris(ZoneId.from(environment, region)),
+ controller.getSecureConfigServerUris(ZoneId.from(environment, region)),
request.getUri());
response.setResponse(applicationView);
return response;
@@ -589,7 +589,7 @@ public class ApplicationApiHandler extends LoggingRequestHandler {
Map<?,?> result = controller.getServiceApiResponse(tenantName, applicationName, instanceName, environment, region, serviceName, restPath);
ServiceApiResponse response = new ServiceApiResponse(ZoneId.from(environment, region),
new ApplicationId.Builder().tenant(tenantName).applicationName(applicationName).instanceName(instanceName).build(),
- controller.getConfigServerUris(ZoneId.from(environment, region)),
+ controller.getSecureConfigServerUris(ZoneId.from(environment, region)),
request.getUri());
response.setResponse(result, serviceName, restPath);
return response;