Skip to content

Commit

Permalink
Making oadpv1alpha1 alias consistent across the repo (openshift#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
savitharaghunathan authored Jan 14, 2022
1 parent 04bb1f9 commit 170906a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/predicate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controllers

import (
oadpApi "github.com/openshift/oadp-operator/api/v1alpha1"
oadpv1alpha1 "github.com/openshift/oadp-operator/api/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/event"
Expand Down Expand Up @@ -40,8 +40,8 @@ func isObjectOurs(scheme *runtime.Scheme, object client.Object) bool {
return false
}
gvk := objGVKs[0]
if gvk.Group == oadpApi.GroupVersion.Group && gvk.Version == oadpApi.GroupVersion.Version && gvk.Kind == oadpApi.Kind {
if gvk.Group == oadpv1alpha1.GroupVersion.Group && gvk.Version == oadpv1alpha1.GroupVersion.Version && gvk.Kind == oadpv1alpha1.Kind {
return true
}
return object.GetLabels()[oadpApi.OadpOperatorLabel] != ""
return object.GetLabels()[oadpv1alpha1.OadpOperatorLabel] != ""
}

0 comments on commit 170906a

Please sign in to comment.