Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Dec 17, 2024
1 parent 992a470 commit 05d1205
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions artifacts/k8s_galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,20 @@
command: helm install --create-namespace -n {{ NAMESPACE }} galaxy galaxy/galaxy --timeout 10m -f /opt/galaxy_values.yaml --version 5.19.0
environment:
KUBECONFIG: /etc/kubernetes/admin.conf
# ignore_errors: true

# - name: Wait pods to be ready
# pause:
# minutes: 3

# - name: Delete Pending stuck pods
# command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending"
# register: error_pods
# changed_when: error_pods.stdout_lines | length > 1
# retries: 5
# delay: 120
# until: error_pods.stdout_lines | length <= 1

# - fail:
# msg: "Error waiting for pods to be ready"
# when: error_pods.stdout_lines | length > 1
ignore_errors: true

- name: Wait pods to be ready
pause:
minutes: 3

- name: Delete Pending stuck pods
command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending"
register: error_pods
changed_when: error_pods.stdout_lines | length > 1
retries: 5
delay: 120
until: error_pods.stdout_lines | length <= 1

- fail:
msg: "Error waiting for pods to be ready"
when: error_pods.stdout_lines | length > 1

0 comments on commit 05d1205

Please sign in to comment.