Skip to content

Commit

Permalink
[patch] Make Watson OpenScale install optional (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrercm authored Jun 1, 2023
1 parent c0ae027 commit b083575
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
7 changes: 5 additions & 2 deletions image/cli/mascli/functions/pipeline_config_applications
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ function config_pipeline_applications() {
# Predict
if prompt_for_confirm "Install Predict"; then
channel_select_predict || exit 1
if prompt_for_confirm "+ Install SPSS (Optional Cloud Pak for Data service)"; then
CPD_INSTALL_SPSS=true
if prompt_for_confirm "+ Install IBM SPSS Statistics"; then
CPD_INSTALL_SPSS=true
fi
if prompt_for_confirm "+ Install Watson OpenScale"; then
CPD_INSTALL_OPENSCALE=true
fi
fi
fi
Expand Down
2 changes: 2 additions & 0 deletions image/cli/mascli/templates/pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ spec:
value: '$CP4D_VERSION'
- name: cpd_install_spss
value: '$CPD_INSTALL_SPSS'
- name: cpd_install_openscale
value: '$CPD_INSTALL_OPENSCALE'

# Dependencies - SLS
# -------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions tekton/src/params/install.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@
- name: cpd_install_spss
type: string
default: "False"
- name: cpd_install_openscale
type: string
default: "False"

# Dependencies - UDS
# -----------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions tekton/src/pipelines/taskdefs/cp4d/cp4d-aiopenscale.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
value: "$(params.cpd_aiopenscale_storage_class)"
- name: mas_workspace_id
value: $(params.mas_workspace_id)
- name: cpd_install_openscale
value: $(params.cpd_install_openscale)
taskRef:
kind: Task
name: mas-devops-cp4d-service
Expand All @@ -20,6 +22,9 @@
- input: "$(params.mas_app_channel_predict)"
operator: notin
values: [""]
- input: "$(params.cpd_install_openscale)"
operator: in
values: ["True","true"]
workspaces:
- name: configs
workspace: shared-configs
6 changes: 6 additions & 0 deletions tekton/src/tasks/dependencies/cp4d_service.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
- name: cpd_install_spss
type: string
default: "False"
# Whether to install Watson OpenScale or not (Optional for Predict app)
- name: cpd_install_openscale
type: string
default: "False"

- name: mas_instance_id
type: string
Expand Down Expand Up @@ -85,6 +89,8 @@ spec:
value: $(params.cpd_wsl_project_name)
- name: CPD_INSTALL_SPSS
value: $(params.cpd_install_spss)
- name: CPD_INSTALL_OPENSCALE
value: $(params.cpd_install_openscale)
steps:
- name: cp4d-service
command:
Expand Down

0 comments on commit b083575

Please sign in to comment.