diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-09-07 14:46:36 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-09-07 14:46:36 +0200 |
commit | 23034dbe92cd29b2a71c88dc9b3bf00be6e05fd5 (patch) | |
tree | 991665425cf1ca9f03f4f88dcf25cdd06c60ddb2 /controller-server | |
parent | 9e26e2db2f4984638fcc978eb2adeb93b2c42995 (diff) |
Enable S3 archive bucket for CD
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/archive/CuratorArchiveBucketDb.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/archive/CuratorArchiveBucketDb.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/archive/CuratorArchiveBucketDb.java index 0f5c2123325..52c192cfeab 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/archive/CuratorArchiveBucketDb.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/archive/CuratorArchiveBucketDb.java @@ -1,6 +1,7 @@ // Copyright 2021 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.archive; +import com.yahoo.config.provision.SystemName; import com.yahoo.config.provision.TenantName; import com.yahoo.config.provision.zone.ZoneId; import com.yahoo.text.Text; @@ -45,7 +46,8 @@ public class CuratorArchiveBucketDb { public CuratorArchiveBucketDb(Controller controller) { this.archiveService = controller.serviceRegistry().archiveService(); this.curatorDb = controller.curator(); - this.enabled = controller.zoneRegistry().system().isPublic(); + SystemName system = controller.zoneRegistry().system(); + this.enabled = system.isPublic() || system.isCd(); } public Optional<URI> archiveUriFor(ZoneId zoneId, TenantName tenant) { |