From cc42412ec7ea8ce9d571bd04f2a9cfe6467e92ea Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Tue, 30 Mar 2021 13:20:28 +0100 Subject: [PATCH] filters clarity Great Terraform provider! This caught me out and thought it was a good idea to make it clear how to use the `filters` block --- docs/resources/replication.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/resources/replication.md b/docs/resources/replication.md index 1855da9..f438a5e 100644 --- a/docs/resources/replication.md +++ b/docs/resources/replication.md @@ -18,6 +18,22 @@ resource "harbor_replication" "push" { action = "push" registry_id = harbor_registry.main.registry_id } + +resource "harbor_replication" "alpine" { + name = "alpine" + action = "pull" + registry_id = harbor_registry.main.registry_id + schedule = "* 0/15 * * * *" + filters { + name = "library/alpine" + } + filters { + tag = "3.*.*" + } + filters { + resource = "image" + } +} ``` @@ -56,4 +72,4 @@ Harbor project can be imported using the `replication id` eg, ` terraform import harbor_project.main /registries/7 -` \ No newline at end of file +`