globallogicuki / provider-harbor

Crossplane provider for Harbor based on terraform-provider-harbor
Apache License 2.0
2 stars 1 forks source link

Replication filter not working properly #9

Open tschlaepfer opened 2 months ago

tschlaepfer commented 2 months ago

Hi @lornest, I tested the replication configuration more thoroughly and found that the filter configuration is not working properly.

I configured the following replication:

apiVersion: registry.harbor.crossplane.io/v1alpha1
kind: Replication
metadata:
  annotations:
    argocd.argoproj.io/sync-options: Delete=false
  name: demo-replication
spec:
  forProvider:
    action: pull
    name: demo-replication
    registryIdRef:
      name: docker-registry
    destNamespace: demo
    destNamespaceReplace: 1
    schedule: "0 0 2 * * *"
    executeOnChanged: false
    filters:
      - name: 4data/demo
        tag: "*" 
        decoration: matches
  providerConfigRef:
    name: harbor-provider

However, when the object is applied the resulting configuration in Harbor looks like this, where the filter "Name" parameter is missing.

image

I have tested several different configuration but never managed to get the "Name" parameter configured properly. Could you please have a look at this issue?

tschlaepfer commented 1 month ago

@lornest have you been able to replicate my issue?