Skip to content

Commit

Permalink
filters clarity
Browse files Browse the repository at this point in the history
Great Terraform provider! 
This caught me out and thought it was a good idea to make it clear how to use the `filters` block
  • Loading branch information
rhysjtevans authored Mar 30, 2021
1 parent b63e722 commit cc42412
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/resources/replication.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```

Expand Down Expand Up @@ -56,4 +72,4 @@ Harbor project can be imported using the `replication id` eg,

`
terraform import harbor_project.main /registries/7
`
`

0 comments on commit cc42412

Please sign in to comment.