kubernetes/cmd/kubelet/app
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
..
options Undeprecated kubelet cloud-provider flag 2023-10-19 11:32:34 -04:00
auth.go API Server Changes 2022-03-07 09:37:01 -05:00
init_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
init_windows_test.go [kubelet] Allow priority to be set for kubelet process on Windows 2020-11-03 01:18:59 +05:30
init_windows.go fix: Remove dependency on github.com/pkg/errors 2022-11-09 09:54:34 +08:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
plugins_providerless.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
plugins_providers.go Remove GA featuregate about CSIMigrationvSphere in 1.29 2023-10-17 20:44:50 +08:00
plugins.go removal of glusterfs in-tree driver code from the source 2022-09-13 20:11:50 +05:30
server_bootstrap_test.go replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
server_linux.go Log StructuredLog: spelling formatting 2022-04-26 17:04:06 +08:00
server_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
server_test.go cmd/kubelet: fix overriding default KubeletConfig fields in drop-in configs if not set 2023-11-03 17:48:29 -04:00
server_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
server_windows.go Fixing logic for kubelet permissions check on windows 2022-03-24 14:57:08 -07:00
server.go cmd/kubelet: fix overriding default KubeletConfig fields in drop-in configs if not set 2023-11-03 17:48:29 -04:00