-
Notifications
You must be signed in to change notification settings - Fork 804
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
Add modern labels to pods controlled by deployments etc. #3596
Conversation
Oh there were plenty of resources bugged like this - oops |
Yup, I reviewed all of them :) |
Hmmm okay so this is the catch and why it wasnt done. We don't want to always restart pods just because we upgrade, and some labels added now will trigger a restart now no matter what - those with chart versions in them. I think chart and heritage shouldn't be added, either old/new version of those labels |
Yeah it makes sense. I will look into a way to have this working without having chart and heritage |
I'll refer to legacy and modern "match labels" below, with it I mean:
Note that I don't think pods should have the old I think currently we have a need for:
I think in the future, we'll have a need for specifying just the new match labels on With this in mind, I think practically, we should have one new helper function named for example like |
@samyuh I hope I didn't cause trouble pushing a commit without a heads up - I was worried I wouldn't find time to review future work in the near future and wanted to get this resolved. |
jupyterhub/zero-to-jupyterhub-k8s#3596 Merge pull request #3596 from samyuh/ft-fix
No worries! I'm a bit tied up this weekend and haven't had a chance to work on this yet. I really appreciate your help! Thanks again for taking the time to fix this! |
Some labels are missing in the pods, such as:
The issue occurred because 'jupyterhub.matchLabels' was imported instead of 'jupyterhub.labels'.
Closes #3595