You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: inject clock into StatusConditions calls via operatorpkg WithClock
Upgrades operatorpkg to v0.0.0-20260501204335-c49b4ca8d58d and karpenter
to v1.12.1-0.20260527205500-924ddee92750 which support WithClock for
status conditions.
Updates EC2NodeClass.StatusConditions() to accept ...status.ForOption.
Injects status.WithClock(clk) into all StatusConditions write calls
in the nodeclass controller sub-reconcilers (ami, subnet, securitygroup,
instanceprofile, placementgroup, capacityreservation, validation).
nc.StatusConditions().SetFalse(v1.ConditionTypePlacementGroupReady, "PlacementGroupNotFound", fmt.Sprintf("Placement group %q not found", selector))
61
+
nc.StatusConditions(status.WithClock(p.clk)).SetFalse(v1.ConditionTypePlacementGroupReady, "PlacementGroupNotFound", fmt.Sprintf("Placement group %q not found", selector))
nodeClass.StatusConditions().SetFalse(v1.ConditionTypeSecurityGroupsReady, "SecurityGroupsNotFound", "SecurityGroupSelector did not match any SecurityGroups")
52
+
nodeClass.StatusConditions(status.WithClock(sg.clk)).SetFalse(v1.ConditionTypeSecurityGroupsReady, "SecurityGroupsNotFound", "SecurityGroupSelector did not match any SecurityGroups")
49
53
// If users have omitted the necessary tags from their SecurityGroups and later add them, we need to reprocess the information.
50
54
// Returning 'ok' in this case means that the nodeclass will remain in an unready state until the component is restarted.
nodeClass.StatusConditions().SetFalse(v1.ConditionTypeSubnetsReady, "SubnetsNotFound", "SubnetSelector did not match any Subnets")
52
+
nodeClass.StatusConditions(status.WithClock(s.clk)).SetFalse(v1.ConditionTypeSubnetsReady, "SubnetsNotFound", "SubnetSelector did not match any Subnets")
49
53
// If users have omitted the necessary tags from their Subnets and later add them, we need to reprocess the information.
50
54
// Returning 'ok' in this case means that the nodeclass will remain in an unready state until the component is restarted.
0 commit comments