From 410dc1d654962d3206a16819da5bf4a3739addab Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Sun, 16 Mar 2025 18:38:23 -0400 Subject: [PATCH] Trying to fix kubelet_config_dir_test Signed-off-by: Davanum Srinivas --- test/e2e_node/kubelet_config_dir_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/e2e_node/kubelet_config_dir_test.go b/test/e2e_node/kubelet_config_dir_test.go index f6b8b8769e6..b1879852338 100644 --- a/test/e2e_node/kubelet_config_dir_test.go +++ b/test/e2e_node/kubelet_config_dir_test.go @@ -118,6 +118,7 @@ shutdownGracePeriodByPodPriority: - priority: 6 shutdownGracePeriodSeconds: 30 featureGates: + KubeletServiceAccountTokenForCredentialProviders: true PodAndContainerStatsFromCRI: false DynamicResourceAllocation: true`) framework.ExpectNoError(os.WriteFile(filepath.Join(configDir, "20-kubelet.conf"), contents, 0755)) @@ -163,7 +164,11 @@ featureGates: }, } // This covers the case where the fields within the map are overridden. - overrides := map[string]bool{"PodAndContainerStatsFromCRI": false, "DynamicResourceAllocation": true} + overrides := map[string]bool{ + "PodAndContainerStatsFromCRI": false, + "DynamicResourceAllocation": true, + "KubeletServiceAccountTokenForCredentialProviders": true, + } // In some CI jobs, `NodeSwap` is explicitly disabled as the images are cgroupv1 based, // so such flags should be picked up directly from the initial configuration if _, ok := initialConfig.FeatureGates["NodeSwap"]; ok {