From 43c353af910c1c5433b1b6084119a3f1a75d0508 Mon Sep 17 00:00:00 2001 From: Kirill Malgichev Date: Fri, 6 Sep 2024 14:14:57 -0400 Subject: [PATCH] Add catalog_workshop_lab_ui_redirect property --- agnosticv-operator/operator/agnosticvcomponent.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/agnosticv-operator/operator/agnosticvcomponent.py b/agnosticv-operator/operator/agnosticvcomponent.py index bc8ad1f2a..c05e1f5e1 100644 --- a/agnosticv-operator/operator/agnosticvcomponent.py +++ b/agnosticv-operator/operator/agnosticvcomponent.py @@ -239,6 +239,10 @@ def catalog_requester_parameters(self): def catalog_terms_of_service(self): return self.catalog_meta.get('terms_of_service') + @property + def catalog_workshop_lab_ui_redirect(self): + return self.catalog_meta.get('workshopLabUiRedirect', False) + @property def catalog_workshop_ui_disabled(self): return self.catalog_meta.get('workshopUiDisabled', False) @@ -596,6 +600,9 @@ def __catalog_item_definition(self): if len(self.catalog_owners) > 0: definition['spec']['owners'] = self.catalog_owners + if self.catalog_workshop_lab_ui_redirect: + definition['spec']['workshopLabUiRedirect'] = self.catalog_workshop_lab_ui_redirect + if self.catalog_workshop_ui_disabled: definition['spec']['workshopUiDisabled'] = True else: