sustainable-computing-io / kepler-operator

Kepler Operator
Apache License 2.0
25 stars 26 forks source link

uninstall operator script is hard-coded to uninstall v0.5.0 only #244

Closed stleerh closed 11 months ago

stleerh commented 12 months ago

The hack/uninstall-operator.sh script is hard-coded to look for "v0.5.0". Therefore, if you have any other version of kepler installed, it will not find it, and hence won't be uninstalled. I am on the v1alpha1 branch.

vprashar2929 commented 12 months ago

Yes v0.5.0 is hardcoded but if you run uninstall-operator.sh on a cluster with version > 0.5.0 installed it shows you which version is currently available


   🔆🔆🔆  Resources of Kepler Operator - v0.5.0  🔆🔆🔆
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Error from server (NotFound): clusterserviceversions.operators.coreos.com "kepler-operator.v0.5.0" not found
 🔔 failed to find v0.5.0 of kepler-operator.
──────────────────────────────────────────────────
NAME                     DISPLAY   VERSION   REPLACES                 PHASE
kepler-operator.v0.8.0   Kepler    0.8.0     kepler-operator.v0.7.2   Succeeded
──────────────────────────────────────────────────
 🔔 kepler-operator version found are ☝️

Using this you can run ./hack/uninstall-operator.sh --version v0.8.0 --delete to remove the current available version

vprashar2929 commented 11 months ago

@stleerh We have updated(#248) the uninstall-operator.sh script to automatically find the version of the Kepler-operator that is installed on the cluster. Feel free to give it a go

sthaha commented 11 months ago

Closing this as fixed by #248