Skip to content
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

Include the forum job only if RUN_FORUM is set #526

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

fghaas
Copy link
Contributor

@fghaas fghaas commented Nov 17, 2021

When running tutor k8s we can disable the forum deployment and service by setting RUN_FORUM to false, but the corresponding job is added to jobs.yml unconditionally.

Add a conditional to tutor/templates/k8s/jobs.yml so that the forum job definition is only included when RUN_FORUM is true.

Fixes #525.

Copy link
Contributor

@regisb regisb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! This will be unnecessary soon, when the forum is pulled out of tutor core, but in the meantime we need this fix.

Can you just add an entry to the changelog?

When running "tutor k8s" we can disable the forum deployment and
service by setting RUN_FORUM to false, but the corresponding job is
added to jobs.yml unconditionally.

Add a conditional to tutor/templates/k8s/jobs.yml so that the forum
job definition is only included when RUN_FORUM is true.

Fixes overhangio#525.
@fghaas
Copy link
Contributor Author

fghaas commented Nov 18, 2021

Can you just add an entry to the changelog?

Sure, done.

@regisb regisb merged commit 0c3a160 into overhangio:master Nov 18, 2021
@regisb
Copy link
Contributor

regisb commented Nov 18, 2021

Thanks for the PR @fghaas!

@fghaas
Copy link
Contributor Author

fghaas commented Nov 18, 2021

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubernetes jobs.yml template ignores RUN_FORUM
2 participants