Enable S3 archive bucket for CD
// 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) {
