mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
follow up cleanup after SupportPodPidLimits GA
This commit is contained in:
parent
54df1fdc90
commit
2a9228eb3c
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user