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

✨ Add Golang-based deploy-cli #1669

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

mquhuy
Copy link
Member

@mquhuy mquhuy commented Apr 15, 2024

What this PR does / why we need it:
This package does the jobs that are currently handled by deploy.sh. It will help installing BMO, Ironic with suitable configuration.

This PR has been successfully tested here: metal3-io/metal3-dev-env#1447

Co-author: @maxrantil

@mquhuy mquhuy marked this pull request as draft April 15, 2024 10:27
@metal3-io-bot metal3-io-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. labels Apr 15, 2024
@mquhuy mquhuy force-pushed the mquhuy/deploy-cli branch 2 times, most recently from 0b80030 to 74088ff Compare April 19, 2024 08:44
@metal3-io-bot metal3-io-bot removed the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label Apr 19, 2024
@mquhuy mquhuy marked this pull request as ready for review April 19, 2024 08:49
@metal3-io-bot metal3-io-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2024
@mquhuy mquhuy force-pushed the mquhuy/deploy-cli branch 7 times, most recently from 6395f97 to e5632a8 Compare April 24, 2024 06:43
@kashifest
Copy link
Member

@metal3-io-bot metal3-io-bot added the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label Apr 26, 2024
@Rozzii
Copy link
Member

Rozzii commented May 6, 2024

/cc @dtantsur @elfosardo @zaneb I think you would like to check this out also

@metal3-io-bot
Copy link
Contributor

@Rozzii: GitHub didn't allow me to request PR reviews from the following users: I, to, out, check, this, also, would, like, you, think.

Note that only metal3-io members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @dtantsur @elfosardo @zaneb I think you would like to check this out also

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.

@metal3-io-bot metal3-io-bot removed the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label May 8, 2024
@mquhuy
Copy link
Member Author

mquhuy commented May 8, 2024

/test metal3-bmo-e2e-test-pull

@mquhuy
Copy link
Member Author

mquhuy commented May 8, 2024

cc @adilGhaffarDev @lentzi90 @Rozzii @kashifest

/cc @adilGhaffarDev @lentzi90 @Rozzii @kashifest
Just so that you guys are added to reviewers list

@mquhuy
Copy link
Member Author

mquhuy commented Aug 14, 2024

I was rather thinking that we make this one replace deploy.sh after we've cut 0.7, so it gets tested in CI for a release cycle as primary tool, and there wouldn't be two tools to maintain.

How does that sound?

Yep that would be great! We will have to do that change in dev-env though, so doesn't matter if we merge this PR or not.

@tuminoid
Copy link
Member

I was rather thinking that we make this one replace deploy.sh after we've cut 0.7, so it gets tested in CI for a release cycle as primary tool, and there wouldn't be two tools to maintain.
How does that sound?

Yep that would be great! We will have to do that change in dev-env though, so doesn't matter if we merge this PR or not.

Yes I'm aware of that. However we need to maintain this in 0.7 if we merge it before cutting release, so I think we are agreeing on merging only after 0.7?

@mquhuy
Copy link
Member Author

mquhuy commented Aug 14, 2024

Yes I'm aware of that. However we need to maintain this in 0.7 if we merge it before cutting release, so I think we are agreeing on merging only after 0.7?

Yeah let's merge after 0.7 then

@metal3-io-bot metal3-io-bot added the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label Aug 14, 2024
@metal3-io-bot metal3-io-bot removed the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label Aug 14, 2024
@mquhuy mquhuy force-pushed the mquhuy/deploy-cli branch 2 times, most recently from 60ea3a5 to 74f768e Compare August 16, 2024 12:47
@mquhuy
Copy link
Member Author

mquhuy commented Sep 3, 2024

/unhold We have BMO 0.8 released.

@mquhuy
Copy link
Member Author

mquhuy commented Sep 3, 2024

/unhold

@metal3-io-bot metal3-io-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 3, 2024
Copy link
Member

@kashifest kashifest left a comment

Choose a reason for hiding this comment

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

/approve

Makefile Outdated Show resolved Hide resolved
@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kashifest

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 Sep 16, 2024
Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

Some nits

hack/tools/go.mod Outdated Show resolved Hide resolved
hack/tools/go.mod Show resolved Hide resolved
ironic-deployment/README.md Outdated Show resolved Hide resolved
ironic-deployment/README.md Outdated Show resolved Hide resolved
hack/tools/deploy-cli/templates/bmo-kustomize-bmopath.tpl Outdated Show resolved Hide resolved
config/README.md Show resolved Hide resolved
@Rozzii
Copy link
Member

Rozzii commented Sep 16, 2024

In general the structure and the approach looks good.
It is a quite a bit of code to verify the workflow just by looking at it so I guess we will see the issues and edge cases after we start using this in CI or in local dev-env.
I am willing to put lgtm on this after the nits and branch conflict has been resolved

@metal3-io-bot metal3-io-bot added the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label Sep 16, 2024
Signed-off-by: Max Rantil <max.rantil@est.tech>

Signed-off-by: Huy Mai <huy.mai@est.tech>
@metal3-io-bot metal3-io-bot removed the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label Sep 16, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Sep 16, 2024

In general the structure and the approach looks good. It is a quite a bit of code to verify the workflow just by looking at it so I guess we will see the issues and edge cases after we start using this in CI or in local dev-env. I am willing to put lgtm on this after the nits and branch conflict has been resolved

Thank you. Of course we can only make sure how well it works after it's in CI, but at least we were able to test it in this PR: metal3-io/metal3-dev-env#1447

Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

/lgtm

I'll put a hold until the final run of tests in the dev-env PR passes.
/hold

@metal3-io-bot metal3-io-bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Sep 16, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Sep 16, 2024

Tests passed
/unhold

@metal3-io-bot metal3-io-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 16, 2024
@metal3-io-bot metal3-io-bot merged commit 9a31187 into metal3-io:main Sep 16, 2024
21 checks passed
@metal3-io-bot metal3-io-bot deleted the mquhuy/deploy-cli branch September 16, 2024 14:02
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
Status: BMO WIP
Development

Successfully merging this pull request may close these issues.

8 participants