Skip to content

Commit

Permalink
Update the replication rule related to the Chartmuseum
Browse files Browse the repository at this point in the history
Update replication_policy as Harbor v2.8.0 deprecates chartmuseum.
Harbor deprecates chartmuseum as of v2.8.0
Epic: goharbor#17958
Discussion: goharbor#15057

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
  • Loading branch information
Yang Jiao committed Feb 23, 2023
1 parent a79c0ad commit 451d58d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make/migrations/postgresql/0110_2.8.0_schema.up.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/* remove the redundant data from table artifact_blob */
delete from artifact_blob afb where not exists (select digest from blob b where b.digest = afb.digest_af);
delete from artifact_blob afb where not exists (select digest from blob b where b.digest = afb.digest_af);
/* Update the replication_policy whose source resource filter is chart(chartmuseum) to Deactivated */
UPDATE replication_policy SET enabled = 'f', description = 'Chartmuseum is deprecated in Harbor v2.8.0, because the Source resource filter of this rule is chart(chartmuseum), so please update this rule.', filters = NULL WHERE filters LIKE '%chart%';

0 comments on commit 451d58d

Please sign in to comment.