-
Notifications
You must be signed in to change notification settings - Fork 462
Support 'none' platform #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support 'none' platform #266
Conversation
95f329b to
0955a17
Compare
0955a17 to
8149105
Compare
8149105 to
ed21a00
Compare
|
Verified that it no longer crashes with unsupported platform error on BYOR install /retest |
ashcrow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two questions ... one in the comments of the review. The other is if https://github.com/openshift/machine-config-operator/tree/ed21a002560e519d282da6f28eb343a7650f3abb/templates/master/00-master/none/libvirt/ is actually needed as a directory or if it snuck in while debugging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For aws this line denotes aws. For openstack the --cloud-provider line is not listed. Should this be removed or is there a reason it needs to be set empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(note this is the case with the other unit file in this PR as well)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vrutkovs spoke with me in chat and will verify the difference here. If needed he'll do a follow on PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also @rajatchopra might know more about that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its empty by default, so removing it or giving it empty string is the same. Eventually we will move this argument to value 'external'. But this is okay for now.
ed21a00 to
1e7cade
Compare
|
I don't know this code very well, but it seems to me if we're going to add any more platforms we'll need to invest in de-duplicating this stuff; factoring out a "base" platform and capture only things that differ as e.g. systemd drop-ins or separately rendered/templated files. |
|
/lgtm |
|
/test e2e-aws |
3 similar comments
|
/test e2e-aws |
|
/test e2e-aws |
|
/test e2e-aws |
|
This looks good to me. Would you mind breaking the functional addition and the generation of test data into two separate commits? We've done that in the past to make it more clear what's actually changing. |
1e7cade to
d167a3e
Compare
Sure, done |
|
/approve @abhinavdahiya can you take a quick peek? |
|
/test e2e-aws |
|
Flake /retest |
|
/test e2e-aws |
1 similar comment
|
/test e2e-aws |
| return "openstack" | ||
| case ic.Libvirt != nil: | ||
| return "libvirt" | ||
| case ic.None != nil: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not replace platformFromInstallConfig(config) with config.Platform.Name()? Or use config.Platform.Name() inside platformFromInstallConfig and raise errors on empty-string results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather handle this in a different PR, I'm not sure if other components are relying on the function - and unblocking BYOR ASAP is the priority
|
/approve @vrutkovs i can lgtm if you think #266 (comment) should be handled in separate PR. |
|
/test e2e-aws |
1 similar comment
|
/test e2e-aws |
|
/lgtm Follow up PRs will address code enhancements. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, ashcrow, crawford, vrutkovs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This adds a support for 'none' platform for BYOR case, see openshift/installer#982
TODO: