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

Set RC's pod template TerminationGracePeriodSeconds to 0 in test-cmd.sh test data #21793

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

janetkuo
Copy link
Member

Fixes #21716

Set pods' TerminationGracePeriodSeconds to 0 so that it'll be deleted immediately by kubectl delete to prevent test flake.

cc @kubernetes/kubectl @kubernetes/goog-csi

@janetkuo janetkuo added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. team/ux kind/flake Categorizes issue or PR as related to a flaky test. labels Feb 23, 2016
@k8s-github-robot
Copy link

Labelling this PR as size/M

@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 23, 2016
app: guestbook
tier: frontend
spec:
terminationGracePeriodSeconds: 0
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a comment about why this is set?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@k8s-bot
Copy link

k8s-bot commented Feb 23, 2016

GCE e2e build/test failed for commit 54540105f438a21535b621f874cb97ceec4317dc.

@janetkuo janetkuo force-pushed the test-cmd-delete-flake branch from 5454010 to dbfb6c0 Compare February 23, 2016 22:26
@janetkuo
Copy link
Member Author

Per in-person discussion with @caesarxuchao, podtemplate.metadata.deletionGracePeriodSeconds should be set to zero instead.

@k8s-bot
Copy link

k8s-bot commented Feb 23, 2016

GCE e2e test build/test passed for commit dbfb6c0.

@janetkuo
Copy link
Member Author

@k8s-bot unit test this issue: #21451

@janetkuo
Copy link
Member Author

Per in-person discussion with @caesarxuchao, podtemplate.metadata.deletionGracePeriodSeconds should be set to zero instead.

No, per in-person discussion with @bgrant0607, we should stay with setting template.spec.terminationGracePeriodSeconds.

@bgrant0607
Copy link
Member

template.spec.terminationGracePeriodSeconds is correct

@bgrant0607
Copy link
Member

LGTM

@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 24, 2016
@caesarxuchao
Copy link
Member

Thanks @bgrant0607.

@bgrant0607
Copy link
Member

Merging

bgrant0607 added a commit that referenced this pull request Feb 24, 2016
Set RC's pod template TerminationGracePeriodSeconds to 0 in test-cmd.sh test data
@bgrant0607 bgrant0607 merged commit 9403f95 into kubernetes:master Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/app-lifecycle kind/flake Categorizes issue or PR as related to a flaky test. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants