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

Adds nodeSelector, affinity and tolerations to the pre-delete hook Job #520

Merged
merged 3 commits into from
Jan 14, 2023

Conversation

georgekaz
Copy link
Contributor

make delete Job respect scheduling choices

Change log description

Makes the delete job respect node scheduling the same as the post install hooks do. Without this, it fails in a mixed windows/linux cluster.

Purpose of the change

Fixes #518
Fixes apache/solr-operator#382

What the code does

Adds a node selector to control pre-delete Job scheduling

How to verify it

Deploy and remove. See that it schedules where you expect it to.

@codecov
Copy link

codecov bot commented Dec 13, 2022

Codecov Report

Base: 85.12% // Head: 85.12% // No change to project coverage 👍

Coverage data is based on head (d06ac50) compared to base (66fcc71).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #520   +/-   ##
=======================================
  Coverage   85.12%   85.12%           
=======================================
  Files          12       12           
  Lines        1613     1613           
=======================================
  Hits         1373     1373           
  Misses        155      155           
  Partials       85       85           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: George Kaz <[email protected]>
@georgekaz georgekaz changed the title delete-job-scheduling Adds nodeSelector, affinity and tolerations to the pre-delete hook Job Dec 13, 2022
@anishakj anishakj requested a review from jkhalack January 13, 2023 18:40
Copy link
Contributor

@jkhalack jkhalack left a comment

Choose a reason for hiding this comment

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

One day we might want to split the hook and the operator settings (in case they would need to be different).

The current change LGTM, as it goes along with the other hook.

Copy link
Contributor

@anishakj anishakj left a comment

Choose a reason for hiding this comment

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

LGTM

@anishakj anishakj merged commit a4a345f into pravega:master Jan 14, 2023
@georgekaz georgekaz deleted the patch-1 branch January 17, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants