mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Merge pull request #13727 from jiangyaoguo/fix-reason-reporting-in-kubelet
Auto commit by PR queue bot
This commit is contained in:
@@ -1301,21 +1301,21 @@ func TestSyncPodWithPullPolicy(t *testing.T) {
|
||||
fakeDocker.Lock()
|
||||
|
||||
eventSet := []string{
|
||||
`pulling Pulling image "pod_infra_image"`,
|
||||
`pulled Successfully pulled image "pod_infra_image"`,
|
||||
`pulling Pulling image "pull_always_image"`,
|
||||
`pulled Successfully pulled image "pull_always_image"`,
|
||||
`pulling Pulling image "pull_if_not_present_image"`,
|
||||
`pulled Successfully pulled image "pull_if_not_present_image"`,
|
||||
`pulled Container image "existing_one" already present on machine`,
|
||||
`pulled Container image "want:latest" already present on machine`,
|
||||
`Pulling Pulling image "pod_infra_image"`,
|
||||
`Pulled Successfully pulled image "pod_infra_image"`,
|
||||
`Pulling Pulling image "pull_always_image"`,
|
||||
`Pulled Successfully pulled image "pull_always_image"`,
|
||||
`Pulling Pulling image "pull_if_not_present_image"`,
|
||||
`Pulled Successfully pulled image "pull_if_not_present_image"`,
|
||||
`Pulled Container image "existing_one" already present on machine`,
|
||||
`Pulled Container image "want:latest" already present on machine`,
|
||||
}
|
||||
|
||||
recorder := dm.recorder.(*record.FakeRecorder)
|
||||
|
||||
var actualEvents []string
|
||||
for _, ev := range recorder.Events {
|
||||
if strings.HasPrefix(ev, "pull") {
|
||||
if strings.HasPrefix(ev, "Pull") {
|
||||
actualEvents = append(actualEvents, ev)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user