@@ -24,6 +24,7 @@ import (
24
24
. "github.com/onsi/gomega"
25
25
"k8s.io/utils/ptr"
26
26
27
+ clusterctlcluster "sigs.k8s.io/cluster-api/cmd/clusterctl/client/cluster"
27
28
"sigs.k8s.io/cluster-api/test/framework"
28
29
"sigs.k8s.io/cluster-api/test/framework/kubetest"
29
30
)
@@ -39,7 +40,7 @@ var _ = Describe("When following the Cluster API quick-start", func() {
39
40
InfrastructureProvider : ptr .To ("docker" ),
40
41
PostMachinesProvisioned : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
41
42
// This check ensures that owner references are resilient - i.e. correctly re-reconciled - when removed.
42
- framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName ,
43
+ framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ),
43
44
framework .CoreOwnerReferenceAssertion ,
44
45
framework .ExpOwnerReferenceAssertions ,
45
46
framework .DockerInfraOwnerReferenceAssertions ,
@@ -48,7 +49,7 @@ var _ = Describe("When following the Cluster API quick-start", func() {
48
49
framework .KubernetesReferenceAssertions ,
49
50
)
50
51
// This check ensures that owner references are correctly updated to the correct apiVersion.
51
- framework .ValidateOwnerReferencesOnUpdate (ctx , proxy , namespace , clusterName ,
52
+ framework .ValidateOwnerReferencesOnUpdate (ctx , proxy , namespace , clusterName , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ),
52
53
framework .CoreOwnerReferenceAssertion ,
53
54
framework .ExpOwnerReferenceAssertions ,
54
55
framework .DockerInfraOwnerReferenceAssertions ,
@@ -57,15 +58,15 @@ var _ = Describe("When following the Cluster API quick-start", func() {
57
58
framework .KubernetesReferenceAssertions ,
58
59
)
59
60
// This check ensures that finalizers are resilient - i.e. correctly re-reconciled - when removed.
60
- framework .ValidateFinalizersResilience (ctx , proxy , namespace , clusterName ,
61
+ framework .ValidateFinalizersResilience (ctx , proxy , namespace , clusterName , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ),
61
62
framework .CoreFinalizersAssertion ,
62
63
framework .KubeadmControlPlaneFinalizersAssertion ,
63
64
framework .ExpFinalizersAssertion ,
64
65
framework .DockerInfraFinalizersAssertion ,
65
66
)
66
67
// This check ensures that the resourceVersions are stable, i.e. it verifies there are no
67
68
// continuous reconciles when everything should be stable.
68
- framework .ValidateResourceVersionStable (ctx , proxy , namespace )
69
+ framework .ValidateResourceVersionStable (ctx , proxy , namespace , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ) )
69
70
},
70
71
}
71
72
})
@@ -83,7 +84,7 @@ var _ = Describe("When following the Cluster API quick-start with ClusterClass [
83
84
InfrastructureProvider : ptr .To ("docker" ),
84
85
// This check ensures that owner references are resilient - i.e. correctly re-reconciled - when removed.
85
86
PostMachinesProvisioned : func (proxy framework.ClusterProxy , namespace , clusterName string ) {
86
- framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName ,
87
+ framework .ValidateOwnerReferencesResilience (ctx , proxy , namespace , clusterName , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ),
87
88
framework .CoreOwnerReferenceAssertion ,
88
89
framework .ExpOwnerReferenceAssertions ,
89
90
framework .DockerInfraOwnerReferenceAssertions ,
@@ -92,7 +93,7 @@ var _ = Describe("When following the Cluster API quick-start with ClusterClass [
92
93
framework .KubernetesReferenceAssertions ,
93
94
)
94
95
// This check ensures that owner references are correctly updated to the correct apiVersion.
95
- framework .ValidateOwnerReferencesOnUpdate (ctx , proxy , namespace , clusterName ,
96
+ framework .ValidateOwnerReferencesOnUpdate (ctx , proxy , namespace , clusterName , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ),
96
97
framework .CoreOwnerReferenceAssertion ,
97
98
framework .ExpOwnerReferenceAssertions ,
98
99
framework .DockerInfraOwnerReferenceAssertions ,
@@ -101,15 +102,15 @@ var _ = Describe("When following the Cluster API quick-start with ClusterClass [
101
102
framework .KubernetesReferenceAssertions ,
102
103
)
103
104
// This check ensures that finalizers are resilient - i.e. correctly re-reconciled - when removed.
104
- framework .ValidateFinalizersResilience (ctx , proxy , namespace , clusterName ,
105
+ framework .ValidateFinalizersResilience (ctx , proxy , namespace , clusterName , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ),
105
106
framework .CoreFinalizersAssertion ,
106
107
framework .KubeadmControlPlaneFinalizersAssertion ,
107
108
framework .ExpFinalizersAssertion ,
108
109
framework .DockerInfraFinalizersAssertion ,
109
110
)
110
111
// This check ensures that the resourceVersions are stable, i.e. it verifies there are no
111
112
// continuous reconciles when everything should be stable.
112
- framework .ValidateResourceVersionStable (ctx , proxy , namespace )
113
+ framework .ValidateResourceVersionStable (ctx , proxy , namespace , clusterctlcluster . FilterClusterObjectsWithNameFilter ( clusterName ) )
113
114
},
114
115
}
115
116
})
0 commit comments