@@ -22,8 +22,6 @@ package e2e
2222import (
2323 . "github.com/onsi/ginkgo/v2"
2424 "k8s.io/utils/pointer"
25-
26- "sigs.k8s.io/cluster-api/test/framework"
2725)
2826
2927var _ = Describe ("When testing clusterctl upgrades (v1.0=>current)" , func () {
@@ -51,17 +49,6 @@ var _ = Describe("When testing clusterctl upgrades (v1.0=>current)", func() {
5149 WorkloadKubernetesVersion : "v1.23.17" ,
5250 MgmtFlavor : "topology" ,
5351 WorkloadFlavor : "" ,
54- // This check ensures that ownerReference apiVersions are updated for all types after the upgrade.
55- PostUpgrade : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
56- framework .ValidateOwnerReferencesOnUpdate (proxy , namespace ,
57- framework .CoreOwnerReferenceAssertion ,
58- framework .ExpOwnerReferenceAssertions ,
59- framework .DockerInfraOwnerReferenceAssertions ,
60- framework .KubeadmBootstrapOwnerReferenceAssertions ,
61- framework .KubeadmControlPlaneOwnerReferenceAssertions ,
62- framework .KubernetesReferenceAssertions ,
63- )
64- },
6552 }
6653 })
6754})
@@ -88,17 +75,6 @@ var _ = Describe("When testing clusterctl upgrades (v1.4=>current)", func() {
8875 WorkloadKubernetesVersion : "v1.27.3" ,
8976 MgmtFlavor : "topology" ,
9077 WorkloadFlavor : "" ,
91- // This check ensures that ownerReference apiVersions are updated for all types after the upgrade.
92- PostUpgrade : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
93- framework .ValidateOwnerReferencesOnUpdate (proxy , namespace ,
94- framework .CoreOwnerReferenceAssertion ,
95- framework .ExpOwnerReferenceAssertions ,
96- framework .DockerInfraOwnerReferenceAssertions ,
97- framework .KubeadmBootstrapOwnerReferenceAssertions ,
98- framework .KubeadmControlPlaneOwnerReferenceAssertions ,
99- framework .KubernetesReferenceAssertions ,
100- )
101- },
10278 }
10379 })
10480})
@@ -125,17 +101,6 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.4=>cur
125101 WorkloadKubernetesVersion : "v1.27.3" ,
126102 MgmtFlavor : "topology" ,
127103 WorkloadFlavor : "topology" ,
128- // This check ensures that ownerReference apiVersions are updated for all types after the upgrade.
129- PostUpgrade : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
130- framework .ValidateOwnerReferencesOnUpdate (proxy , namespace ,
131- framework .CoreOwnerReferenceAssertion ,
132- framework .ExpOwnerReferenceAssertions ,
133- framework .DockerInfraOwnerReferenceAssertions ,
134- framework .KubeadmBootstrapOwnerReferenceAssertions ,
135- framework .KubeadmControlPlaneOwnerReferenceAssertions ,
136- framework .KubernetesReferenceAssertions ,
137- )
138- },
139104 }
140105 })
141106})
@@ -156,17 +121,6 @@ var _ = Describe("When testing clusterctl upgrades (v1.5=>current)", func() {
156121 WorkloadKubernetesVersion : "v1.28.0" ,
157122 MgmtFlavor : "topology" ,
158123 WorkloadFlavor : "" ,
159- // This check ensures that ownerReference apiVersions are updated for all types after the upgrade.
160- PostUpgrade : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
161- framework .ValidateOwnerReferencesOnUpdate (proxy , namespace ,
162- framework .CoreOwnerReferenceAssertion ,
163- framework .ExpOwnerReferenceAssertions ,
164- framework .DockerInfraOwnerReferenceAssertions ,
165- framework .KubeadmBootstrapOwnerReferenceAssertions ,
166- framework .KubeadmControlPlaneOwnerReferenceAssertions ,
167- framework .KubernetesReferenceAssertions ,
168- )
169- },
170124 }
171125 })
172126})
@@ -187,17 +141,6 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.5=>cur
187141 WorkloadKubernetesVersion : "v1.28.0" ,
188142 MgmtFlavor : "topology" ,
189143 WorkloadFlavor : "topology" ,
190- // This check ensures that ownerReference apiVersions are updated for all types after the upgrade.
191- PostUpgrade : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
192- framework .ValidateOwnerReferencesOnUpdate (proxy , namespace ,
193- framework .CoreOwnerReferenceAssertion ,
194- framework .ExpOwnerReferenceAssertions ,
195- framework .DockerInfraOwnerReferenceAssertions ,
196- framework .KubeadmBootstrapOwnerReferenceAssertions ,
197- framework .KubeadmControlPlaneOwnerReferenceAssertions ,
198- framework .KubernetesReferenceAssertions ,
199- )
200- },
201144 }
202145 })
203146})
0 commit comments