github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/ansible/roles/helm/tasks/validate.yaml (about)

     1  - name: wait until the tiller pod is ready
     2    command: kubectl --kubeconfig {{ kubernetes_kubeconfig.kubectl }} get deployment tiller-deploy -n {{ helm.namespace }} -o jsonpath='{.status.availableReplicas}'
     3    register: readyReplicas
     4    until: readyReplicas.stdout|int == 1
     5    retries: 24
     6    delay: 10
     7    failed_when: false # We don't want this task to actually fail (We catch the failure with a custom msg in the next task)
     8  - name: fail if the tiller pod is not ready
     9    fail:
    10       msg: "Timed out waiting for the tiller pod to be in the ready state."
    11    when: readyReplicas.stdout|int != 1