Skip to content

Commit 8b3df92

Browse files
Merge pull request #29085 from danwinship/drop-sdn
CORENET-6418: drop openshift-sdn tests
2 parents c897529 + a6f85e0 commit 8b3df92

File tree

22 files changed

+83
-1911
lines changed

22 files changed

+83
-1911
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ require (
6565
github.com/openshift/apiserver-library-go v0.0.0-20250710132015-f0d44ef6e53b
6666
github.com/openshift/build-machinery-go v0.0.0-20250530140348-dc5b2804eeee
6767
github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee
68-
github.com/openshift/cluster-network-operator v0.0.0-20240708200319-1cd8678b38fb
6968
github.com/openshift/library-go v0.0.0-20250812160438-378de074fe7b
7069
github.com/ovn-org/ovn-kubernetes/go-controller v0.0.0-20250118001652-a8b9c3c31417
7170
github.com/pborman/uuid v1.2.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,6 @@ github.com/openshift/build-machinery-go v0.0.0-20250530140348-dc5b2804eeee h1:+S
823823
github.com/openshift/build-machinery-go v0.0.0-20250530140348-dc5b2804eeee/go.mod h1:8jcm8UPtg2mCAsxfqKil1xrmRMI3a+XU2TZ9fF8A7TE=
824824
github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee h1:tOtrrxfDEW8hK3eEsHqxsXurq/D6LcINGfprkQC3hqY=
825825
github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee/go.mod h1:zhRiYyNMk89llof2qEuGPWPD+joQPhCRUc2IK0SB510=
826-
github.com/openshift/cluster-network-operator v0.0.0-20240708200319-1cd8678b38fb h1:Dr0dbSQTAU9UaoAvimGjR+fsvwx2twJ5KR0s/jyAz88=
827-
github.com/openshift/cluster-network-operator v0.0.0-20240708200319-1cd8678b38fb/go.mod h1:LnhqxbWhAnhPwilJ4yX1/ly7wCMCYJKkaiSJQSh+Wjg=
828826
github.com/openshift/kubernetes v1.30.1-0.20250906192346-6efb6a95323f h1:Wedy8leKvM/Ry4Wssfl1qQdyWsw5PW7+2ExHmF0k3cI=
829827
github.com/openshift/kubernetes v1.30.1-0.20250906192346-6efb6a95323f/go.mod h1:GwUMe2E0Dqe2YN/Nkg9QWNBktqiTR7y+HFxcIWKshXI=
830828
github.com/openshift/kubernetes/staging/src/k8s.io/api v0.0.0-20250906192346-6efb6a95323f h1:EJoUgXhGoIigpvlkXE4gsdXsSQo8n0B5rSO95B4zVrQ=

test/extended/cli/explain.go

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
e2e "k8s.io/kubernetes/test/e2e/framework"
2222

2323
configv1 "github.com/openshift/api/config/v1"
24-
"github.com/openshift/origin/test/extended/networking"
2524
exutil "github.com/openshift/origin/test/extended/util"
2625
)
2726

@@ -450,6 +449,13 @@ var (
450449
pattern: `DESCRIPTION\:.*`,
451450
},
452451
},
452+
"network.operator.openshift.io": {
453+
{
454+
gv: schema.GroupVersion{Group: "network.operator.openshift.io", Version: "v1"},
455+
field: "operatorpkis.spec",
456+
pattern: `DESCRIPTION\:.*`,
457+
},
458+
},
453459
}
454460

455461
// This list holds apigroups whose resources are not similar for OpenShift and MicroShift.
@@ -468,34 +474,6 @@ var (
468474
},
469475
},
470476
}
471-
472-
specialNetworkingTypes = []explainExceptions{
473-
{
474-
gv: schema.GroupVersion{Group: "network.operator.openshift.io", Version: "v1"},
475-
field: "operatorpkis.spec",
476-
pattern: `DESCRIPTION\:.*`,
477-
},
478-
{
479-
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
480-
field: "clusternetworks.clusterNetworks",
481-
pattern: `DESCRIPTION\:.*`,
482-
},
483-
{
484-
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
485-
field: "hostsubnets.subnet",
486-
pattern: `DESCRIPTION\:.*`,
487-
},
488-
{
489-
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
490-
field: "netnamespaces.netname",
491-
pattern: `DESCRIPTION\:.*`,
492-
},
493-
{
494-
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
495-
field: "egressnetworkpolicies.spec",
496-
pattern: `DESCRIPTION\:.*`,
497-
},
498-
}
499477
)
500478

501479
func getCrdTypes(oc *exutil.CLI) []schema.GroupVersionResource {
@@ -571,10 +549,6 @@ var _ = g.Describe("[sig-cli] oc explain", func() {
571549
delete(resourceMap, st.gv.WithResource(resource[0]))
572550
}
573551
}
574-
for _, snt := range specialNetworkingTypes {
575-
resource := strings.Split(snt.field, ".")
576-
delete(resourceMap, snt.gv.WithResource(resource[0]))
577-
}
578552

579553
e2e.Logf("These GroupVersionResources are missing proper explain test:")
580554
for k := range resourceMap {
@@ -669,25 +643,6 @@ var _ = g.Describe("[sig-cli] oc explain", func() {
669643
}
670644
})
671645

672-
var _ = g.Describe("[sig-cli] oc explain networking types", func() {
673-
defer g.GinkgoRecover()
674-
675-
oc := exutil.NewCLI("oc-explain")
676-
677-
networking.InOpenShiftSDNContext(func() {
678-
g.It("should contain proper fields description for special networking types", func() {
679-
crdClient := apiextensionsclientset.NewForConfigOrDie(oc.AdminConfig())
680-
for _, st := range specialNetworkingTypes {
681-
e2e.Logf("Checking %s, Field=%s...", st.gv, st.field)
682-
resource := strings.Split(st.field, ".")
683-
gvr := st.gv.WithResource(resource[0])
684-
o.Expect(verifyExplain(oc, crdClient, gvr,
685-
st.pattern, st.field, fmt.Sprintf("--api-version=%s", st.gv))).NotTo(o.HaveOccurred())
686-
}
687-
})
688-
})
689-
})
690-
691646
func verifySpecStatusExplain(oc *exutil.CLI, crdClient apiextensionsclientset.Interface, gvr schema.GroupVersionResource, fieldTypeNameOverrides map[string]string) error {
692647
singularResourceName, _ := strings.CutSuffix(gvr.Resource, "s")
693648
normalizedResourceName := fmt.Sprintf("(?i)%v(?-i)", singularResourceName) // case insensitive

0 commit comments

Comments
 (0)