Skip to content

Commit

Permalink
Merge pull request kubernetes#123646 from jpbetz/fix-openapi-conforma…
Browse files Browse the repository at this point in the history
…nce-selectable-fields

Fix publish openapi conformance tests to ignore x-kubernetes-selectable-fields
  • Loading branch information
k8s-ci-robot committed Mar 2, 2024
2 parents 6141023 + eb5f31b commit 96a5cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/apimachinery/crd_publish_openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ import (
"time"

"github.com/onsi/ginkgo/v2"
"sigs.k8s.io/yaml"

openapiutil "k8s.io/kube-openapi/pkg/util"
"k8s.io/utils/pointer"
"sigs.k8s.io/yaml"

"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
Expand Down Expand Up @@ -713,6 +714,7 @@ func dropDefaults(s *spec.Schema) {
delete(s.Properties, "apiVersion")
delete(s.Properties, "kind")
delete(s.Extensions, "x-kubernetes-group-version-kind")
delete(s.Extensions, "x-kubernetes-selectable-fields")
}

func verifyKubectlExplain(ns, name, pattern string) error {
Expand Down

0 comments on commit 96a5cfe

Please sign in to comment.