Skip to content

Commit

Permalink
Add catalog_workshop_lab_ui_redirect property (#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
makirill authored Sep 6, 2024
1 parent 795bfd8 commit f420021
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions agnosticv-operator/operator/agnosticvcomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f420021

Please sign in to comment.