kubespray
kubespray copied to clipboard
Avoid MetalLB speaker image download when MetalLB speaker is disabled
What type of PR is this?
/kind bug
What this PR does / why we need it:
Both MetalLB controller and MetalLB speaker are downloaded when metallb_enabled: true since https://github.com/kubernetes-sigs/kubespray/pull/8715.
Since MetalLB speaker can be disabled, its image should be only downloaded when metallb_speaker_enabled: true
Hi @unai-ttxu. 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/test-infra repository.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: floryut, unai-ttxu
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [floryut]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
@unai-ttxu Could you rebase this pull request based on the latest master branch to pass those test jobs?
@unai-ttxu Could you rebase this pull request based on the latest master branch to pass those test jobs?
Done!
Hi @oomichi @floryut can we check this PR?
I've just rebase it again :smile:
molecule_docker job is failed like:
fatal: [ubuntu20]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The error was: {{ ...
'groups': ['kube_control_plane']}}:
'metallb_speaker_enabled' is undefined
The error appears to be in '/builds/kargo-ci/kubernetes-sigs-kubespray/roles/download/tasks/download_file.yml': line 7, column 5, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: download_file | Starting download of file
^ here\n"}
So we might need to move metallb_speaker_enabled to roles/kubespray-defaults/defaults/main.yaml to solve this issue.
molecule_docker job is failed like:
fatal: [ubuntu20]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: {{ ... 'groups': ['kube_control_plane']}}: 'metallb_speaker_enabled' is undefined The error appears to be in '/builds/kargo-ci/kubernetes-sigs-kubespray/roles/download/tasks/download_file.yml': line 7, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: download_file | Starting download of file ^ here\n"}So we might need to move
metallb_speaker_enabledto roles/kubespray-defaults/defaults/main.yaml to solve this issue.
Done! Thanks for the help @oomichi :smile: