4 ms·
Yeah, I have used Nix to generate them in the past, which worked pretty great too. But Helm does, admittedly, solve a real problem: garbage collecting old resou
by Nullabillity 6y ago
Yeah, I have used Nix to generate them in the past, which worked pretty great too. But Helm does, admittedly, solve a real problem: garbage collecting old resources when they're deleted from the repo. I just wish we could have something much simpler that only did that...
- mkingston 6y ago`kubectl apply --prune` should nominally do this. Irritatingly (I acknowledge I'm almost as responsible as anyone else for doing something about this), it's had this disclaimer on it for quite some time now: > Alpha Disclaimer: the --prune functionality is not yet complete. Do not use unless you are aware of what the current state is. See ⟨https://issues.k8s.io/34274⟩ https://issues.k8s.io/34274⟩. I haven't used it in anger, so I can't add any disclaimer or otherwise of my own. kpt is the recent Google-ordained (AFAICT) solution to this problem, but is ot yet at v1. You could also resolve this yourself by either: * versioning with labels and deleting all resources with labels indicating older versions * using helm _only_ in the last mile, for pruning