https://garden.io logo
#🌱|help-and-getting-started
kubernetes Job dependency
k

kind-france-89777

01/20/2023, 1:26 AM
anyone doing anything with k8s Jobs in garden? specifically I'm trying to deploy a Job, and then have further services depend on that Job and not deploy until it's completed. unfortunately it looks like garden just waits for the Job to be deployed successfully and then immediately moves on to deploying the services that depend on it.
m

mammoth-flag-56137

01/20/2023, 6:07 AM
You may want to use a task instead
k

kind-france-89777

01/20/2023, 4:50 PM
good call, I wasn't even thinking about tasks since I currently only use local exec tasks
however I've run into an issue, it looks like the pod the task spins up to run the task doesn't run the initContainer
q

quaint-dress-831

01/23/2023, 1:42 PM
Hmm, what are you targeting in your task resource? https://docs.garden.io/reference/module-types/kubernetes#tasks-.resource