Skip to content

Commit ba7d354

Browse files
committed
fix test
1 parent 449107a commit ba7d354

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/extension/handlers/topologymutation/handler_integration_test.go

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import (
5454
"sigs.k8s.io/cluster-api/exp/topology/desiredstate"
5555
"sigs.k8s.io/cluster-api/exp/topology/scope"
5656
"sigs.k8s.io/cluster-api/feature"
57+
v1beta2conditions "sigs.k8s.io/cluster-api/util/conditions/v1beta2"
5758
"sigs.k8s.io/cluster-api/util/contract"
5859
"sigs.k8s.io/cluster-api/webhooks"
5960
)
@@ -247,6 +248,13 @@ func getScope(cluster *clusterv1.Cluster, clusterClassFile string) (*scope.Scope
247248
s.Blueprint.ClusterClass = mustFind(findObject[*clusterv1.ClusterClass](parsedObjects, groupVersionKindName{
248249
Kind: "ClusterClass",
249250
}))
251+
// Set paused condition for ClusterClass
252+
v1beta2conditions.Set(s.Blueprint.ClusterClass, metav1.Condition{
253+
Type: clusterv1.PausedV1Beta2Condition,
254+
Status: metav1.ConditionFalse,
255+
Reason: clusterv1.NotPausedV1Beta2Reason,
256+
ObservedGeneration: s.Blueprint.ClusterClass.GetGeneration(),
257+
})
250258
// InfrastructureClusterTemplate
251259
s.Blueprint.InfrastructureClusterTemplate = mustFind(findObject[*unstructured.Unstructured](parsedObjects, refToGroupVersionKindName(s.Blueprint.ClusterClass.Spec.Infrastructure.Ref)))
252260

0 commit comments

Comments
 (0)