Single quotes are missing in jsonpath argument of kubectl get node (#8683)

This commit is contained in:
emiran-orange 2022-04-05 18:45:38 +02:00 committed by GitHub
parent bba91a7524
commit 3782573ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@
- name: See if node is in ready state
command: >
{{ kubectl }} get node {{ kube_override_hostname|default(inventory_hostname) }}
-o jsonpath={ range .status.conditions[?(@.type == "Ready")].status }{ @ }{ end }
-o jsonpath='{ range .status.conditions[?(@.type == "Ready")].status }{ @ }{ end }'
register: kubectl_node_ready
delegate_to: "{{ groups['kube_control_plane'][0] }}"
failed_when: false