-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(helm): add pyyaml install task for fedora coreos #12269
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
base: master
Are you sure you want to change the base?
Conversation
The `package` ansible module uses the deprecated `atomic_container` module for managing FCOS packages. This commit switches FCOS to use the `community.general_rpm_ostree_pkg` module instead.
The committers listed above are authorized under a signed CLA. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: LiquidPL 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 |
Welcome @LiquidPL! |
Hi @LiquidPL. 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 Once the patch is verified, the new status will be reflected by the 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. |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't CoreOS use package
? EDIT: nevermind let me read description
have a question. From #10165, pyyaml was introduced during the Helm installation process. However, pyyaml is not a required dependency of Helm. Recently, there have been multiple PRs addressing this dependency that seem to have caused some complications, such as:
Therefore, would it be more reasonable to remove pyyaml from the Helm installation process? Do you mind share your thoughts, @tico88612 @VannTen. :-) |
@yankay PyYAML is not dependency of Helm, but if we need to use https://docs.ansible.com/ansible/latest/collections/kubernetes/core/helm_module.html |
Yeah, from my testing
I believe that CoreOS is specific and minimal enough that it just doesn't work with regular Ansible tooling. |
My opinion is that long term, we should remove any templating on the managed hosts and use exclusively
(as we can see in #12254 , helm is a can of worms) |
On the other for the short term, installing packages should probably go in system_packages even if the |
I could move this to the The way I see it, FCOS would need custom handling anyway, either using the |
What I mean by moving to `system_packages` was to reuse the `pkgs` variables, but consume it in a different task, which would mirror the one using `package` using `rpm_ostree_pkg` instead (or whatever is appropriate).
Does that make sense ?
I don't think this should be too complicated , since the package filtering logic already exists ; but I'm not super familiar with coreos and similar, so that could be a bad assumption.
|
What type of PR is this?
/kind bug
What this PR does / why we need it:
As per ansible/ansible#69064 (comment) and https://docs.ansible.com/ansible/latest/collections/community/general/atomic_container_module.html, the
package
Ansible module on Fedora CoreOS uses theatomic_package
module which is deprecated and doesn't handlerpm-ostree
well. This PR adds a separate task for installing PyYAML in thekubernetes-apps/helm
role specific to FCOS.Which issue(s) this PR fixes:
Fixes #10885
Special notes for your reviewer:
Does this PR introduce a user-facing change?: