Skip to content
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

BareMetalHost API v1beta1 #332

Merged
merged 1 commit into from
Oct 11, 2023
Merged

BareMetalHost API v1beta1 #332

merged 1 commit into from
Oct 11, 2023

Conversation

dtantsur
Copy link
Member

No description provided.

@metal3-io-bot metal3-io-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 10, 2023
@s3rj1k
Copy link
Member

s3rj1k commented May 10, 2023

If my opinion counts, I like that, removing legacy with API version bump

@Rozzii
Copy link
Member

Rozzii commented May 17, 2023

/cc @kashifest @tuminoid @lentzi90

@dtantsur
Copy link
Member Author

/cc @zaneb

@kashifest
Copy link
Member

I am heavily in favor of new API version for BMH. I am interested to know how would we maintain versioning API for BMH in general for future? Would we go to v1beta2 for example and what would be criterions to go to beta2? Shall we document it somewhere if not existing already? Thanks @dtantsur for taking care of this, happy top help in this.

@dtantsur
Copy link
Member Author

Would we go to v1beta2 for example and what would be criterions to go to beta2?

I don't know the kubernetes practices for sure, but I'd not expect us to plan beta2 right now. We may need to do it if we decide that our API has to change again before v1 (e.g. to include Zane's ideas about splitting BareMetalHost object).

@dtantsur dtantsur force-pushed the v1beta1 branch 2 times, most recently from 9a7e12d to d9e7c60 Compare May 30, 2023 07:55
@dtantsur
Copy link
Member Author

Updated the document with my reasoning against v1alpha2 and added a proposal by Zane to rename online to poweredOn.

@Rozzii
Copy link
Member

Rozzii commented Jun 21, 2023

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 21, 2023
@metal3-io metal3-io deleted a comment from metal3-io-bot Jun 21, 2023
@dtantsur
Copy link
Member Author

@zaneb could you take another look and see if this design can get approved?

@Rozzii
Copy link
Member

Rozzii commented Jul 4, 2023

Hi @zaneb @dtantsur

I would like to introduce maxSizeGigabye rootDeviceHint field as part of the v1alpha1 stabilization process,
I have detailed my plan here: metal3-io/baremetal-operator#1308.
Please take a look and let me know about your opinion.

@metal3-io-bot metal3-io-bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2023
@dtantsur
Copy link
Member Author

@zaneb and others: the new revision has changed the approach to the new version by making the transition smoother and ensuring conversion without losses. Please review.

@Rozzii I welcome this, but this can be done without a new version since it's 100% compatible, no?

@Rozzii Rozzii mentioned this pull request Sep 6, 2023
@Rozzii
Copy link
Member

Rozzii commented Sep 6, 2023

@zaneb and others: the new revision has changed the approach to the new version by making the transition smoother and ensuring conversion without losses. Please review.

@Rozzii I welcome this, but this can be done without a new version since it's 100% compatible, no?

Yes I believe this would be 100% backward compatible , but I would still modify the API with this I thought all change to the API would cause a version bump.

@Rozzii
Copy link
Member

Rozzii commented Sep 6, 2023

I will paste here a link, just to better highlight the parallel discussion about the branching #345
@zaneb @dtantsur @kashifest

@zaneb
Copy link
Member

zaneb commented Sep 11, 2023

For me the question in https://github.com/metal3-io/metal3-docs/pull/332/files#r1245928458 is still not answered by this. The part about the storage version is now explicit, but there's no mention of when the controller starts using the new version.

In fact there's no mention at all of changing the version the controller uses, despite all the preliminary work that has gone into it ("Refactor the BMO code to avoid referring directly to the current version"). I gather that the backward-compatibility changes included here mean we can theoretically continue indefinitely using the older client. So it sounds like we're signing future-us up for a big-bang rewrite of the controller at some unknown time?

@dtantsur
Copy link
Member Author

@zaneb updated, PTAL.

Copy link
Member

@zaneb zaneb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'm happy that this makes explicit how we expect to handle the rest of the transition now.

@elfosardo
Copy link
Member

/lgtm

@metal3-io-bot
Copy link
Contributor

@elfosardo: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

/lgtm

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.

@Rozzii
Copy link
Member

Rozzii commented Oct 5, 2023

/approve

@Rozzii
Copy link
Member

Rozzii commented Oct 5, 2023

/lgtm

@metal3-io-bot metal3-io-bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 11, 2023
@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lentzi90, Rozzii

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 11, 2023
@dtantsur
Copy link
Member Author

Okay, the new revision leaves the actual code removal an open question. @zaneb @kashifest @lentzi90 could you please take another look and lgtm/approve? I think that was the last concern.

@kashifest
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 11, 2023
@metal3-io-bot metal3-io-bot merged commit f8810a2 into metal3-io:main Oct 11, 2023
@dtantsur dtantsur deleted the v1beta1 branch October 11, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants