Skip to content

Commit

Permalink
fix: include modelregistry in the dsc template
Browse files Browse the repository at this point in the history
  • Loading branch information
CFSNM committed Sep 18, 2024
1 parent f42b7ae commit 835ede0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ods_ci/tasks/Resources/Files/dsc_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ spec:
workbenches:
devFlags: <workbenches_devflags>
managementState: <workbenches_value>
modelregistry:
devFlags: <modelregistry_devflags>
managementState: <modelregistry_value>
registriesNamespace: <modelregistry_namespace>

6 changes: 6 additions & 0 deletions ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ${DSCI_NAME} = default-dsci
... trainingoperator
... trustyai
... workbenches
... modelregistry
${SERVERLESS_OP_NAME}= serverless-operator
${SERVERLESS_SUB_NAME}= serverless-operator
${SERVERLESS_NS}= openshift-serverless
Expand Down Expand Up @@ -319,6 +320,11 @@ Create DataScienceCluster CustomResource Using Test Variables
ELSE IF '${COMPONENTS.${cmp}}' == 'Removed'
Run sed -i'' -e 's/<${cmp}_value>/Removed/' ${file_path}dsc_apply.yml
END

# The model registry component needs to set the namespace used, so adding this special statement just for it
IF '${cmp}' == 'modelregistry'
Run sed -i'' -e 's/<${cmp}_namespace>/${MODEL_REGISTRY_NAMESPACE}/' ${file_path}dsc_apply.yml
END
END

Apply Custom Manifest in DataScienceCluster CustomResource Using Test Variables
Expand Down
2 changes: 2 additions & 0 deletions ods_ci/tasks/Tasks/rhods_olm.robot
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Can Install RHODS Operator
IF "${PRODUCT}" == "ODH"
Set Global Variable ${OPERATOR_NAMESPACE} opendatahub-operators
Set Global Variable ${OPERATOR_NAME_LABEL} opendatahub-operator
Set Global Variable ${MODEL_REGISTRY_NAMESPACE} odh-model-registries

Check notice

Code scanning / Robocop

{{ set_variable_keyword }} can be replaced with VAR Note

Set Global Variable can be replaced with VAR
IF "${UPDATE_CHANNEL}" == "odh-nightlies"
Set Global Variable ${OPERATOR_NAME} rhods-operator
ELSE
Expand All @@ -32,6 +33,7 @@ Can Install RHODS Operator
ELSE
Set Global Variable ${OPERATOR_NAME} rhods-operator
Set Global Variable ${OPERATOR_NAME_LABEL} rhods-operator
Set Global Variable ${MODEL_REGISTRY_NAMESPACE} rhoai-model-registries

Check notice

Code scanning / Robocop

{{ set_variable_keyword }} can be replaced with VAR Note

Set Global Variable can be replaced with VAR
END
Given Selected Cluster Type ${cluster_type}
When Installing RHODS Operator ${image_url}
Expand Down
2 changes: 2 additions & 0 deletions ods_ci/tests/Resources/RHOSi.resource
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Assign Vars According To Product
Set Suite Variable ${DASHBOARD_DEPLOYMENT_NAME} rhods-dashboard
Set Suite Variable ${DASHBOARD_LABEL_SELECTOR} app.kubernetes.io/part-of=rhods-dashboard
Set Suite Variable ${APPLICATIONS_NAMESPACE} redhat-ods-applications
Set Suite Variable ${MODEL_REGISTRY_NAMESPACE} rhoai-model-registries

Check notice

Code scanning / Robocop

{{ set_variable_keyword }} can be replaced with VAR Note test

Set Suite Variable can be replaced with VAR
ELSE IF "${PRODUCT}" == "ODH"
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_NAME} Open Data Hub Operator
Expand All @@ -115,6 +116,7 @@ Assign Vars According To Product
Set Suite Variable ${DASHBOARD_DEPLOYMENT_NAME} odh-dashboard
Set Suite Variable ${DASHBOARD_LABEL_SELECTOR} app.kubernetes.io/part-of=dashboard
Set Suite Variable ${APPLICATIONS_NAMESPACE} opendatahub
Set Suite Variable ${MODEL_REGISTRY_NAMESPACE} odh-model-registries

Check notice

Code scanning / Robocop

{{ set_variable_keyword }} can be replaced with VAR Note test

Set Suite Variable can be replaced with VAR
END

Gather Release Attributes From DSC And DSCI
Expand Down

0 comments on commit 835ede0

Please sign in to comment.