kubebuilder
kubebuilder copied to clipboard
🛠️ add ignore flags for selective scaffolding in edit command
Description:
This PR introduces support for the following --ignore-* flags in the edit command of the Helm plugin, allowing selective scaffolding of chart files:
--ignore-samples--ignore-prometheus--ignore-networkPolicy--ignore-certmanager--ignore-webhook
It can be used like this:
kubebuilder edit --plugins=helm.kubebuilder.io/v1-alpha \
--ignore-samples \
--ignore-prometheus \
--ignore-networkPolicy \
--ignore-certmanager \
--ignore-webhook
These flags only apply to the edit command. The init command still scaffolds all components by default. If any of the scaffolded folders are deleted manually, running edit with the respective --ignore-* flag will prevent them from being regenerated.
Motivation:
Developers may not want all default Helm chart components (like Prometheus monitors or sample CRs). This change offers a way to skip unwanted parts cleanly.
Fixes:
Fixes #4326
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: pabhi18 / name: Abhinav Pratap (ff5d136bf9729ba1fabc19c782ffd2e198db7d0a, 22f462729c773562a717ae1f719e633cf866cd0d)
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: pabhi18 Once this PR has been reviewed and has the lgtm label, please assign camilamacedo86 for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
Welcome @pabhi18!
It looks like this is your first PR to kubernetes-sigs/kubebuilder 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes-sigs/kubebuilder has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
Hi @pabhi18. Thanks for your PR.
I'm waiting for a kubernetes-sigs 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.
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.
Fixed with #5058 Closing it