Skip to content

Commit 2a9228e

Browse files
follow up cleanup after SupportPodPidLimits GA
1 parent 54df1fd commit 2a9228e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

staging/src/k8s.io/kubelet/config/v1beta1/types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,6 @@ type KubeletConfiguration struct {
482482
// +optional
483483
PodCIDR string `json:"podCIDR,omitempty"`
484484
// PodPidsLimit is the maximum number of pids in any pod.
485-
// Requires the SupportPodPidsLimit feature gate to be enabled.
486485
// Dynamic Kubelet Config (beta): If dynamically updating this field, consider that
487486
// lowering it may prevent container processes from forking after the change.
488487
// Default: -1

test/e2e_node/pids_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,8 @@ func runPodPidsLimitTests(f *framework.Framework) {
120120
// Serial because the test updates kubelet configuration.
121121
var _ = SIGDescribe("PodPidsLimit [Serial]", func() {
122122
f := framework.NewDefaultFramework("pids-limit-test")
123-
ginkgo.Context("With config updated with pids feature enabled", func() {
123+
ginkgo.Context("With config updated with pids limits", func() {
124124
tempSetCurrentKubeletConfig(f, func(initialConfig *kubeletconfig.KubeletConfiguration) {
125-
if initialConfig.FeatureGates == nil {
126-
initialConfig.FeatureGates = make(map[string]bool)
127-
}
128125
initialConfig.PodPidsLimit = int64(1024)
129126
})
130127
runPodPidsLimitTests(f)

0 commit comments

Comments
 (0)