@@ -22,8 +22,6 @@ package e2e
22
22
import (
23
23
. "github.com/onsi/ginkgo/v2"
24
24
"k8s.io/utils/pointer"
25
-
26
- "sigs.k8s.io/cluster-api/test/framework"
27
25
)
28
26
29
27
var _ = Describe ("When testing clusterctl upgrades (v1.0=>current)" , func () {
@@ -51,17 +49,6 @@ var _ = Describe("When testing clusterctl upgrades (v1.0=>current)", func() {
51
49
WorkloadKubernetesVersion : "v1.23.17" ,
52
50
MgmtFlavor : "topology" ,
53
51
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
- },
65
52
}
66
53
})
67
54
})
@@ -88,17 +75,6 @@ var _ = Describe("When testing clusterctl upgrades (v1.4=>current)", func() {
88
75
WorkloadKubernetesVersion : "v1.27.3" ,
89
76
MgmtFlavor : "topology" ,
90
77
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
- },
102
78
}
103
79
})
104
80
})
@@ -125,17 +101,6 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.4=>cur
125
101
WorkloadKubernetesVersion : "v1.27.3" ,
126
102
MgmtFlavor : "topology" ,
127
103
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
- },
139
104
}
140
105
})
141
106
})
@@ -156,17 +121,6 @@ var _ = Describe("When testing clusterctl upgrades (v1.5=>current)", func() {
156
121
WorkloadKubernetesVersion : "v1.28.0" ,
157
122
MgmtFlavor : "topology" ,
158
123
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
- },
170
124
}
171
125
})
172
126
})
@@ -187,17 +141,6 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.5=>cur
187
141
WorkloadKubernetesVersion : "v1.28.0" ,
188
142
MgmtFlavor : "topology" ,
189
143
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
- },
201
144
}
202
145
})
203
146
})
0 commit comments