Publish roles and playbooks as Ansible galaxy collection
Publish roles and playbooks as Ansible galaxy collection
This PR sets up CI that publishes ansible roles and playbooks as Ansible Galaxy Collection.
By pushing image-builder roles into galaxy we allow users to use them without cloning full git repository.
Related issues
- Fixes https://github.com/kubernetes-sigs/image-builder/issues/1743
Additional context
- To publish also playbooks into collection, playbooks now must live under
./playbooksin the galaxy dir. - First version of the galaxy collection can be v0.2.0 to avoid breaking contract with users that clone this repository to set up CI from it.
- Galaxy repository
kubernetes_sigshas to be set up by a maintainer with access tokubernetes_sigsgroup. Possibly other namespace names could be used. - Additional README files had to be created to pass galaxy lint and LICENSEs added as symlinks.
[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 drew-viles 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 @Lirt!
It looks like this is your first PR to kubernetes-sigs/image-builder 🎉. 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/image-builder 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 @Lirt. 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.
Hey! Thanks for the PR.
Whilst this looks fine on the face of it, we are pretty low on maintainers and will potentially be losing another one soon. The only problem I have is that by adding in the Galaxy support, it will introduce another area of expectation around support of the feature. I personally wouldn't have the time to keep on top of this as well as all of the providers we currently support too. It's also only moving a subset of the roles over too which then brings in questions around what should be considered a Galaxy collection and what should be considered native to the repo.
I'll have to see how other maintainers feel about this as obviously this is one persons opinion 😄 but right now I'm not sure we could merge this in and provide it the support it would need moving forward and I don't want to see it just start to rot as a result.
Adding my thoughts to this...
We generally want to only encourage a single way of using image-builder to ensure we can support it as much as possible. Officially this is via the container image we provide but we also understand that a lot of people run it directly by checking out the repo and running Make so we also support that.
We have had similar discussions in the past about other ways of using image-builder (such as from within EKS-Anywhere) and we've said we can't support it as we don't have the skills, time or resources to do so.
If we had more test coverage across the different providers and configurations to the point where we had more confidence in changes this might be a different discussion but right now it's too much of a burden on the maintainers and contributors unfortunately.
Hi,
thanks for looking at the PR.
This change shouldn't add extra maintenance burden. It only packages the ansible part into an ansible-native artifact. Any new role or playbook that is added under galaxy repository images/capi/ansible/ or images/capi/ansible/windows/) is automatically included into a collection. This change doesn't affect build processes - only ansible roles. Ansible artifacts are released automatically by tagging the repo (in the CI I added) (this repository is already being tagged).
It's also only moving a subset of the roles over too which then brings in questions around what should be considered a Galaxy collection and what should be considered native to the repo.
All of the roles are included in the collection (no subset). You can check it in my fork:
- https://galaxy.ansible.com/ui/repo/published/lirt/image_builder/content/?showing=role
- https://galaxy.ansible.com/ui/repo/published/lirt/image_builder_windows/content/
The MR required some renaming changes (generally playbooks must use absolute paths) and some file moves, but it was very small. People would need to get used to reference roles in playbooks with absolute paths.
Let me know what do you think.
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.
Sorry we're pretty thin on the ground for maintainers right now so I just cannot test this. Feel free to keep it open but right now I won't be able to make any progress on this.
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale