Skip to content

Commit

Permalink
Fix recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Mar 5, 2024
1 parent fa32e34 commit ebed5a1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
21 changes: 9 additions & 12 deletions artifacts/k8s_galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,19 @@
chdir: /opt/galaxy-helm/galaxy
environment:
KUBECONFIG: /etc/kubernetes/admin.conf
ignore_errors: true
register: helm_install

- name: Undeploy galaxy app
command: helm uninstall --namespace {{ NAMESPACE }} galaxy
when: helm_install is failed

- fail:
msg: "Error installing galaxy helm chat"
when: helm_install is failed

- name: Wait a bit for pods to start
- name: Wait pods to be ready
pause:
seconds: 120
minutes: 3

- name: Delete CreateContainerConfigError 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

Check failure on line 108 in artifacts/k8s_galaxy.yml

View workflow job for this annotation

GitHub Actions / test-artifacts

yaml[new-line-at-end-of-file]

No new line character at the end of file
9 changes: 9 additions & 0 deletions templates/k8s_galaxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ topology_template:
description: Administrative users - set this to a comma-separated list of valid Galaxy users (email addresses).
default: '[email protected]'

# Restrict some K8s input values

kube_cri_runtime:
type: string
description: CRI Runtime to use with Kubernetes
default: "docker"
constraints:
- valid_values: [ docker ]

node_templates:

galaxy:
Expand Down

0 comments on commit ebed5a1

Please sign in to comment.