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

Migrate BareMetalHost and HardwareData API docs from BMO to user-guide #475

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

SafeEHA
Copy link
Contributor

@SafeEHA SafeEHA commented Oct 3, 2024

This PR fixes issue #314

@metal3-io-bot metal3-io-bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 3, 2024
@metal3-io-bot
Copy link
Contributor

Hi @SafeEHA. Thanks for your PR.

I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@metal3-io-bot metal3-io-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 3, 2024
@tuminoid
Copy link
Member

tuminoid commented Oct 3, 2024

/ok-to-test

@metal3-io-bot metal3-io-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 3, 2024
@tuminoid
Copy link
Member

tuminoid commented Oct 3, 2024

/cc @dtantsur

@SafeEHA SafeEHA force-pushed the migration-patch branch 3 times, most recently from a5d9ae3 to 51c0ec0 Compare October 3, 2024 10:57
@Rozzii
Copy link
Member

Rozzii commented Oct 3, 2024

IMO this looks good.
/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Rozzii
Once this PR has been reviewed and has the lgtm label, please assign zaneb for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

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.

We already have status annotation page, this creates second one. We also have BMH states already.

Also none of these pages are linked in the index, so they're not visible to readers.

@Rozzii
Copy link
Member

Rozzii commented Oct 4, 2024

We already have status annotation page, this creates second one. We also have BMH states already.

Also none of these pages are linked in the index, so they're not visible to readers.

Ohh you are right, @SafeEHA as @tuminoid mentioned we have these pages: https://book.metal3.io/bmo/inspect_annotation and https://book.metal3.io/bmo/status_annotation , if there is any extra info in the annotations.md then move it to the inspect and status annotation pages please otherwise you can just delete that from the BMO side.

@SafeEHA
Copy link
Contributor Author

SafeEHA commented Oct 4, 2024

Thanks, @tuminoid, i noticed the status and inspect annotations already existing in the user-guide have slightly different content in comparison to the ones on BMO, the code block is yaml formatted on the user guide currently and json formatted on BMO, the descriptive content is also slightly different... should I go ahead to take out the new annotations file i created since it already exists?
I'll go ahead to make API visible on the index

@tuminoid
Copy link
Member

tuminoid commented Oct 4, 2024

Thanks, @tuminoid, i noticed the status and inspect annotations already existing in the user-guide have slightly different content in comparison to the ones on BMO, the code block is yaml formatted on the user guide currently and json formatted on BMO, the descriptive content is also slightly different... should I go ahead to take out the new annotations file i created since it already exists? I'll go ahead to make API visible on the index

We should merge the documents so the user guide is as comprehensible as possible.

@SafeEHA
Copy link
Contributor Author

SafeEHA commented Oct 4, 2024

One final concern, the annotation files on BMO (which is the files referenced in the issue) have different content with the files in user-guide currently, should i focus on merging the files in the user-guide only? its a bit confusing @tuminoid

@tuminoid
Copy link
Member

tuminoid commented Oct 4, 2024

One final concern, the annotation files on BMO (which is the files referenced in the issue) have different content with the files in user-guide currently, should i focus on merging the files in the user-guide only? its a bit confusing @tuminoid

@Rozzii can you assist @SafeEHA which portions to keep and which take?

Signed-off-by: Iury Gregory Melo Ferreira <[email protected]>
Signed-off-by: SafeEHA <[email protected]>
@metal3-io-bot metal3-io-bot added needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 4, 2024
Signed-off-by: SafeEHA <[email protected]>
@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 Oct 4, 2024
@metal3-io-bot metal3-io-bot removed needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 4, 2024
@dtantsur
Copy link
Member

dtantsur commented Nov 5, 2024

/hold

I don't think the PR is in the right direction.

First, the remaining API docs were not meant to get migrated from BMO.

Second, while inspect and status annotations have some use case overlaps, they also have completely disjoint use cases. If we do decide to merge the pages, we need to add redirects to old pages so that existing links don't lead into nowhere.

Finally, any missing API features we migrate here should be written from a case-based perspective. What am I trying to achieve? How do I do it? What are possible issues?

@metal3-io-bot metal3-io-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 5, 2024

To initiate deprovisioning, clear the image URL from the host spec.

## Unmanaged Hosts
Copy link
Member

Choose a reason for hiding this comment

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

This is covered in the state machine docs (expand if needed)

guide](https://book.metal3.io/bmo/introduction) for information on how to
manage hosts.

## Triggering Provisioning
Copy link
Member

Choose a reason for hiding this comment

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

This is already covered in more details in the provisioning docs

state until the details are provided. Unmanaged hosts cannot be
provisioned and their power state is undefined.

## Pausing reconciliation
Copy link
Member

Choose a reason for hiding this comment

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

This deserves a separate page in the advanced features section

or check the source code at `apis/metal3.io/v1alpha1/hardwaredata_types.go`
for a detailed API description.

## PreprovisioningImage
Copy link
Member

Choose a reason for hiding this comment

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

This also deserves its own advanced page

@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 Nov 15, 2024
@metal3-io-bot
Copy link
Contributor

PR needs rebase.

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

6 participants