Override terminationLivenessGracePeriod for probes

This commit is contained in:
Elana Hashman
2021-03-08 18:06:39 -08:00
parent c88512d34f
commit 9fb6e712ff
5 changed files with 43 additions and 10 deletions

View File

@@ -1002,9 +1002,10 @@ func getKillMapWithInitContainers(pod *v1.Pod, status *kubecontainer.PodStatus,
func verifyActions(t *testing.T, expected, actual *podActions, desc string) {
if actual.ContainersToKill != nil {
// Clear the message field since we don't need to verify the message.
// Clear the message and reason fields since we don't need to verify them.
for k, info := range actual.ContainersToKill {
info.message = ""
info.reason = ""
actual.ContainersToKill[k] = info
}
}