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):