diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-03-26 15:34:27 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-03-26 15:44:02 +0100 |
commit | f7653ac0beac7b658fe642ef683f8f3f7b4d5f20 (patch) | |
tree | 0c9d7554fd6345f3b308ecb7b58f038d09ff978d /configserver | |
parent | cfc7927446dcea526fbdce38b8578c14671e1d6c (diff) |
Decouple orchestrator resources into separate rest-api definitions
Diffstat (limited to 'configserver')
-rw-r--r-- | configserver/src/main/resources/configserver-app/services.xml | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/configserver/src/main/resources/configserver-app/services.xml b/configserver/src/main/resources/configserver-app/services.xml index 51fc26bdbaa..dca70987bdd 100644 --- a/configserver/src/main/resources/configserver-app/services.xml +++ b/configserver/src/main/resources/configserver-app/services.xml @@ -63,8 +63,30 @@ <component id="com.yahoo.vespa.orchestrator.controller.RetryingClusterControllerClientFactory" bundle="orchestrator" /> <component id="com.yahoo.vespa.orchestrator.OrchestratorImpl" bundle="orchestrator" /> - <rest-api path="orchestrator" jersey2="true"> - <components bundle="orchestrator" /> + <rest-api path="orchestrator/v1/suspensions/applications" jersey2="true"> + <components bundle="orchestrator"> + <package>com.yahoo.vespa.orchestrator.resources.appsuspension</package> + </components> + </rest-api> + <rest-api path="orchestrator/v1/health" jersey2="true"> + <components bundle="orchestrator"> + <package>com.yahoo.vespa.orchestrator.resources.health</package> + </components> + </rest-api> + <rest-api path="orchestrator/v1/hosts" jersey2="true"> + <components bundle="orchestrator"> + <package>com.yahoo.vespa.orchestrator.resources.host</package> + </components> + </rest-api> + <rest-api path="orchestrator/v1/suspensions/hosts" jersey2="true"> + <components bundle="orchestrator"> + <package>com.yahoo.vespa.orchestrator.resources.hostsuspension</package> + </components> + </rest-api> + <rest-api path="orchestrator/v1/instances" jersey2="true"> + <components bundle="orchestrator"> + <package>com.yahoo.vespa.orchestrator.resources.instance</package> + </components> </rest-api> <handler id="com.yahoo.vespa.serviceview.StateRequestHandler" bundle="configserver"> |