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

docs: clarify eviction-max-pod-grace-period behavior with negative values #1

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

FabianIMV
Copy link
Owner

What type of PR is this?

/kind documentation

What this PR does / why we need it

This PR updates the documentation for the eviction-max-pod-grace-period parameter to accurately reflect its current behavior. The existing documentation suggested that negative values would defer to the pod's specified grace period, but in practice, this is not the case.

Changes made

  • Updated the parameter description to accurately describe the current behavior
  • Added a note clarifying that negative values result in immediate termination
  • Maintained the original description of the primary functionality

Special notes for reviewers

The change is focused on aligning documentation with actual implementation behavior, as discussed in the original issue.

Fixes kubernetes#118172

AxeZhan and others added 2 commits November 22, 2024 09:10
Previously, ValidateNodeSelector did not check that labels are valid. Now it
does for resource.k8s.io, regardless whether an object already was created with
invalid labels in an earlier Kubernetes release. Theoretically this is a
breaking change and could cause problems during an upgrade, but that is highly
unlikely in practice.

In contrast to node affinity, DRA does not ignore parse errors
(= uses NewNodeSelector, not NewLazyErrorNodeSelector), so invalid labels would
have been found instead of being silently ignored.

Even if some object has invalid labels, this only affects an alpha -> beta
upgrade which isn't guaranteed to work seamlessly.
@FabianIMV FabianIMV merged commit b5649df into FabianIMV:master Nov 25, 2024
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.

kubelet parameter(eviction-max-pod-grace-period ), not work as expected like officical comment.
3 participants