Repository navigation
Update to Ignition 0.35.0 / Spec 2.4 - #1543
LorbusChris wants to merge 4 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: LorbusChris The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Why are we updating to 2.4? |
|
HTTPHeaders were added to the spec in 2.4 and Installer already uses that feature in the provisioning of OpenStack nodes, via a shim (https://github.com/openshift/installer/blob/a135734617d76039b9494260975001b58a23c14b/pkg/tfvars/openstack/bootstrap_ignition.go#L9). Everything still works right now with the Installer using the usual v2.2 for other platforms, but as a prereq for merging fcos and installer branches over there, all functions for generating Ignition configs are gathered and pulled into one location (and later another for all things spec3), so harmonization of spec versions across repos becomes a requirement, see openshift/installer#3248 |
mtrmac
left a comment
There was a problem hiding this comment.
Just reviewing the mechanics of the thing, I don’t really understand the depths of the reconciliation process.
(I’m also very unsure about the RawExtension change, but I suppose that’s an item for #996 and I’m completely out of my depth for that one.)
There was a problem hiding this comment.
These four copies of essentially the same code keep getting larger and more unwieldy (and only two contain the c := c copy statement). Consider replacing it with a findConfigFile(mc, path)?
There was a problem hiding this comment.
That is an optimization unrelated to the RawExt conversion and can be done separately if needed.
There was a problem hiding this comment.
Another instance of the findConfigFile(mc, path) code.
There was a problem hiding this comment.
("999.0.0" or something clearly too high?)
There was a problem hiding this comment.
3.0.0 is a version that actually exists and that is clearly not yet supported by MCO
There was a problem hiding this comment.
In other words, as soon as MCO adds support for it, this test will break. Or is that the purpose of this test?
There was a problem hiding this comment.
This test will indeed have to change once support is added.
However, right now it is important to check v3 is not accepted.
There was a problem hiding this comment.
The “update mc.Spec.Config” operation might also be better with a helper (although saving one line and one variable, it’s less clear cut).
|
@LorbusChris: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
This probably won't be needed |
|
@LorbusChris: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Supports Ignition Config Spec <= v2.4
/hold