Skip to content

Commit

Permalink
ztp: Adapt MergeMachineConfigs to new api
Browse files Browse the repository at this point in the history
Changes due to MCO adaptation to use new format image.
See openshift/machine-config-operator#3317
for more info.
  • Loading branch information
jlojosnegros committed May 3, 2023
1 parent e8b8235 commit 2056b12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ztp/siteconfig-generator/siteConfig/siteConfigHelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func MergeManifests(individualMachineConfigs map[string]interface{}, doNotMerge
}

for roleName, machineConfigs := range mergableMachineConfigs {
var osImageURL string = ""
cconfig := &machineconfigv1.ControllerConfig{}
//It only uses OSImageURL provided by the CVO
merged, err := mcfgctrlcommon.MergeMachineConfigs(machineConfigs, osImageURL)
merged, err := mcfgctrlcommon.MergeMachineConfigs(machineConfigs, cconfig)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2056b12

Please sign in to comment.