application icon indicating copy to clipboard operation
application copied to clipboard

Adds Jobs feature to the chart.

Open jeremyzahner opened this issue 10 months ago • 3 comments

Hey folks. Thank you very much for maintaining this awesome chart!

This PR introduces the possibility of adding Jobs as part of the deployments.

The use case for this is quite simply to be able to utilize helm hooks for deployments (ie. for database migrations).

Currently, the implementation is very generic and could be used for any kind of purpose alongside the deployment (or CronJob). There is an alternative solution to this that I would also consider (and am happy to provide): Instead of making it very generic (and therefore flexible) we could add a "initJob" config tree to the deployment itself that would come preconfigured. There we would mirror the deployment configuration and behavior (env and such) to make it very simple to execute a helm hook.

Let me know what you think!

jeremyzahner avatar Apr 11 '24 12:04 jeremyzahner

PS: The build seems to fail for different reasons.

jeremyzahner avatar Apr 11 '24 14:04 jeremyzahner

@karl-johan-grahn plz check why is this pipeline failing

rasheedamir avatar Apr 21 '24 19:04 rasheedamir

@aslafy-z can you review it?

rasheedamir avatar Apr 21 '24 19:04 rasheedamir

@jeremyzahner validation successful`

github-actions[bot] avatar May 09 '24 10:05 github-actions[bot]

Looks good to me. Can you add a commit with commit message #minor and update the CHANGELOG as well? @jeremyzahner

AsfaMumtaz avatar May 10 '24 09:05 AsfaMumtaz

Hello @jeremyzahner @AsfaMumtaz! thank's for greatest helm chart and PR request for Job. Do you plan merge it to master and release new version?

How can I help you with this PR?

I would like to use Job feature in my k8s cluster. Ofc I can cherry-pick this PR to my existing chart, but prefer to use release version)

SanchosPancho avatar Jun 04 '24 10:06 SanchosPancho

@jeremyzahner like @AsfaMumtaz requested, can you add a commit with commit message #minor and update the CHANGELOG as well? @SanchosPancho if we don't get a reply, would it be possible for you to update the forked repo?

karl-johan-grahn avatar Jun 11 '24 13:06 karl-johan-grahn

@karl-johan-grahn @rasheedamir sorry guys. Ill have a look now.

jeremyzahner avatar Jun 11 '24 14:06 jeremyzahner

@karl-johan-grahn @AsfaMumtaz I've just updated the branch. I hope this is what you expected.

jeremyzahner avatar Jun 18 '24 08:06 jeremyzahner

@karl-johan-grahn @rasheedamir @AsfaMumtaz any chance to get this merged and released?

jeremyzahner avatar Jul 04 '24 07:07 jeremyzahner

@karl-johan-grahn @rasheedamir @AsfaMumtaz any chance to get this merged and released?

Merged.

AsfaMumtaz avatar Jul 12 '24 07:07 AsfaMumtaz