Uploaded image for project: 'Ansible Cloud Automation'
  1. Ansible Cloud Automation
  2. ACA-1253

[kubernetes.core/483] simplify the helm repo update scenario

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      https://github.com/ansible-collections/kubernetes.core/issues/483
      <!--- Verify first that your feature was not already discussed on GitHub -->
      <!--- Complete all sections as described, this form is processed automatically -->

              1. SUMMARY

      Currently its quite awkward to update the helm repo cache. The [documented way](https://docs.ansible.com/ansible/latest/collections/kubernetes/core/helm_module.html#examples) seems rather complex:

      ```yaml

      • name: Separately update the repository cache
        kubernetes.core.helm:
        name: dummy
        namespace: kube-system
        state: absent
        update_repo_cache: true
        ```

      Since there is already a `helm_repository` module, why not make it also update the cache like the `apt` module?

      For example, by adding `update_cache` and `cache_valid_time`:

      ```yaml

      • name: Add jetstack repository
        kubernetes.core.helm_repository:
        name: jetstack
        repo_url: https://charts.jetstack.io
        update_cache: yes
        cache_valid_time: 10800 # 3h
        ```
              1. ISSUE TYPE
      • Feature Idea
              1. COMPONENT NAME

      helm_repository

            Unassigned Unassigned
            mgraves1@redhat.com Mike Graves
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: