File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ require (
10
10
k8s.io/apimachinery v0.17.3
11
11
k8s.io/client-go v0.17.3
12
12
k8s.io/klog/v2 v2.0.0
13
- openebs.io/metac v0.4 .0
13
+ openebs.io/metac v0.5 .0
14
14
)
15
15
16
16
replace (
17
17
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.17.3
18
18
k8s.io/apimachinery => k8s.io/apimachinery v0.17.3
19
19
k8s.io/client-go => k8s.io/client-go v0.17.3
20
- openebs.io/metac => github.com/AmitKumarDas/metac v0.4 .0
20
+ openebs.io/metac => github.com/AmitKumarDas/metac v0.5 .0
21
21
)
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT
3
3
cloud.google.com/go v0.38.0 /go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU =
4
4
contrib.go.opencensus.io/exporter/prometheus v0.1.0 h1:SByaIoWwNgMdPSgl5sMqM2KDE5H/ukPWBRo314xiDvg =
5
5
contrib.go.opencensus.io/exporter/prometheus v0.1.0 /go.mod h1:cGFniUXGZlKRjzOyuZJ6mgB+PgBcCIa79kEKR8YCW+A =
6
- github.com/AmitKumarDas/metac v0.4 .0 h1:DicLgezoHVoYrC0wtatCecfZoR93Vb++yTsT6zXQAQM =
7
- github.com/AmitKumarDas/metac v0.4 .0 /go.mod h1:OdHjrNt6jJ6e723kuQB5Bou2noiU4l3FfzEgzVNWJtk =
6
+ github.com/AmitKumarDas/metac v0.5 .0 h1:eYqtX19FTq+je3sXp3yvw0o4WjobE5WhRxTGag0Vr3s =
7
+ github.com/AmitKumarDas/metac v0.5 .0 /go.mod h1:OdHjrNt6jJ6e723kuQB5Bou2noiU4l3FfzEgzVNWJtk =
8
8
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 /go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8 =
9
9
github.com/Azure/go-autorest/autorest v0.9.0 /go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI =
10
10
github.com/Azure/go-autorest/autorest/adal v0.5.0 /go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0 =
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
20
20
"github.com/pkg/errors"
21
21
apiextnv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1"
22
22
apiextnv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1"
23
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23
24
"k8s.io/client-go/kubernetes"
24
25
"k8s.io/client-go/rest"
25
26
"k8s.io/klog/v2"
@@ -232,3 +233,9 @@ func (f *Fixture) GetAPIForAPIVersionAndResource(
232
233
resource ,
233
234
)
234
235
}
236
+
237
+ // GetAPIResourcesForKind returns the list of discoverd api resources
238
+ // based on the provided kind
239
+ func (f * Fixture ) GetAPIResourcesForKind (kind string ) []* metav1.APIResource {
240
+ return f .apiDiscovery .GetAPIResourcesForKind (kind )
241
+ }
You can’t perform that action at this time.
0 commit comments