mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #93216 from liggitt/deflake-preferred-version
Deflake PreferredVersion e2e test
This commit is contained in:
commit
92e471a0bd
@ -18,6 +18,8 @@ package apimachinery
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"strings"
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
utilversion "k8s.io/apimachinery/pkg/util/version"
|
utilversion "k8s.io/apimachinery/pkg/util/version"
|
||||||
"k8s.io/apiserver/pkg/endpoints/discovery"
|
"k8s.io/apiserver/pkg/endpoints/discovery"
|
||||||
@ -89,6 +91,10 @@ var _ = SIGDescribe("Discovery", func() {
|
|||||||
framework.ExpectNotEqual(len(list.Groups), 0, "Missing APIGroups")
|
framework.ExpectNotEqual(len(list.Groups), 0, "Missing APIGroups")
|
||||||
|
|
||||||
for _, group := range list.Groups {
|
for _, group := range list.Groups {
|
||||||
|
if strings.HasSuffix(group.Name, ".example.com") {
|
||||||
|
// ignore known example dynamic API groups that are added/removed during the e2e test run
|
||||||
|
continue
|
||||||
|
}
|
||||||
framework.Logf("Checking APIGroup: %v", group.Name)
|
framework.Logf("Checking APIGroup: %v", group.Name)
|
||||||
|
|
||||||
// locate APIGroup endpoint
|
// locate APIGroup endpoint
|
||||||
|
Loading…
Reference in New Issue
Block a user