From b895a2d7cff2cc4216508c4b975712c3228fa6d9 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Thu, 11 Oct 2018 18:29:38 +0800 Subject: [PATCH] Revoke the change in replicator Revoke the change made to replicator to reset the insecure flag to true when accessing source registry. The reason is that the replicator will use external URL to access source registry, setting it to false will break replication when Harbor is hosting with self-signed certificate. Signed-off-by: Daniel Jiang --- src/replication/replicator/replicator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replication/replicator/replicator.go b/src/replication/replicator/replicator.go index 21e3203143..9e3fdeb347 100644 --- a/src/replication/replicator/replicator.go +++ b/src/replication/replicator/replicator.go @@ -98,7 +98,7 @@ func (d *DefaultReplicator) Replicate(replication *Replication) error { "repository": repository, "tags": tags, "src_registry_url": url, - "src_registry_insecure": false, + "src_registry_insecure": true, // "src_token_service_url":"", "dst_registry_url": target.URL, "dst_registry_insecure": target.Insecure,