Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/src/mas/cli/aiservice/install/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,9 @@ def configSchedulingConstraints(self):
" `nodeSelector`: Dictionary of node label key-value pairs",
])

self.aiserviceTenantSchedulingConfigFileLocal = self.promptForFile("Scheduling configuration YAML file", mustExist=True, envVar="AISERVICE_TENANT_SCHEDULING_CONFIG_FILE")
configSchedulingConstraints = self.yesOrNo('Configure Scheduling policies for AI Service tenant')
if configSchedulingConstraints:
self.aiserviceTenantSchedulingConfigFileLocal = self.promptForFile("Scheduling configuration YAML file", mustExist=True, envVar="AISERVICE_TENANT_SCHEDULING_CONFIG_FILE")

def _setMinioStorageDefaults(self) -> None:
"""
Expand Down
4 changes: 3 additions & 1 deletion python/src/mas/cli/install/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,9 @@ def configSchedulingConstraints(self):
" `nodeSelector`: Dictionary of node label key-value pairs",
])

self.aiserviceTenantSchedulingConfigFileLocal = self.promptForFile("Scheduling configuration YAML file", mustExist=True, envVar="AISERVICE_TENANT_SCHEDULING_CONFIG_FILE")
configSchedulingConstraints = self.yesOrNo('Configure Scheduling policies for AI Service tenant')
if configSchedulingConstraints:
self.aiserviceTenantSchedulingConfigFileLocal = self.promptForFile("Scheduling configuration YAML file", mustExist=True, envVar="AISERVICE_TENANT_SCHEDULING_CONFIG_FILE")

@logMethodCall
def _setMinioStorageDefaults(self) -> None:
Expand Down
2 changes: 2 additions & 0 deletions python/test/aiservice/install/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def set_mixin_prompt_input(**kwargs):
return ''
if re.match('.*Instance ID.*', message):
return 'apmdevops'
if re.match('.*Configure Scheduling policies for AI Service tenant.*', message):
return 'y'
if re.match('.*Scheduling constraints YAML file.*', message):
return f'{tmpdir}/aiservice-tenant-affinity-config.yaml'
if re.match('.*Operational Mode.*', message):
Expand Down
Loading