From ad0a3de152ccbe47da58e7a2aa9ec9106544e0e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanislav=20L=C3=A1zni=C4=8Dka?= Date: Wed, 5 Nov 2025 15:32:18 +0100 Subject: [PATCH] node-conformance-e2e: restart the kubelet after loading credential config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stanislav Láznička --- test/e2e_node/runtime_conformance_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e_node/runtime_conformance_test.go b/test/e2e_node/runtime_conformance_test.go index 54938f3e118..0e96bd34b3b 100644 --- a/test/e2e_node/runtime_conformance_test.go +++ b/test/e2e_node/runtime_conformance_test.go @@ -76,7 +76,7 @@ var _ = SIGDescribe("Container Runtime Conformance Test", func() { }) }) - f.It(testCase.description+"", f.WithNodeConformance(), f.WithFlaky() /* https://github.com/kubernetes/kubernetes/issues/134998 */, func(ctx context.Context) { + f.It(testCase.description+"", f.WithNodeConformance(), f.WithSerial(), func(ctx context.Context) { name := "image-pull-test" container := node.ConformanceContainer{ PodClient: e2epod.NewPodClient(f), @@ -94,6 +94,10 @@ var _ = SIGDescribe("Container Runtime Conformance Test", func() { auth := e2eregistry.User1DockerSecret(registryAddress).Data[v1.DockerConfigJsonKey] configFile := filepath.Join(services.KubeletRootDirectory, "config.json") + + // the kubelet would cache the config for 5 minutes, let's restart instead + restartKubelet(context.Background(), true) + err := os.WriteFile(configFile, []byte(auth), 0644) framework.ExpectNoError(err) ginkgo.DeferCleanup(func() { framework.ExpectNoError(os.Remove(configFile)) })