Skip to content

Commit

Permalink
fix: include modelregistry in the dsc template (#1823)
Browse files Browse the repository at this point in the history
Including model registry component in the ods-ci DSC template
  • Loading branch information
CFSNM authored Sep 24, 2024
2 parents 7f67375 + 835ede0 commit ce4d40f
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 @@ -316,6 +317,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
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
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 @@ -105,6 +105,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
ELSE IF "${PRODUCT}" == "ODH"
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_NAME} Open Data Hub Operator
Expand All @@ -116,6 +117,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
END

Gather Release Attributes From DSC And DSCI
Expand Down

0 comments on commit ce4d40f

Please sign in to comment.