-
Notifications
You must be signed in to change notification settings - Fork 136
[api, lineage] Tolerate all taints #1781
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
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughBoth Kubernetes pod templates are updated to use Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (2)packages/system/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.yaml📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @nbykov0, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the resilience and deployment flexibility of the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request aims to make cozystack-api and lineage-webhook tolerate all taints by adding a generic toleration. While the change for cozystack-api is correct, the modification to lineage-controller-webhook introduces a duplicate tolerations key in the YAML manifest. This will cause the new toleration to be ignored, defeating the purpose of the change. I've left a comment with details on how to fix this critical issue.
packages/system/lineage-controller-webhook/templates/daemonset.yaml
Outdated
Show resolved
Hide resolved
e885aa4 to
93ce00c
Compare
Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com>
Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com>
93ce00c to
4e602fd
Compare
| tolerations: | ||
| - operator: Exists |
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.
This will tolerate nodes with unconfigured network, however it won't start pod until CNI is ready.
Then it seems ok
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.
In our case it will be handled by helmreleases dependencies, when first of all cilium and kube-ovn are deployed and up.
kvaps
left a comment
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.
Is there any reason to backport this?
I'll DM you. |
kvaps
left a comment
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.
LGTM
|
Successfully created backport PR for |
# Description Backport of #1781 to `release-0.39`.
## What this PR does Cozystack-api and lineage-webhook tolerate all taints, so they are able to run on masters no matter what. Needed for unschedulable control-plane setup, quorum nodes, etc. ### Release note ```release-note Cozystack-api and lineage-webhook tolerate all taints. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated pod scheduling tolerations to improve deployment flexibility and compatibility across diverse cluster configurations. * Enhanced workload distribution by making pods more resilient to cluster taints, enabling better resource utilization in various environments. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What this PR does Cozystack-api and lineage-webhook tolerate all taints, so they are able to run on masters no matter what. Needed for unschedulable control-plane setup, quorum nodes, etc. ### Release note ```release-note Cozystack-api and lineage-webhook tolerate all taints. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated pod scheduling tolerations to improve deployment flexibility and compatibility across diverse cluster configurations. * Enhanced workload distribution by making pods more resilient to cluster taints, enabling better resource utilization in various environments. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What this PR does Cozystack-api and lineage-webhook tolerate all taints, so they are able to run on masters no matter what. Needed for unschedulable control-plane setup, quorum nodes, etc. ### Release note ```release-note Cozystack-api and lineage-webhook tolerate all taints. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated pod scheduling tolerations to improve deployment flexibility and compatibility across diverse cluster configurations. * Enhanced workload distribution by making pods more resilient to cluster taints, enabling better resource utilization in various environments. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
What this PR does
Cozystack-api and lineage-webhook tolerate all taints, so they are able to run on masters no matter what.
Needed for unschedulable control-plane setup, quorum nodes, etc.
Release note
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.