Skip to content

Commit

Permalink
Add x-kubernetes-selectable-fields to fields excluded in publish open…
Browse files Browse the repository at this point in the history
…api conformance comparisons
  • Loading branch information
jpbetz committed Mar 2, 2024
1 parent 6141023 commit eb5f31b
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 eb5f31b

Please sign in to comment.