Skip to content

Commit

Permalink
Merge pull request #898 from ruromero/k8sresource
Browse files Browse the repository at this point in the history
✨ Introduce controllerutil.Object interface
  • Loading branch information
k8s-ci-robot authored May 20, 2020
2 parents ca25c1f + ea2e6b1 commit 934bda8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/controller/controllerutil/controllerutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,10 @@ func RemoveFinalizerWithError(o runtime.Object, finalizer string) error {
RemoveFinalizer(m, finalizer)
return nil
}

// Object allows functions to work indistinctly with any resource that
// implements both Object interfaces.
type Object interface {
metav1.Object
runtime.Object
}

0 comments on commit 934bda8

Please sign in to comment.