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

feat: Allow configuring tolerations for the EG control plane installed via Helm #3587

Merged
merged 4 commits into from
Jun 12, 2024
Merged

feat: Allow configuring tolerations for the EG control plane installed via Helm #3587

merged 4 commits into from
Jun 12, 2024

Conversation

coro
Copy link
Contributor

@coro coro commented Jun 11, 2024

What this PR does / why we need it:

Allows the EG operator to be scheduled on nodes with taints. For example, in our cluster, we have a core set of control plane nodes with a NoSchedule taint. This PR allows the EG operator to be scheduled on those nodes.

Example Helm values.yaml:

deployment:
 pod:
  tolerations:
   - key: "custom.taint"
     operator: "Equal"
     value: "custom.value"

This PR also fixes some indentation in the topologySpreadConstraints field for the Deployment template - it was inconsistently indented with the rest of the generated manifest.

@coro coro requested a review from a team as a code owner June 11, 2024 13:43
@coro
Copy link
Contributor Author

coro commented Jun 11, 2024

Looks like there's a flake in one of the CI jobs:

error - 2024-06-11 13:57:51,299 -- Commit creating failed: {"detail":"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 329 seconds."}

Could a maintainer please rerun this test? Thanks!

@zirain
Copy link
Member

zirain commented Jun 11, 2024

Looks like there's a flake in one of the CI jobs:

error - 2024-06-11 13:57:51,299 -- Commit creating failed: {"detail":"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 329 seconds."}

Could a maintainer please rerun this test? Thanks!

you can reply with /retest to trigger.

BTW, can you add a test for this new feature?

@shawnh2
Copy link
Contributor

shawnh2 commented Jun 11, 2024

@coro
Copy link
Contributor Author

coro commented Jun 11, 2024

@zirain @shawnh2 Added tests, thanks for the pointer. Note I had to change the type of the topologySpreadConstraints as it was previously an object instead of a list.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.16%. Comparing base (242d69f) to head (83dee2d).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3587   +/-   ##
=======================================
  Coverage   68.16%   68.16%           
=======================================
  Files         168      168           
  Lines       20408    20408           
=======================================
  Hits        13912    13912           
  Misses       5494     5494           
  Partials     1002     1002           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coro
Copy link
Contributor Author

coro commented Jun 11, 2024

/retest

1 similar comment
@coro
Copy link
Contributor Author

coro commented Jun 11, 2024

/retest

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@arkodg arkodg requested review from a team June 11, 2024 17:04
Copy link
Contributor

@shawnh2 shawnh2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for adding this!

@zirain zirain merged commit 0abdda7 into envoyproxy:main Jun 12, 2024
28 checks passed
@coro coro deleted the operator-tolerations branch June 12, 2024 08:54
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.

4 participants