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

🌱 Write bmhs in separated files #1353

Merged

Conversation

mboukhalfa
Copy link
Member

This PR add writing bmh files in separated files while keeping the old way of putting everything in one file because all the tests using dev-env expect it we can after merging this adapt them then remove the old function.

We need this changes because when creating multiple clusters in different namespaces each namespace need its own bmh applying everything from one file is not convenient we need to apply only bmh that we need in each namespace

@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 23, 2024
@mboukhalfa
Copy link
Member Author

/test-centos-integration-release-1-6
/test-ubuntu-e2e-integration-main

@mboukhalfa
Copy link
Member Author

/test-centos-integration-release-1-6

@kashifest
Copy link
Member

/approve

@metal3-io-bot
Copy link
Collaborator

[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 Feb 27, 2024
@maxrantil
Copy link
Member

LGTM

# Create each bmh and secret in a separated file
# TODO (mboukhalfa): removed the old make_bm_hosts when this adopted by all tests
#
function make_bm_hosts_seprated() {
Copy link
Member

Choose a reason for hiding this comment

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

IMO the name make_separated_bm_hosts() might be more suitable. Anw, I think it's better to add a custom param separate=${1:-false}, instead of duplicating the function

Copy link
Member Author

Choose a reason for hiding this comment

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

Please check now in once function and saving in separated files and everything in the old file

@mboukhalfa mboukhalfa force-pushed the Write-bmhs-in-separated-files/mboukhalfa branch 2 times, most recently from 98a64ce to 69877fa Compare February 27, 2024 09:40
@metal3-io-bot metal3-io-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 27, 2024
@mboukhalfa
Copy link
Member Author

/test-centos-integration-release-1-6
/test-ubuntu-e2e-integration-main

@mquhuy
Copy link
Member

mquhuy commented Feb 27, 2024

lgtm

Signed-off-by: Mohammed Boukhalfa <mohammed.boukhalfa@est.tech>
@mboukhalfa mboukhalfa force-pushed the Write-bmhs-in-separated-files/mboukhalfa branch from 69877fa to ad0a4a4 Compare February 27, 2024 12:19
@mboukhalfa
Copy link
Member Author

/test-centos-integration-release-1-6
/test-ubuntu-e2e-integration-main

@elfosardo
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 27, 2024
@metal3-io-bot metal3-io-bot merged commit e8786b8 into metal3-io:main Feb 27, 2024
5 checks passed
@metal3-io-bot metal3-io-bot deleted the Write-bmhs-in-separated-files/mboukhalfa branch February 27, 2024 13:41
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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants