-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Allows custom job templates on helm chart #322
Conversation
Can you share an example of using this? It seems like the user experience would not really be great from a helm-chart perspective as you'd have to ensure the file is available. |
Sure! In our deployment, we're setting apiVersion: batch/v1
kind: Job
spec:
template:
spec:
containers:
- name: flow
envFrom:
- secretRef:
name: gcp-credentials This allows us to set many environment variables from existing secrets in our different namespaces, which eases management of dev/staging/prod environments. |
Perhaps we should name it "jobTemplateFilePath" or something instead in |
That makes sense |
#323 will resolve the CI failures |
@gabriel-milan I don't have permission to update your branch |
That's weird. I've enabled the |
@gabriel-milan that works! If this passes CI I'll get it into #324 |
Summary
This allows setting a custom job template directly on the
values.yaml
file.Importance
In our use case, the only thing we needed to do was to set environment variables for all our jobs using
envFrom
. With this change (tested and working for us) it allows us to change the job template directly on thevalues.yaml
file, making it much easier to manage.Checklist
This PR:
changes/
directory (wip)