Skip to content

Commit

Permalink
Add support to uninstall odh-buightly operator (red-hat-data-services…
Browse files Browse the repository at this point in the history
…#914)

Signed-off-by: Tarun Kumar <[email protected]>
  • Loading branch information
tarukumar authored and Shilpa Chugh committed Nov 27, 2023
1 parent a288242 commit ae482ab
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
*** Keywords ***
Is RHODS Installed
IF "${cluster_type}" == "selfmanaged"
${result}= Run Keyword And Return Status
... Run Keywords
... Oc Get kind=OdhDashboardConfig namespace=redhat-ods-applications AND
... Oc Get kind=Namespace field_selector=metadata.name=redhat-ods-monitoring AND
... Oc Get kind=Namespace field_selector=metadata.name=redhat-ods-applications AND
... Oc Get kind=Namespace field_selector=metadata.name=redhat-ods-operator AND
... Oc Get kind=CatalogSource namespace=openshift-marketplace
... field_selector=metadata.name=redhat-operators
IF "${UPDATE_CHANNEL}" == "odh-nightlies"
${result}= Run Keyword And Return Status
... Run Keywords
... Oc Get kind=OdhDashboardConfig namespace=opendatahub AND
... Oc Get kind=Namespace field_selector=metadata.name=redhat-ods-operator AND
... Oc Get kind=CatalogSource namespace=openshift-marketplace
... field_selector=metadata.name=redhat-operators
ELSE
${result}= Run Keyword And Return Status
... Run Keywords
... Oc Get kind=OdhDashboardConfig namespace=redhat-ods-applications AND
... Oc Get kind=Namespace field_selector=metadata.name=redhat-ods-monitoring AND
... Oc Get kind=Namespace field_selector=metadata.name=redhat-ods-applications AND
... Oc Get kind=Namespace field_selector=metadata.name=redhat-ods-operator AND
... Oc Get kind=CatalogSource namespace=openshift-marketplace
... field_selector=metadata.name=redhat-operators
END
ELSE IF "${cluster_type}" == "managed"
${result}= Run Keyword And Return Status
... Run Keywords
Expand Down
3 changes: 1 addition & 2 deletions ods_ci/tasks/Tasks/rhods_olm.robot
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ ${RHODS_OSD_INSTALL_REPO} None
@{SUPPORTED_TEST_ENV} AWS GCP PSI
${TEST_ENV} AWS
${INSTALL_TYPE} OperatorHub
${UPDATE_CHANNEL} beta
${UPDATE_CHANNEL} odh-nightlies
${OLM_DIR} rhodsolm

*** Tasks ***
Can Install RHODS Operator
[Tags] install
Expand Down

0 comments on commit ae482ab

Please sign in to comment.