3.5.2. CLI を使用した OpenShift Update Service Operator のアンインストール
OpenShift CLI (oc) を使用して、OpenShift Update Service Operator をアンインストールできます。
前提条件
- OpenShift Update Service アプリケーションがすべて削除されている。
手順
OpenShift Update Service Operator (例:
openshift-update-service) が含まれるプロジェクトに切り替えます。$ oc project openshift-update-service出力例
Now using project "openshift-update-service" on server "https://example.com:6443".OpenShift Update Service Operator Operator グループの名前を取得します。
$ oc get operatorgroup出力例
NAME AGE openshift-update-service-fprx2 4m41sOperator グループを削除します (例:
openshift-update-service-fprx2)。$ oc delete operatorgroup openshift-update-service-fprx2出力例
operatorgroup.operators.coreos.com "openshift-update-service-fprx2" deletedOpenShift Update Service Operator サブスクリプションの名前を取得します。
$ oc get subscription出力例
NAME PACKAGE SOURCE CHANNEL update-service-operator update-service-operator updateservice-index-catalog v1直前の手順で
Nameの値を使用して、currentCSVフィールドで、サブスクライブされた OpenShift Update Service Operator の現行バージョンを確認します。$ oc get subscription update-service-operator -o yaml | grep " currentCSV"出力例
currentCSV: update-service-operator.v0.0.1サブスクリプション (例:
update-service-operator) を削除します。$ oc delete subscription update-service-operator出力例
subscription.operators.coreos.com "update-service-operator" deleted直前の手順の
currentCSV値を使用し、OpenShift Update Service Operator の CSV を削除します。$ oc delete clusterserviceversion update-service-operator.v0.0.1出力例
clusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted