Skip to content

Commit f8cc9c9

Browse files
authored
Merge pull request kubernetes#130858 from dims/trying-to-fix-provider-kubelet_config_dir_test
Fix kubelet_config_dir_test after KubeletServiceAccountTokenForCredentialProviders was added
2 parents 2cb9e77 + 410dc1d commit f8cc9c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/e2e_node/kubelet_config_dir_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ shutdownGracePeriodByPodPriority:
118118
- priority: 6
119119
shutdownGracePeriodSeconds: 30
120120
featureGates:
121+
KubeletServiceAccountTokenForCredentialProviders: true
121122
PodAndContainerStatsFromCRI: false
122123
DynamicResourceAllocation: true`)
123124
framework.ExpectNoError(os.WriteFile(filepath.Join(configDir, "20-kubelet.conf"), contents, 0755))
@@ -163,7 +164,11 @@ featureGates:
163164
},
164165
}
165166
// This covers the case where the fields within the map are overridden.
166-
overrides := map[string]bool{"PodAndContainerStatsFromCRI": false, "DynamicResourceAllocation": true}
167+
overrides := map[string]bool{
168+
"PodAndContainerStatsFromCRI": false,
169+
"DynamicResourceAllocation": true,
170+
"KubeletServiceAccountTokenForCredentialProviders": true,
171+
}
167172
// In some CI jobs, `NodeSwap` is explicitly disabled as the images are cgroupv1 based,
168173
// so such flags should be picked up directly from the initial configuration
169174
if _, ok := initialConfig.FeatureGates["NodeSwap"]; ok {

0 commit comments

Comments
 (0)