Open IngwiePhoenix opened 3 weeks ago
This is a common problem with OLM(v0!) If you want to uninstall the operator, you need to delete more than the subscription. There is an operator
API that can tell you all of the objects associated with an installed operator. I can't remember the exact naming scheme of the object, but iirc, it is something like <namespace>.<packageName>
.
If you look in the status of that object it should tell you everything you need to delete.
Shameless plug: the Operator Framework maintainers have been hard at work on OLMv1, which is a complete rewrite of OLM that solves this exact problem (and many others!)
We talked about what's new last week at KubeCon! I encourage you to check this out and keep with with what we're doing in the Kubernetes #olm-dev slack channel
https://www.youtube.com/watch?v=V0NYHt2yjcM&list=PLj6h78yzYM2Pw4mRw4S-1p_xLARMqPkA7&index=286
Type of question
General operator-related help
Question
What did you do?
At some point, I installed - well, "subscribed to" - the
redis-operator
. But I removed it; I found usingolm
just to install some operators a little too cumbersome for what I do or want to do and instead switched to using Helm charts.But uhm... how do I put it...
So yeah, corpse. o.o
What did you expect to see?
Once I removed the subscription - and that has worked with other operators I tried - I expected the Redis operator to disappear from my cluster.
What did you see instead? Under which circumstances?
The log output from above, since... weeks. I had to reboot my cluster a few times as I had to shrink it down (hardware damage on the other nodes, loss of quorum, reset of etcd, etc...) but this has been going on since a long, long time now - even before my other nodes went away.
Environment
Operator type:
/language go (I think?)
Kubernetes cluster type:
k3s 1.29.5, which, as far as I am aware, is vanilla.
$ operator-sdk version
(When checking with
operator-sdk.exe olm status
, it requests versionv0.28.0
.)$ go version
(if language is Go)$ kubectl version
Additional context
I stumbled over the Operator SDK and will probably learn it at some point. Right now, I mainly keep it in my cluster for TektonCI and CNPG. So, I haven't gone deep-dive on it to be completely honest... I'm just a dude that hosts things at home. =)