We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea32729 commit 044e189Copy full SHA for 044e189
pkg/client/interfaces.go
@@ -22,6 +22,7 @@ import (
22
apierrors "k8s.io/apimachinery/pkg/api/errors"
23
24
"k8s.io/apimachinery/pkg/api/meta"
25
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26
"k8s.io/apimachinery/pkg/runtime"
27
"k8s.io/apimachinery/pkg/types"
28
)
@@ -133,3 +134,10 @@ func IgnoreNotFound(err error) error {
133
134
}
135
return err
136
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
+}
0 commit comments