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

Don't provision nodes if there are no PodTemplates set to usage mode Normal #171

Merged
merged 1 commit into from
Jul 12, 2017

Conversation

enieuw
Copy link
Contributor

@enieuw enieuw commented Jun 29, 2017

This fixes an issue where if you only had PodTemplates defined that were set to usage mode Exclusive containers would get scheduled but Jenkins would be unable to schedule any jobs on them.

The Kubernetes plugin now returns false to canProvision() if it doesn't have any templates it can use and which can be used to schedule the requested workload.

@iocanel iocanel self-requested a review July 12, 2017 07:21
Copy link
Contributor

@iocanel iocanel left a comment

Choose a reason for hiding this comment

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

LGTM

@iocanel iocanel merged commit 2e4ed49 into jenkinsci:master Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants