helmfile icon indicating copy to clipboard operation
helmfile copied to clipboard

postinstall hook

Open mumoshu opened this issue 3 years ago • 6 comments

Just wanted to have a dedicated issue for this.

Would anyone use it if Helmfile added a new postinstall hook?

It has been originally proposed by @cdunford in #1291. Althought I thought it was great, I had overwhelmed by all the works I had in Helmfile and forgot to discuss/implementing it.

mumoshu avatar Apr 24 '21 22:04 mumoshu

It will be nice to have postinstall in helmfile. I have a use case where I have to add a label to the namespace after the helm chart is installed, postinstall will come in handy in this case.

sandep121 avatar Jun 05 '21 06:06 sandep121

It would be good for Helmfile to support both preinstall and postinstall hook. Our use case is when we need to copy a K8S secret from one namespace/release to another namespace/release (in k8s you cannot share secrets across the namespaces), so it should be executed before installation of the second one.

anovikov-el avatar Jun 14 '21 08:06 anovikov-el

any update here?

anovikov-el avatar Jul 01 '21 07:07 anovikov-el

Another use-case for pre-install is that some managed k8s providers (e.g. EKS) provision clusters with some things pre-configured, like the default storage class. When we want to deploy a chart that provides other options and want to configure the default, we have to somehow unset the original default first (or in some cases, to just delete the existing one so we can move it into helm).

mitom avatar Aug 02 '21 10:08 mitom

I'd like to also express interested in preinstall hook in particular and also all helm hooks in general.

Use-Case: Similar to deleting default storage-class, I want/need to delete the default AWS-CNI before I can sync the custom configured one

philicious avatar Feb 25 '22 17:02 philicious

+1, it would be super useful!

rabbagliettiandrea avatar Jun 01 '23 14:06 rabbagliettiandrea