logoalt Hacker News

supriyo-biswasyesterday at 5:53 PM3 repliesview on HN

How do you handle cleanups and hooks? The best way to do helm, at least for me, seems to be about limiting its use to simple templating use cases; if you end up needing an if, you've probably done something terribly wrong.


Replies

cassianolealyesterday at 9:18 PM

That's my main gripe with Helm.

For the simple use case you're describing, Helm is not required. Plenty of other solutions around.

For use cases where it starts getting useful, we both agree that something has gone terribly wrong.

I still don't know why Helm exists. It's a solution that created lots of problems that didn't exist.

arkerosyesterday at 7:16 PM

You can rely purely on kubectl with something like:

cat manifests.yaml | kubectl apply -f - --server-side --field-manager "$FIELD_MANAGER" --prune --applyset "$APPLYSET" --namespace "$NAMESPACE"

srcreighyesterday at 5:58 PM

Seems to be a case of the XY problem. What do you need cleanups and hooks for?

show 2 replies