@@ -34,6 +34,17 @@ var _ = Describe("When following the Cluster API quick-start [PR-Blocking]", fun
34
34
BootstrapClusterProxy : bootstrapClusterProxy ,
35
35
ArtifactFolder : artifactFolder ,
36
36
SkipCleanup : skipCleanup ,
37
+ PostMachinesProvisioned : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
38
+ // This check ensures that owner references are resilient - i.e. correctly re-reconciled - when removed.
39
+ framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName ,
40
+ framework .CoreTypeOwnerReferenceAssertion ,
41
+ framework .ExpOwnerReferenceAssertions ,
42
+ framework .DockerInfraOwnerReferenceAssertions ,
43
+ framework .KubeadmBootstrapOwnerReferenceAssertions ,
44
+ framework .KubeadmControlPlaneOwnerReferenceAssertions ,
45
+ framework .KubernetesReferenceAssertions ,
46
+ )
47
+ },
37
48
}
38
49
})
39
50
})
@@ -47,6 +58,17 @@ var _ = Describe("When following the Cluster API quick-start with ClusterClass [
47
58
ArtifactFolder : artifactFolder ,
48
59
SkipCleanup : skipCleanup ,
49
60
Flavor : pointer .String ("topology" ),
61
+ // This check ensures that owner references are resilient - i.e. correctly re-reconciled - when removed.
62
+ PostMachinesProvisioned : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
63
+ framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName ,
64
+ framework .CoreTypeOwnerReferenceAssertion ,
65
+ framework .ExpOwnerReferenceAssertions ,
66
+ framework .DockerInfraOwnerReferenceAssertions ,
67
+ framework .KubeadmBootstrapOwnerReferenceAssertions ,
68
+ framework .KubeadmControlPlaneOwnerReferenceAssertions ,
69
+ framework .KubernetesReferenceAssertions ,
70
+ )
71
+ },
50
72
}
51
73
})
52
74
})
@@ -77,48 +99,3 @@ var _ = Describe("When following the Cluster API quick-start with Ignition", fun
77
99
}
78
100
})
79
101
})
80
-
81
- var _ = Describe ("When following the Cluster API quick-start check owner references are correctly reconciled and rereconciled if deleted" , func () {
82
- QuickStartSpec (ctx , func () QuickStartSpecInput {
83
- return QuickStartSpecInput {
84
- E2EConfig : e2eConfig ,
85
- ClusterctlConfigPath : clusterctlConfigPath ,
86
- BootstrapClusterProxy : bootstrapClusterProxy ,
87
- ArtifactFolder : artifactFolder ,
88
- SkipCleanup : skipCleanup ,
89
- PostMachinesProvisioned : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
90
- framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName ,
91
- framework .CoreTypeOwnerReferenceAssertion ,
92
- framework .ExpOwnerReferenceAssertions ,
93
- framework .DockerInfraOwnerReferenceAssertions ,
94
- framework .KubeadmBootstrapOwnerReferenceAssertions ,
95
- framework .KubeadmControlPlaneOwnerReferenceAssertions ,
96
- framework .KubernetesReferenceAssertions ,
97
- )
98
- },
99
- }
100
- })
101
- })
102
-
103
- var _ = Describe ("When following the Cluster API quick-start with ClusterClass check owner references are correctly reconciled and rereconciled if deleted [ClusterClass]" , func () {
104
- QuickStartSpec (ctx , func () QuickStartSpecInput {
105
- return QuickStartSpecInput {
106
- E2EConfig : e2eConfig ,
107
- ClusterctlConfigPath : clusterctlConfigPath ,
108
- BootstrapClusterProxy : bootstrapClusterProxy ,
109
- ArtifactFolder : artifactFolder ,
110
- SkipCleanup : skipCleanup ,
111
- Flavor : pointer .String ("topology" ),
112
- PostMachinesProvisioned : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
113
- framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName ,
114
- framework .CoreTypeOwnerReferenceAssertion ,
115
- framework .ExpOwnerReferenceAssertions ,
116
- framework .DockerInfraOwnerReferenceAssertions ,
117
- framework .KubeadmBootstrapOwnerReferenceAssertions ,
118
- framework .KubeadmControlPlaneOwnerReferenceAssertions ,
119
- framework .KubernetesReferenceAssertions ,
120
- )
121
- },
122
- }
123
- })
124
- })
0 commit comments