sustainable-computing-io / kepler-operator

Kepler Operator
Apache License 2.0
24 stars 26 forks source link

fix: improve operator name capture in uninstall script #358

Closed vprashar2929 closed 3 months ago

vprashar2929 commented 5 months ago

This PR updates the uninstall script for capturing the operator name. The previous method was not optimal and was prone to error in cases where the user uninstalled any previous operator using UI. oc get operators will still show the operator being present.

For eg:

oc get subs -A ; oc get operators                                                           
NAMESPACE             NAME                             PACKAGE                          SOURCE             CHANNEL
openshift-operators   cluster-observability-operator   cluster-observability-operator   redhat-operators   development
NAME                                                 AGE
cluster-observability-operator.openshift-operators   59m
kepler-operator.openshift-operators                  27m
power-monitoring-operator.openshift-operators        9h
vimalk78 commented 5 months ago

/lgtm