File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -438,13 +438,9 @@ var _ = SIGDescribe("Kubectl client", func() {
438
438
"BackendConfig" : true ,
439
439
"NodeMetrics" : true ,
440
440
"PodMetrics" : true ,
441
- "ScalingPolicy" : true ,
442
441
"VolumeSnapshotClass" : true ,
443
442
"VolumeSnapshotContent" : true ,
444
443
"VolumeSnapshot" : true ,
445
-
446
- // A CRD created by other e2e tests without any test data.
447
- "Noxu" : true ,
448
444
}
449
445
450
446
apiGroups , err := c .Discovery ().ServerPreferredResources ()
@@ -453,6 +449,13 @@ var _ = SIGDescribe("Kubectl client", func() {
453
449
testableResources := etcd .GetEtcdStorageDataForNamespace (f .Namespace .Name )
454
450
455
451
for _ , group := range apiGroups {
452
+ // This limits the scope of this test to exclude CRDs. This
453
+ // assumes that CRDs will not have a .k8s.io group and will have
454
+ // a . in their name.
455
+ if ! strings .Contains (group .GroupVersion , ".k8s.io" ) && strings .Contains (group .GroupVersion , "." ) {
456
+ continue
457
+ }
458
+
456
459
for _ , resource := range group .APIResources {
457
460
if ! verbsContain (resource .Verbs , "get" ) || ignoredResources [resource .Kind ] || strings .HasPrefix (resource .Name , "e2e-test" ) {
458
461
continue
You can’t perform that action at this time.
0 commit comments