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

Only update the helm repository used in the current task #637

Open
Borrelhapje opened this issue Jul 17, 2023 · 0 comments
Open

Only update the helm repository used in the current task #637

Borrelhapje opened this issue Jul 17, 2023 · 0 comments
Labels
topic/helm Issues relating to helm plugins type/enhancement New feature or request

Comments

@Borrelhapje
Copy link

SUMMARY

When kubernetes.core.helm is given the update_repo_cache: true option, the plugin runs helm repo update. This can be quite inefficient if a lot of repositories are defined.

Since the plugin has a reference to the repository in chart_ref, could it be possible to instead run helm repo update <repository>?

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

kubernetes.core.helm

ADDITIONAL INFORMATION

I recently ran into an issue where helm installs using this plugin became extremely slow. After some debugging it turned out I had an old repository link which was not accessible from the current host. In this case its an easy fix on my side, but this change also benefits the execution speed of playbooks if a lot of repositories are defined.

    - name: postgresql database
      kubernetes.core.helm:
        name: pg-grafana
        namespace: "{{ k8s.namespace }}"
        chart_ref: bitnami/postgresql
        update_repo_cache: true
@abikouo abikouo added type/enhancement New feature or request topic/helm Issues relating to helm plugins labels Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/helm Issues relating to helm plugins type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants