Skip to content

Commit

Permalink
Merge branch 'master' into feature/Validate_ServiceMeshControlPlaneAl…
Browse files Browse the repository at this point in the history
…readyCreated
  • Loading branch information
asanzgom authored Sep 24, 2024
2 parents cc3559c + ce4d40f commit df37b0a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 17 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>

37 changes: 20 additions & 17 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 @@ -89,7 +90,12 @@ Verify RHODS Installation
IF "${UPDATE_CHANNEL}" == "odh-nightlies" or "${cluster_type}" != "managed"
IF "${PRODUCT}" == "ODH"
Apply DSCInitialization CustomResource dsci_name=${DSCI_NAME}
Wait For DSCInitialization CustomResource To Be Ready timeout=30
IF "${TEST_ENV.lower()}" == "crc"
${timeout_in_seconds} = Set Variable 180
ELSE
${timeout_in_seconds} = Set Variable 30
END
Wait For DSCInitialization CustomResource To Be Ready timeout=${timeout_in_seconds}
END
Apply DataScienceCluster CustomResource dsc_name=${DSC_NAME}
END
Expand Down Expand Up @@ -256,22 +262,14 @@ Create DSCInitialization CustomResource Using Test Variables
Run sed -i'' -e 's/<monitoring_namespace>/${MONITORING_NAMESPACE}/' ${file_path}dsci_apply.yml

Wait For DSCInitialization CustomResource To Be Ready
[Documentation] Wait for DSCInitialization CustomResource To Be Ready
[Arguments] ${timeout}
Log To Console Waiting for DSCInitialization CustomResource To Be Ready
${status} Set Variable False
FOR ${counter} IN RANGE ${timeout}
${return_code} ${output} = Run And Return Rc And Output oc get DSCInitialization --no-headers -o custom-columns=":status.phase"
IF '${output}' == 'Ready'
${status} = Set Variable True
Log To Console DSCInitialization CustomResource is Ready
BREAK
END
Sleep 1 sec
END
IF '${status}' == 'False'
Run Keyword And Continue On Failure FAIL Timeout- DSCInitialization CustomResource is not Ready
END
[Documentation] Wait ${timeout} seconds for DSCInitialization CustomResource To Be Ready
[Arguments] ${timeout}
Log To Console Waiting ${timeout} seconds for DSCInitialization CustomResource To Be Ready
${result} = Run Process oc wait DSCInitialization --timeout\=${timeout}s --for jsonpath\='{.status.phase}'\=Ready --all
... shell=true stderr=STDOUT
IF ${result.rc} != 0
Run Keyword And Continue On Failure FAIL ${result.stdout}
END

Apply DataScienceCluster CustomResource
[Documentation]
Expand Down Expand Up @@ -333,6 +331,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

Create DataScienceCluster CustomResource Using Custom Configuration
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_LABEL_SELECTOR} app.kubernetes.io/part-of=rhods-dashboard
Set Suite Variable ${APPLICATIONS_NAMESPACE} redhat-ods-applications
Set Suite Variable ${OPERATOR_SUBSCRIPTION_NAME} rhoai-operator-dev
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_DEPLOYMENT_NAME} opendatahub-operator-controller-manager
Expand All @@ -116,6 +117,7 @@ Assign Vars According To Product
Set Suite Variable ${DASHBOARD_LABEL_SELECTOR} app.kubernetes.io/part-of=dashboard
Set Suite Variable ${APPLICATIONS_NAMESPACE} opendatahub
Set Suite Variable ${OPERATOR_SUBSCRIPTION_NAME} rhoai-operator-dev
Set Suite Variable ${MODEL_REGISTRY_NAMESPACE} odh-model-registries
END

Gather Release Attributes From DSC And DSCI
Expand Down

0 comments on commit df37b0a

Please sign in to comment.