mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Merge pull request #134225 from jsafrane/fix-selinux-test-event
Fix SELinux e2e tests waiting for "container created" event
This commit is contained in:
commit
ad4a8a7e8a
1 changed files with 2 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ var _ = utils.SIGDescribe("CSI Mock selinux on mount", func() {
|
|||
} else {
|
||||
// There is nothing blocking the second pod from starting, wait for the second pod to fullly start.
|
||||
reason = string(events.StartedContainer)
|
||||
msg = "Started container"
|
||||
msg = "" // the message has changed in Kubernetes 1.35, the Reason must be enough.
|
||||
}
|
||||
}
|
||||
eventSelector := fields.Set{
|
||||
|
|
@ -361,6 +361,7 @@ var _ = utils.SIGDescribe("CSI Mock selinux on mount", func() {
|
|||
"involvedObject.name": pod2.Name,
|
||||
"involvedObject.namespace": pod2.Namespace,
|
||||
"reason": reason,
|
||||
"source": "kubelet",
|
||||
}.AsSelector().String()
|
||||
err = e2eevents.WaitTimeoutForEvent(ctx, m.cs, pod2.Namespace, eventSelector, msg, f.Timeouts.PodStart)
|
||||
framework.ExpectNoError(err, "waiting for event %q in the second test pod", msg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue