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

[JENKINS-60537] Sanitize label #677

Merged
merged 3 commits into from
Jan 9, 2020
Merged

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Jan 8, 2020

JENKINS-60537

Should fix behaviour when using multiple labels on a single pod template.

For a pod template with the labels label1 label2, the pod will be labeled jenkins/label=label1_label2, since spaces are not allowed in kubernetes labels values.

Amends #666

@Vlatombe Vlatombe requested a review from jglick January 9, 2020 08:33
@Vlatombe Vlatombe added the bug Bug Fixes label Jan 9, 2020
* Add a unit test for sanitizeLabel
* Assert the node bears the given labels
@Vlatombe Vlatombe merged commit bd0b85f into jenkinsci:master Jan 9, 2020
@Vlatombe Vlatombe deleted the JENKINS-60537 branch January 9, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants