@@ -43,7 +43,7 @@ func GenerateAndApplyMachineConfigNodes(
43
43
fgAccessor featuregates.FeatureGateAccess ,
44
44
pool string ,
45
45
) error {
46
- return generateAndApplyMachineConfigNodes (parentCondition , childCondition , parentStatus , childStatus , node , mcfgClient , nil , nil , fgAccessor , pool )
46
+ return generateAndApplyMachineConfigNodes (parentCondition , childCondition , parentStatus , childStatus , node , mcfgClient , nil , fgAccessor , pool )
47
47
}
48
48
49
49
func UpdateMachineConfigNodeStatus (
@@ -54,11 +54,10 @@ func UpdateMachineConfigNodeStatus(
54
54
node * corev1.Node ,
55
55
mcfgClient mcfgclientset.Interface ,
56
56
imageSetApplyConfig []* machineconfigurationalphav1.MachineConfigNodeStatusPinnedImageSetApplyConfiguration ,
57
- imageSetSpec []mcfgalphav1.MachineConfigNodeSpecPinnedImageSet ,
58
57
fgAccessor featuregates.FeatureGateAccess ,
59
58
pool string ,
60
59
) error {
61
- return generateAndApplyMachineConfigNodes (parentCondition , childCondition , parentStatus , childStatus , node , mcfgClient , imageSetApplyConfig , imageSetSpec , fgAccessor , pool )
60
+ return generateAndApplyMachineConfigNodes (parentCondition , childCondition , parentStatus , childStatus , node , mcfgClient , imageSetApplyConfig , fgAccessor , pool )
62
61
}
63
62
64
63
// Helper function to convert metav1.Condition to ConditionApplyConfiguration
@@ -90,7 +89,6 @@ func generateAndApplyMachineConfigNodes(
90
89
node * corev1.Node ,
91
90
mcfgClient mcfgclientset.Interface ,
92
91
imageSetApplyConfig []* machineconfigurationalphav1.MachineConfigNodeStatusPinnedImageSetApplyConfiguration ,
93
- imageSetSpec []mcfgalphav1.MachineConfigNodeSpecPinnedImageSet ,
94
92
fgAccessor featuregates.FeatureGateAccess ,
95
93
pool string ,
96
94
) error {
@@ -300,9 +298,6 @@ func generateAndApplyMachineConfigNodes(
300
298
newMCNode .Name = node .Name
301
299
newMCNode .Spec .Pool = mcfgalphav1.MCOObjectReference {Name : pool }
302
300
newMCNode .Spec .Node = mcfgalphav1.MCOObjectReference {Name : node .Name }
303
- if imageSetSpec != nil {
304
- newMCNode .Spec .PinnedImageSets = imageSetSpec
305
- }
306
301
307
302
_ , err := mcfgClient .MachineconfigurationV1alpha1 ().MachineConfigNodes ().Create (context .TODO (), newMCNode , metav1.CreateOptions {})
308
303
if err != nil {
0 commit comments