Skip to content

Conversation

@pratik-mahalle
Copy link
Contributor

Add Metal3 Custom Resources Documentation

Summary

This PR adds comprehensive documentation for Metal3 custom resources in the CAPM3 (Cluster API Provider Metal3) user guide. The documentation covers three key custom resources essential for managing bare metal infrastructure in Kubernetes clusters.

Changes Made

New Documentation Files Added

  1. custom_resources.md - Overview and introduction to Metal3 custom resources
  2. metal3data.md - Documentation for the Metal3Data resource
  3. metal3datatemplate.md - Comprehensive guide for Metal3DataTemplate resource

Updated Files

  • SUMMARY.md - Added navigation links for the new documentation sections

Documentation Coverage

Metal3DataTemplate

  • Complete API reference with YAML examples
  • Metadata specifications (strings, object names, indexes, IP pool references)
  • Network data specifications following Nova network_data.json format
  • Template reference management for versioning
  • Usage guidelines and examples

Metal3Data

  • Resource lifecycle and management
  • Template rendering process
  • Integration with Metal3DataTemplate

Custom Resources Overview

  • Introduction to Metal3 custom resources
  • Relationship between different resources
  • Common use cases and patterns

Benefits

  • Provides comprehensive reference for Metal3 users
  • Includes practical examples for real-world scenarios
  • Improves discoverability through proper navigation structure

Related Issue:
Fixes #398

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kashifest for approval. For more information see the 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

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

Hi @pratik-mahalle. Thanks for your PR.

I'm waiting for a github.com 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/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 24, 2025
@pratik-mahalle
Copy link
Contributor Author

Hey @lentzi90, have a look on this pr

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.

Hi @pratik-mahalle !

Since your original PR, we've been aiming to CRD documentation per controller directly in the respective repo. I think currently we have such in IRSO and we have on-going PR in BMO. Instead of manually curating CRD documentation, we're using tooling to generate them.

I'd suggest actually doing the same for CAPM3 and IPAM, and then linking them here rather than manually recreating the same. It is not maintainable.

@pratik-mahalle
Copy link
Contributor Author

pratik-mahalle commented Nov 24, 2025

Hey @tuminoid Thanks for the clarity! That makes sense, manually maintaining CRD docs can get messy pretty quickly.
but a quick question: how can I use the same tooling you mentioned to generate the CRD documentation for CAPM3 and IPAM? If you can point me to the scripts, configs, or an example setup (like the one in IRSO or the ongoing BMO PR), I can align with that workflow and update the links accordingly.

Happy to follow the standardized approach!

@tuminoid
Copy link
Member

Just check the links I already provided. Also, I'm not @lentzi90 :)

@pratik-mahalle
Copy link
Contributor Author

Sorry for the misunderstanding @tuminoid :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Metal3Data and Metal3DataTemplate

3 participants