Skip to content

Commit

Permalink
Merge pull request #2361 from rphillips/fixes/image_fs_resource
Browse files Browse the repository at this point in the history
Bug 1915235: add imagefs.inodesFree to resourceFields
  • Loading branch information
openshift-merge-robot committed Jan 25, 2021
2 parents 1307221 + 2bbb9ef commit d77d5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/kubelet-config/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func validateUserKubeletConfig(cfg *mcfgv1.KubeletConfig) error {
}
}

resourceFields := []string{"memory.available", "nodefs.available", "nodefs.inodesFree", "imagefs.available"}
resourceFields := []string{"memory.available", "nodefs.available", "nodefs.inodesFree", "imagefs.available", "imagefs.inodesFree", "pid.available"}

if kcDecoded.EvictionSoft != nil && len(kcDecoded.EvictionSoft) > 0 {
if kcDecoded.EvictionSoftGracePeriod == nil || len(kcDecoded.EvictionSoftGracePeriod) == 0 {
Expand Down

0 comments on commit d77d5f3

Please sign in to comment.