Skip to content

harbor_replication documentation bug #424

Closed
@haiwu

Description

Describe the bug
harbor_replication documentation bug with: https://github.com/goharbor/terraform-provider-harbor/blob/main/docs/resources/replication.md, where it has this example:

resource "harbor_replication" "alpine" {
  name        = "alpine"
  action      = "pull"
  registry_id = harbor_registry.main.registry_id
  schedule = "event_based"
  filters {
    name = "library/alpine"
  }
  filters {
    tag = "3.*.*"
  }
}

The above is wrong, 'event_based' is only possible for 'push' action', not 'pull' action.

To Reproduce
Just tried to ensure the above in the doc, it likely won't work.

Expected behavior
The example in the above doc should be 'push' action instead.

Additional context
N/A

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions