Skip to content

Commit 170906a

Browse files
Making oadpv1alpha1 alias consistent across the repo (#539)
1 parent 04bb1f9 commit 170906a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/predicate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package controllers
22

33
import (
4-
oadpApi "github.com/openshift/oadp-operator/api/v1alpha1"
4+
oadpv1alpha1 "github.com/openshift/oadp-operator/api/v1alpha1"
55
"k8s.io/apimachinery/pkg/runtime"
66
"sigs.k8s.io/controller-runtime/pkg/client"
77
"sigs.k8s.io/controller-runtime/pkg/event"
@@ -40,8 +40,8 @@ func isObjectOurs(scheme *runtime.Scheme, object client.Object) bool {
4040
return false
4141
}
4242
gvk := objGVKs[0]
43-
if gvk.Group == oadpApi.GroupVersion.Group && gvk.Version == oadpApi.GroupVersion.Version && gvk.Kind == oadpApi.Kind {
43+
if gvk.Group == oadpv1alpha1.GroupVersion.Group && gvk.Version == oadpv1alpha1.GroupVersion.Version && gvk.Kind == oadpv1alpha1.Kind {
4444
return true
4545
}
46-
return object.GetLabels()[oadpApi.OadpOperatorLabel] != ""
46+
return object.GetLabels()[oadpv1alpha1.OadpOperatorLabel] != ""
4747
}

0 commit comments

Comments
 (0)