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

kubernetes: labels are applied to pod #3007

Merged
merged 1 commit into from
Oct 11, 2020
Merged

Conversation

dav009
Copy link
Contributor

@dav009 dav009 commented Oct 9, 2020

Description

Currently Labels are applied only at Kubernetes Job level. This means that the pods scheduled by a job have no labels.
Changes introduced in this PR makes pods get the same labels as those passed under @labels property

Motivation and Context

On cloud kubernetes sometimes it is is useful to give labels to pods, this is for example to let a pod assume a particular role

Have you tested this? If so, how?

  • added a dummy unit test
  • schedule tasks in our kubernetes, verified pods got expected labels

@dlstadther dlstadther merged commit cf2abbd into spotify:master Oct 11, 2020
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.

2 participants