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

pod: remove default GracePeriod #909

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

ajaggapa
Copy link
Contributor

@ajaggapa ajaggapa commented Feb 1, 2025

PR ensures grace-period is not set to while terminating pod. But kubernetes uses GracePeriod defined in Pod Spec. However, TerminationGracePeriodSeconds in PodSpec is being set to 0 for all new pods defined with NewBuilder unless explicitly updated with WithTerminationGracePeriodSeconds

Hence, removing grace-period=0 in default pod definition.

@ajaggapa ajaggapa requested a review from kononovn as a code owner February 1, 2025 18:01
Copy link
Collaborator

@klaskosk klaskosk left a comment

Choose a reason for hiding this comment

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

/lgtm

@kononovn kononovn merged commit ddb5be7 into openshift-kni:main Feb 3, 2025
3 checks passed
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