Skip to content
Snippets Groups Projects
Commit 00f6271d authored by František Dvořák's avatar František Dvořák
Browse files

Fix behaviour on notebooks deployment errors

Separare deployment of notebooks and monitoring.
parent eb9e29bc
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,6 @@
vars:
name: "{{ item | basename | splitext | first }}"
version: "3.2.1" # app 4.0.2 (2023-11-27)
monitor_version: "0.3.1"
shell: |-
helm status --namespace {{ name }} {{ name }}
if [ $? -ne 0 ]; then
......@@ -47,6 +46,17 @@
helm upgrade --version {{ version }} -f /tmp/{{ item | basename }} --timeout 2h \
--namespace {{ name }} {{ name }} jupyterhub/jupyterhub
fi
environment:
KUBECONFIG: /etc/kubernetes/admin.conf
PATH: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
when: true
with_fileglob:
- "../deployments/*.yaml"
- name: Deploy/upgrade notebook monitoring instance
vars:
name: "{{ item | basename | splitext | first }}"
monitor_version: "0.3.1"
shell: |-
helm status --namespace {{ name }} {{ name }}-monitor
if [ $? -ne 0 ]; then
helm install --namespace {{ name }} \
......@@ -63,7 +73,6 @@
when: true
with_fileglob:
- "../deployments/*.yaml"
- name: Configure secrets management for the hub
vars:
name: "{{ item | basename | splitext | first }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment