From 8e439ddd02d28967ab5a54de3479178f9ee7bc9e Mon Sep 17 00:00:00 2001 From: ymao2 Date: Wed, 30 Nov 2022 13:15:28 +0000 Subject: [PATCH] Another minor fixes related to jupyter release --- controlpanel/api/cluster.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controlpanel/api/cluster.py b/controlpanel/api/cluster.py index efd63afe4..d8b62782c 100644 --- a/controlpanel/api/cluster.py +++ b/controlpanel/api/cluster.py @@ -701,12 +701,13 @@ def restart(self, id_token): def is_tool_deployment(cls, metadata): """ Currently the logic for checking whether a deployment is for tool is based on the information we put in the - deployment yaml, the common info cross tools' helm chart is the unidler-key, we have other alternative field - for such check, e.g. whether name contains some key words, but IMO, it is too specific. + deployment yaml, the common info cross tools' helm chart is the unidler-key or unide + (somehow typo in the helm chart :(), we have other alternative field for such check, e.g. whether name contains + some key words, but IMO, it is too specific. We may change this part if we want to refactor how the tool is released and managed. """ - return metadata.labels.get('unidler-key') is not None + return metadata.labels.get('unidler-key') is not None or metadata.labels.get('unidle-key') @classmethod def get_deployments(cls, user, id_token, search_name=None, search_version=None):