-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VMware: Fix guestinfo.*.config.data and *.config.url variables
The decision whether to use ignition.config.data or coreos.config.data was based on their presence in ovfenv. If this was missing, coreos.config.data would always be used. Also, if the retrieval of the guestinfo would have an error, the value from ovfenv would not be used even though it was supposed to be a fallback. Thus, refactor the logic to get variables from the ovfenv as fallback while preferring the direct guestinfo variables. With this new function, fix the logic of falling back to coreos.config.data but preferring ignition.config.data. The OVF metadata for CoreOS specified guestinfo.coreos.config.url but that was never used to fetch the Ignition config. Thus, use guestinfo.*.config.url as fallback if no guestinfo.*.config.data variables are set.
- Loading branch information
Showing
1 changed file
with
75 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters