follow up cleanup after SupportPodPidLimits GA

This commit is contained in:
Sergey Kanzhelev 2020-09-14 18:50:24 +00:00
parent 54df1fdc90
commit 2a9228eb3c
2 changed files with 1 additions and 5 deletions

View File

@ -482,7 +482,6 @@ type KubeletConfiguration struct {
// +optional
PodCIDR string `json:"podCIDR,omitempty"`
// PodPidsLimit is the maximum number of pids in any pod.
// Requires the SupportPodPidsLimit feature gate to be enabled.
// Dynamic Kubelet Config (beta): If dynamically updating this field, consider that
// lowering it may prevent container processes from forking after the change.
// Default: -1

View File

@ -120,11 +120,8 @@ func runPodPidsLimitTests(f *framework.Framework) {
// Serial because the test updates kubelet configuration.
var _ = SIGDescribe("PodPidsLimit [Serial]", func() {
f := framework.NewDefaultFramework("pids-limit-test")
ginkgo.Context("With config updated with pids feature enabled", func() {
ginkgo.Context("With config updated with pids limits", func() {
tempSetCurrentKubeletConfig(f, func(initialConfig *kubeletconfig.KubeletConfiguration) {
if initialConfig.FeatureGates == nil {
initialConfig.FeatureGates = make(map[string]bool)
}
initialConfig.PodPidsLimit = int64(1024)
})
runPodPidsLimitTests(f)