mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #135094 from stlaz/fix-node-conformance-failures
Fix failures in node-e2e image pull tests
This commit is contained in:
commit
dec78c833d
3 changed files with 5 additions and 3 deletions
|
|
@ -263,7 +263,7 @@ while true; do sleep 1; done
|
|||
ginkgo.BeforeEach(func(ctx context.Context) {
|
||||
var err error
|
||||
|
||||
registryAddress, _, err = e2eregistry.SetupRegistry(ctx, f, false)
|
||||
registryAddress, _, err = e2eregistry.SetupRegistry(ctx, f, true)
|
||||
framework.ExpectNoError(err)
|
||||
// we need to wait for the registry to be removed and so we need to delete the whole NS ourselves
|
||||
ginkgo.DeferCleanup(func(ctx context.Context) {
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ func User1DockerSecret(registryAddress string) *v1.Secret {
|
|||
return &v1.Secret{
|
||||
Type: v1.SecretTypeDockerConfigJson,
|
||||
Data: map[string][]byte{
|
||||
v1.DockerConfigJsonKey: fmt.Appendf(nil, dockerCredsFmt, "http://"+registryAddress, user1creds),
|
||||
v1.DockerConfigJsonKey: fmt.Appendf(nil, dockerCredsFmt, registryAddress, user1creds),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,13 +147,15 @@ var _ = SIGDescribe("Container Runtime Conformance Test", func() {
|
|||
|
||||
ginkgo.By("check the container status")
|
||||
var latestErr error
|
||||
err = wait.PollUntilContextCancel(ctx, node.ContainerStatusPollInterval, true, func(ctx context.Context) (bool, error) {
|
||||
err = wait.PollUntilContextTimeout(ctx, node.ContainerStatusPollInterval, node.ContainerStatusRetryTimeout, true, func(ctx context.Context) (bool, error) {
|
||||
if latestErr = checkContainerStatus(ctx); latestErr != nil {
|
||||
return false, nil
|
||||
}
|
||||
return true, nil
|
||||
})
|
||||
if err != nil {
|
||||
credsContent, readErr := os.ReadFile(configFile)
|
||||
framework.Logf("credentials read error: %v; credentials used:\n%v", readErr, credsContent)
|
||||
framework.Failf("Failed to read container status: %v; last observed error from wait loop: %v", err, latestErr)
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue