-
Notifications
You must be signed in to change notification settings - Fork 443
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
patchStrategicMerge
doesn't work with jobs
#791
Comments
The fact that plugin developers cannot modify jobs is an issue. I believe that root of the problem is that jobs are loaded directly in Python, with We could resolve this issue by loading the job definitions from the output of
Do you think this would be a solution for you? If yes, would you like to open a PR or should I do it? That being said, I am fully aware that the way Tutor jobs are handled in k8s is awful. I wish we had a better solution. My problem is that I do not know what is the "right" way to run init tasks in k8s. Do you have an opinion @keithgg? |
Thanks @regisb. I don't have any sense of what the "right" way here is either, but I'm happy to implement your suggestion and look into alternative solutions. I'll schedule a task in my next sprint to do the PR. |
Hi @regisb
I couldn't think of a decent way to fix this, so I'm checking if you have given it any thought.
When creating a
patchStrategicMerge
for jobs (specifically the forum job) I get the following error:This is because tutor regenerates the jobs.yml file for every run.
You can find an example at our Grove plugin. This is just for illustration, what I'm actually trying to accomplish is add a
volumeMount
to the pod.To reproduce the error:
pip install --upgrade tutor[full] tutor config save pip install --upgrade git+https://gitlab.com/opencraft/dev/tutor-contrib-grove@keith/tutor-override-test tutor plugins enable grove tutor config save tutor k8s launch
The text was updated successfully, but these errors were encountered: