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

Kubespray Helm role fails due to undefined variable download_defaults #11345

Open
Tostaza opened this issue Jul 2, 2024 · 0 comments
Open

Kubespray Helm role fails due to undefined variable download_defaults #11345

Tostaza opened this issue Jul 2, 2024 · 0 comments

Comments

@Tostaza
Copy link

Tostaza commented Jul 2, 2024

I'm trying to use the helm-apps role in order to install a few applications with helm. The problem is that helm-apps uses the helm role as a dependency, which fails with the following error:

TASK [kubernetes-apps/helm : Download_file | Show url of file to dowload] *************************************************************************************************************************************** fatal: [node1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ download_defaults | combine(downloads.helm) }}: 'download_defaults' is undefined. 'download_defaults' is undefined. {{ download_defaults | combine(downloads.helm) }}: 'download_defaults' is undefined. 'download_defaults' is undefined\n\nThe error appears to be in '/home/kubespray/roles/download/tasks/download_file.yml': line 10, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Download_file | Show url of file to dowload\n ^ here\n"}

My playbook follows the example provided by the repo documentation (I'll place it here for accessibility) and is executed at the end of all the cluster deployment (cluster.yml):

---
- hosts: kube_control_plane[0]
  gather_facts: no
  roles:
    - name: helm-apps
      releases:
        - name: app
          namespace: app
          chart_ref: simple-app/simple-app
        - name: app2
          namespace: app
          chart_ref: simple-app/simple-app
          wait_timeout: "10m" # override the same option in `release_common_opts`
      repositories: "{{ repos }}"
        - name: simple-app
          url: "https://blog.leiwang.info/simple-app"
      release_common_opts: "{{ helm_params }}"
        wait_timeout: "5m"

If I comment the dependency lines in helm-apps/meta/main.yaml, everything works well.

I hope you can help me as I'm starting with Ansible and Kubespray and this problem has been bugging me for days. Thank you in advance!

@Tostaza Tostaza closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2024
@Tostaza Tostaza reopened this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant