kubernetes/pkg/kubelet/kubeletconfig/util
Sohan Kunkerkar ee5578be52 cmd/kubelet: fix overriding default KubeletConfig fields in drop-in configs if not set
This commit resolves an issue where certain KubeletConfig fields, specifically:
- FileCheckFrequency
- VolumeStatsAggPeriod
- EvictionPressureTransitionPeriod
- Authorization.Mode
- EvictionHard
were inadvertently overridden when not explicitly set in drop-in configs. To retain the
original values if they were absent in the drop-in configs, mergeKubeletConfigurations
uses a JSON patch merge strategy to selectively merge configurations. It prevents essential
configuration settings from being overridden, ensuring a more predictable behavior for users.

Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
Co-authored-by: Peter Hunt <pehunt@redhat.com>
2023-11-03 17:48:29 -04:00
..
codec cmd/kubelet: fix overriding default KubeletConfig fields in drop-in configs if not set 2023-11-03 17:48:29 -04:00
files replace ioutil with os, update doc 2023-04-13 09:02:46 +08:00
test hack/update-bazel.sh 2021-02-28 15:17:29 -08:00