Skip to content

Commit 0b4c8b0

Browse files
committed
log unexected bsl diff
1 parent b4eaa2e commit 0b4c8b0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.16
55
require (
66
github.com/aws/aws-sdk-go v1.28.2
77
github.com/go-logr/logr v0.4.0
8+
github.com/google/go-cmp v0.5.6 // indirect
89
github.com/google/uuid v1.1.2
910
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0
1011
github.com/onsi/ginkgo v1.16.4

tests/e2e/lib/dpa_helpers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"strings"
1313
"time"
1414

15+
"github.com/google/go-cmp/cmp"
1516
buildv1 "github.com/openshift/api/build/v1"
1617
"github.com/openshift/oadp-operator/pkg/common"
1718

@@ -414,6 +415,7 @@ func DoesBSLExist(namespace string, bsl velero.BackupStorageLocationSpec, spec *
414415
for _, b := range spec.BackupLocations {
415416
if b.Velero.Provider == bsl.Provider {
416417
if !reflect.DeepEqual(bsl, *b.Velero) {
418+
log.Printf("bslspec differs from specified in dpa, diff:", cmp.Diff(*b.Velero, bsl))
417419
return false, errors.New("given Velero bsl does not match the deployed velero bsl")
418420
}
419421
}

0 commit comments

Comments
 (0)