Skip to content

Commit 1d05f23

Browse files
committed
Rename and move KubernetesObject
Signed-off-by: ruromero <rromerom@redhat.com>
1 parent 044e189 commit 1d05f23

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

pkg/client/interfaces.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
apierrors "k8s.io/apimachinery/pkg/api/errors"
2323

2424
"k8s.io/apimachinery/pkg/api/meta"
25-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2625
"k8s.io/apimachinery/pkg/runtime"
2726
"k8s.io/apimachinery/pkg/types"
2827
)
@@ -134,10 +133,3 @@ func IgnoreNotFound(err error) error {
134133
}
135134
return err
136135
}
137-
138-
// KubernetesResource allows functions to work indistinctly with any resource that
139-
// implements both Object interfaces.
140-
type KubernetesResource interface {
141-
metav1.Object
142-
runtime.Object
143-
}

pkg/controller/controllerutil/controllerutil.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,10 @@ func RemoveFinalizerWithError(o runtime.Object, finalizer string) error {
280280
RemoveFinalizer(m, finalizer)
281281
return nil
282282
}
283+
284+
// KubernetesObject allows functions to work indistinctly with any resource that
285+
// implements both Object interfaces.
286+
type KubernetesObject interface {
287+
metav1.Object
288+
runtime.Object
289+
}

0 commit comments

Comments
 (0)