|
@@ -65,6 +65,10 @@
|
|
|
node_version: "{{ calico_node_image | regex_replace('^.*node:v?(.*)$', '\\1') }}"
|
|
|
cnx: "{{ calico_node_image | regex_replace('^.*/(.*)-node:.*$', '\\1') }}"
|
|
|
|
|
|
+- name: Calico Master | Set the correct liveness and readiness checks
|
|
|
+ set_fact:
|
|
|
+ calico_binary_checks: "{{ (node_version > '3.2.0' and cnx != 'cnx') or (node_version > '2.2.0' and cnx == 'cnx') | bool }}"
|
|
|
+
|
|
|
- name: Calico Master | Write Calico v2
|
|
|
template:
|
|
|
dest: "{{ mktemp.stdout }}/calico.yml"
|