diff options
author | Valerij Fredriksen <valerijf@yahooinc.com> | 2022-05-04 15:51:58 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@yahooinc.com> | 2022-05-05 14:55:53 +0200 |
commit | 53dd65df9d69b3e7ab30f9a990ba0fd815599dba (patch) | |
tree | b210ad3ab8a722c221413d26bc06de256041cebb /controller-api | |
parent | 9624701b8f3fa93779aa6fb352aacebb6dd138ac (diff) |
Support different artifact registry per cloud
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java index c258f088eeb..52f687e5708 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java @@ -1,6 +1,7 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.api.integration; +import com.yahoo.config.provision.CloudName; import com.yahoo.config.provision.HostName; import com.yahoo.vespa.hosted.controller.api.identifiers.ControllerVersion; import com.yahoo.vespa.hosted.controller.api.integration.archive.ArchiveService; @@ -36,6 +37,7 @@ import com.yahoo.vespa.hosted.controller.api.integration.vcmr.ChangeRequestClien import com.yahoo.vespa.hosted.controller.api.integration.zone.ZoneRegistry; import java.time.Clock; +import java.util.Optional; /** * This provides access to all service dependencies of the controller. Implementations of this are responsible for @@ -99,7 +101,7 @@ public interface ServiceRegistry { BillingDatabaseClient billingDatabase(); - ArtifactRegistry containerRegistry(); + Optional<? extends ArtifactRegistry> artifactRegistry(CloudName cloudName); TenantSecretService tenantSecretService(); |