helm-kubernetes-services icon indicating copy to clipboard operation
helm-kubernetes-services copied to clipboard

Add support for Chart Hooks

Open melhin opened this issue 2 years ago • 5 comments

Is there a way to define cronjobs in this setup. also we have some pre-install preupgrade jobs that we would like to run is there a mechanism for that ?

Are these features in pipeline or they already available and Im not able to find them ?

melhin avatar Jan 12 '22 09:01 melhin

Is there a way to define cronjobs in this setup.

The k8s-service chart's main function is deploying application containers with a Deployment resource. I think a CronJob would call for a separate chart. We don't currently have plans for that.

pre-install preupgrade jobs that we would like to run

I assume you're referring to Chart Hooks. We don't currently support those. While it's a valid feature request, we probably have to triage this first. There are multiple things to consider:

  • Which resources types would we support (Job, Pod, ConfigMap, Secret)?
  • Would we limit the amount of resources to one or allow multiple?

autero1 avatar Jan 12 '22 16:01 autero1

Thank you for the reply @autero1 👍🏾 .

Just out of curiosity is there a particular reason for not supporting CronJob charts in k8s ?

melhin avatar Jan 13 '22 09:01 melhin

I would say that time is the biggest limiting factor 😃 . We have an issue for supporting Job resources and haven't really had time to prioritize working on it.

autero1 avatar Jan 13 '22 20:01 autero1

Thank you for the reply @autero1 . I completely understand

melhin avatar Jan 14 '22 08:01 melhin

Converting this issue to track the feature request for Chart Hooks support. We'll track CronJob support in https://github.com/gruntwork-io/helm-kubernetes-services/issues/24.

rhoboat avatar Apr 12 '22 19:04 rhoboat