We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f495c15 + 43c72d9 commit f3cb19bCopy full SHA for f3cb19b
playbooks/kubeconfig.yml
@@ -65,6 +65,14 @@
65
failed_when: update_kubeconfig_result.stderr
66
when: not undo|default(false)|bool
67
68
+ - name: Check the availability of kubeconfig
69
+ shell: "/usr/local/bin/kubectl --kubeconfig={{ local_kube_config }} cluster-info"
70
+ register: cluster_info
71
+ until: cluster_info.rc == 0
72
+ retries: 5
73
+ delay: 3
74
+ when: not undo|default(false)|bool
75
+
76
- name: Check kubeconfig configmap
77
shell: "/usr/local/bin/kubectl -n {{ spray_job_pod_namespace }} get configmap {{ kubeconfig_name }}"
78
args:
0 commit comments