Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-694 Upstream e2e for Data Mover OADP-1.1 branch
  3. OADP-1017

Workaround for volume-snapshot-mover and velero importing different k8s.io/apimachinery

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown

      OADP operator `make test` on https://issues.redhat.com/browse/OADP-694 is blocked by this error

      # github.com/vmware-tanzu/velero/pkg/builder
      ../go/pkg/mod/github.com/openshift/velero@v0.10.2-0.20221024145358-a1498b55cc81/pkg/builder/object_meta.go:124:7: obj.SetClusterName undefined (type "k8s.io/apimachinery/pkg/apis/meta/v1".Object has no field or method SetClusterName)
      make: *** [vet] Error 2
      

      Attempts to use apimachinery version 0.22 which velero uses in oadp go.mod do not stick due to volume-snapshot-mover and volsync using 0.25.

      go get k8s.io/apimachinery@v0.22.2
      go: downgraded github.com/backube/volsync v0.5.0 => v0.4.0
      go: removed github.com/konveyor/volume-snapshot-mover v0.0.0-20221102191057-2e43d7a7bb73
      

      Velero is currently updated to use v0.24

      The workaround for this for e2e could also be to use unstructured or replace.

            Unassigned Unassigned
            tkaovila@redhat.com Tiger Kaovilai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: