Skip to content

Commit 92e471a

Browse files
authored
Merge pull request kubernetes#93216 from liggitt/deflake-preferred-version
Deflake PreferredVersion e2e test
2 parents eda07ad + 9718e79 commit 92e471a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/e2e/apimachinery/discovery.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ package apimachinery
1818

1919
import (
2020
"context"
21+
"strings"
22+
2123
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2224
utilversion "k8s.io/apimachinery/pkg/util/version"
2325
"k8s.io/apiserver/pkg/endpoints/discovery"
@@ -89,6 +91,10 @@ var _ = SIGDescribe("Discovery", func() {
8991
framework.ExpectNotEqual(len(list.Groups), 0, "Missing APIGroups")
9092

9193
for _, group := range list.Groups {
94+
if strings.HasSuffix(group.Name, ".example.com") {
95+
// ignore known example dynamic API groups that are added/removed during the e2e test run
96+
continue
97+
}
9298
framework.Logf("Checking APIGroup: %v", group.Name)
9399

94100
// locate APIGroup endpoint

0 commit comments

Comments
 (0)