-
Notifications
You must be signed in to change notification settings - Fork 132
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
Update priority class logic #1473
Conversation
/assign @tmjd |
I can't see the errors in Semaphore due to a 404, I'm not sure if this is expected? |
Unfortunately I don't know there is anything I can do to open up Semaphore access. I think you should be able to get the errors if you ran |
Thanks @tmjd I'm unable to easily run |
Yeah the failures all look to be in |
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
@tmjd the tests should be fixed now. Are you happy with my other changes to the imports and deployment API, nothing was "broken" but the code in the render package should now be more consistent. |
I've been looking and the priority class changes look good. One thing that I'm checking with some colleagues on, is to see if they have a preference on the move to v1 for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you've already switched to corev1
, unless I misread the changes earlier.
Thank you @stevehipwell for this contribution. |
Thanks for the quick review @tmjd. I looked a bit further into the codebase as switched |
@tmjd I don't suppose there is a release date for the next version? Our clusters built with our new pattern that uses the tigera-operator are currently impacted by the low priority class on the calico-node daemonset. |
I'm not sure when the next release will be, there was a release recently and we have one at least once a quarter, so the longest would be 3 months. |
@tmjd I suspect that even with a split commit that this wouldn't be a candidate to be picked into the current release. Would it be possible to create a PR for the current release to use the new behaviour if an environment variable was set, and if so what would the release windows for something like that be? The back story of this is that we have a TF module to build EKS clusters, used for a large number of clusters, which installs the common components into a system node group with a high resource pressure from system components with |
Back porting a change and making it available through an env var or other config in a previous version is not something we would want to do. You can pick the changes into a branch based on the release you want to have updated and build an image and push it to docker hub then just switch the operator deployment you're using to use that image. @stevehipwell I know you said you can't run |
I thought that would be the case @tmjd. If I need an image I can create some tooling to build it, it's just that I'd rather not if at all possible. |
Description
Use the Kubernetes system priority classes,
system-node-critical
&system-cluster-critical
, for Calico pods so they have the highest possible priority.I've fixed the metadata API for deployments in the render package where it was incorrectly set to
v1
instead of the correctapps/v1
(this issue is also present in the controllers package). This was correctly set for some deployments but not all of them.I've also normalised the K8s imports in the render packages as there were warnings showing up about duplicate imports.
Fixes #1428.
For PR author
If changing pkg/apis/, runmake gen-files
If changing versions, runmake gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.