Make kubectl binary configurable with the k3s_kubectl_binary parameter

Closes techno-tim/k3s-ansible#566

Signed-off-by: Christian Berendt <berendt@osism.tech>
This commit is contained in:
Christian Berendt
2024-08-20 09:21:25 +02:00
parent 3a0303d130
commit d67c69cbf5
6 changed files with 23 additions and 18 deletions

View File

@@ -45,7 +45,7 @@
- name: Wait for Tigera Operator resources
ansible.builtin.command: >-
k3s kubectl wait {{ item.type }}/{{ item.name }}
{{ k3s_kubectl_binary }} wait {{ item.type }}/{{ item.name }}
--namespace='tigera-operator'
--for=condition=Available=True
--timeout=30s
@@ -78,12 +78,12 @@
- name: Wait for Calico system resources to be available
ansible.builtin.command: >-
{% if item.type == 'daemonset' %}
k3s kubectl wait pods
{{ k3s_kubectl_binary }} wait pods
--namespace='{{ item.namespace }}'
--selector={{ item.selector }}
--for=condition=Ready
{% else %}
k3s kubectl wait {{ item.type }}/{{ item.name }}
{{ k3s_kubectl_binary }} wait {{ item.type }}/{{ item.name }}
--namespace='{{ item.namespace }}'
--for=condition=Available
{% endif %}