From fcd7d28c72309fa9164642dc6b573b11732c7483 Mon Sep 17 00:00:00 2001 From: iameskild Date: Wed, 14 Sep 2022 15:04:03 -0700 Subject: [PATCH] Restart conda-store worker when new conda env is added to qhub-config.yaml --- .../modules/kubernetes/services/conda-store/worker.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/conda-store/worker.tf b/qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/conda-store/worker.tf index 874d0692c..ad0876f2a 100644 --- a/qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/conda-store/worker.tf +++ b/qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/conda-store/worker.tf @@ -80,8 +80,9 @@ resource "kubernetes_deployment" "worker" { annotations = { # This lets us autorestart when the conifg changes! - "checksum/config-map" = sha256(jsonencode(kubernetes_config_map.conda-store-config.data)) - "checksum/secret" = sha256(jsonencode(kubernetes_secret.conda-store-secret.data)) + "checksum/config-map" = sha256(jsonencode(kubernetes_config_map.conda-store-config.data)) + "checksum/secret" = sha256(jsonencode(kubernetes_secret.conda-store-secret.data)) + "checksum/conda-environments" = sha256(jsonencode(kubernetes_config_map.conda-store-environments.data)) } }