@@ -21,20 +21,17 @@ Uninstalling RHODS Operator
21
21
... Uninstall RHODS
22
22
23
23
Uninstall RHODS
24
- ${new_operator } = Is RHODS Version Greater Or Equal Than 2.0.0
25
- IF "${cluster_type } " == "managed" and ${new_operator } == $False
24
+ IF "${cluster_type } " == "managed"
26
25
Uninstall RHODS In OSD
27
- ELSE IF "${cluster_type } " == "selfmanaged" and ${ new_operator } == $False
26
+ ELSE IF "${cluster_type } " == "selfmanaged"
28
27
Uninstall RHODS In Self Managed Cluster
29
- ELSE IF ${new_operator }
30
- Uninstall RHODS V2
31
28
ELSE
32
29
Fail Kindly provide supported cluster type
33
30
END
34
31
35
32
Uninstall RHODS In OSD
36
33
Clone OLM Install Repo
37
- ${return_code } ${output } Run And Return Rc And Output cd ${EXECDIR } /${OLM_DIR } && ./cleanup.sh -t addon #robocop:disable
34
+ ${return_code } ${output } Run And Return Rc And Output cd ${EXECDIR } /${OLM_DIR } && ./cleanup.sh -t addon -k #robocop:disable
38
35
Should Be Equal As Integers ${return_code } 0 msg=Error detected while un-installing RHODS
39
36
Log To Console ${output }
40
37
@@ -45,7 +42,7 @@ Uninstall RHODS In Self Managed Cluster
45
42
ELSE IF "${INSTALL_TYPE } " == "OperatorHub"
46
43
Uninstall RHODS In Self Managed Cluster For Operatorhub
47
44
ELSE
48
- FAIL Provided install type is not supported
45
+ FAIL Provided install type is not supported
49
46
END
50
47
51
48
RHODS Operator Should Be Uninstalled
@@ -55,7 +52,7 @@ RHODS Operator Should Be Uninstalled
55
52
Uninstall RHODS In Self Managed Cluster Using CLI
56
53
[Documentation] UnInstall rhods on self-managedcluster using cli
57
54
Clone OLM Install Repo
58
- ${return_code } Run and Watch Command cd ${EXECDIR } /${OLM_DIR } && ./cleanup.sh -t operator timeout=10 min
55
+ ${return_code } Run and Watch Command cd ${EXECDIR } /${OLM_DIR } && ./cleanup.sh -t operator -k timeout=10 min
59
56
Should Be Equal As Integers ${return_code } 0 msg=Error detected while un-installing RHODS
60
57
61
58
Uninstall RHODS In Self Managed Cluster For Operatorhub
@@ -69,57 +66,6 @@ Uninstall RHODS In Self Managed Cluster For Operatorhub
69
66
Verify Project Does Not Exists ${NOTEBOOKS_NAMESPACE }
70
67
${return_code } ${output } Run And Return Rc And Output oc delete namespace ${OPERATOR_NAMESPACE }
71
68
72
- Uninstall RHODS V2
73
- [Documentation] Keyword to uninstall the version 2 of the RHODS operator in Self-Managed
74
- Log To Console message=Deleting DSC CR From Cluster
75
- ${return_code } ${output } Run And Return Rc And Output
76
- ... oc get DataScienceCluster --all-namespaces -o custom-columns=:metadata.name --ignore-not-found | xargs -I {} oc patch DataScienceCluster {} --type=merge -p '{"metadata": {"finalizers":null}}' || true #robocop:disable
77
- ${return_code } ${output } Run And Return Rc And Output
78
- ... oc delete datasciencecluster --all --ignore-not-found
79
- Should Be Equal As Integers ${return_code } 0 msg=Error deleting DataScienceCluster CR
80
- Log To Console message=Deleting DSCi CR From Cluster
81
- ${return_code } ${output } Run And Return Rc And Output
82
- ... oc get DSCInitialization --all-namespaces -o custom-columns=:metadata.name --ignore-not-found | xargs -I {} oc patch DSCInitialization {} --type=merge -p '{"metadata": {"finalizers":null}}' || true #robocop:disable
83
- ${return_code } ${output } Run And Return Rc And Output
84
- ... oc delete dscinitialization --all --ignore-not-found
85
- Should Be Equal As Integers ${return_code } 0 msg=Error deleting DSCInitialization CR
86
- Log To Console message=Deleting Operator Subscription From Cluster
87
- ${return_code } ${subscription_name } Run And Return Rc And Output
88
- ... oc get subscription -n ${OPERATOR_NAMESPACE } --no-headers | awk '{print $1}'
89
- IF "${return_code } " == "0 " and "${subscription_name } " != "${EMPTY } "
90
- ${return_code } ${csv_name } Run And Return Rc And Output
91
- ... oc get subscription ${subscription_name } -n ${OPERATOR_NAMESPACE } -ojson | jq '.status.currentCSV' | tr -d '"'
92
- IF "${return_code } " == "0 " and "${csv_name } " != "${EMPTY } "
93
- ${return_code } ${output } Run And Return Rc And Output
94
- ... oc delete clusterserviceversion ${csv_name } -n ${OPERATOR_NAMESPACE } --ignore-not-found
95
- Should Be Equal As Integers ${return_code } 0 msg=Error deleting RHODS CSV ${csv_name }
96
- END
97
- ${return_code } ${output } Run And Return Rc And Output
98
- ... oc delete subscription ${subscription_name } -n ${OPERATOR_NAMESPACE } --ignore-not-found
99
- Should Be Equal As Integers ${return_code } 0 msg=Error deleting RHODS subscription
100
- END
101
- Log To Console message=Deleting Operator CSV From Cluster
102
- ${return_code } ${output } Run And Return Rc And Output
103
- ... oc delete clusterserviceversion opendatahub-operator.1.18.0 -n openshift-operators --ignore-not-found
104
- Log To Console message=Deleting Operator Catalog From Cluster
105
- ${return_code } ${output } Run And Return Rc And Output
106
- ... oc delete CatalogSource rhoai-catalog-dev -n openshift-marketplace --ignore-not-found # robocop: disable
107
- ${return_code } ${output } Run And Return Rc And Output
108
- ... oc delete CatalogSource addon-managed-odh-catalog -n openshift-marketplace --ignore-not-found # robocop: disable
109
- Log To Console message=Deleting Operator Group From Cluster
110
- ${return_code } ${output } Run And Return Rc And Output
111
- ... oc delete operatorgroup --all -n ${OPERATOR_NAMESPACE } --ignore-not-found
112
- Should Be Equal As Integers ${return_code } 0 msg=Error deleting operatorgroup
113
- Log To Console message=Deleting Operator and it's associate namepsace
114
- ${return_code } ${output } Run And Return Rc And Output oc delete ns -l opendatahub.io/generated-namespace --ignore-not-found
115
- Verify Project Does Not Exists ${APPLICATIONS_NAMESPACE }
116
- Verify Project Does Not Exists ${MONITORING_NAMESPACE }
117
- Verify Project Does Not Exists ${NOTEBOOKS_NAMESPACE }
118
- IF "${OPERATOR_NAMESPACE } " != "openshift-marketplace"
119
- ${return_code } ${output } Run And Return Rc And Output oc delete namespace ${OPERATOR_NAMESPACE } --ignore-not-found
120
- Verify Project Does Not Exists ${OPERATOR_NAMESPACE }
121
- END
122
-
123
69
Uninstall Service Mesh Operator CLI
124
70
[Documentation] Keyword to uninstall the Service Mesh Operator
125
71
Log To Console message=Deleting ServiceMeshControlPlane CR From Cluster
0 commit comments