• Kubernetes Submit Queue's avatar
    Merge pull request #52063 from mtaufen/dkcfg-e2enode · d6df4a51
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 52047, 52063, 51528)
    
    Improve dynamic kubelet config e2e node test and fix bugs
    
    Rather than just changing the config once to see if dynamic kubelet
    config at-least-sort-of-works, this extends the test to check that the
    Kubelet reports the expected Node condition and the expected configuration
    values after several possible state transitions.
    
    Additionally, this adds a stress test that changes the configuration 100
    times. It is possible for resource leaks across Kubelet restarts to
    eventually prevent the Kubelet from restarting. For example, this test
    revealed that cAdvisor's leaking journalctl processes (see:
    https://github.com/google/cadvisor/issues/1725) could break dynamic
    kubelet config. This test will help reveal these problems earlier.
    
    This commit also makes better use of const strings and fixes a few bugs
    that the new testing turned up.
    
    Related issue: #50217
    
    I had been sitting on this until the cAdvisor fix merged in #51751, as these tests fail without that fix.
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    d6df4a51
Name
Last commit
Last update
..
builder Loading commit data...
conformance Loading commit data...
environment Loading commit data...
jenkins Loading commit data...
perftype Loading commit data...
remote Loading commit data...
runner Loading commit data...
services Loading commit data...
system Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
allocatable_eviction_test.go Loading commit data...
apparmor_test.go Loading commit data...
benchmark_util.go Loading commit data...
container.go Loading commit data...
container_manager_test.go Loading commit data...
critical_pod_test.go Loading commit data...
density_test.go Loading commit data...
disk_eviction_test.go Loading commit data...
doc.go Loading commit data...
docker_test.go Loading commit data...
docker_util.go Loading commit data...
dockershim_checkpoint_test.go Loading commit data...
dynamic_kubelet_config_test.go Loading commit data...
e2e_node_suite_test.go Loading commit data...
garbage_collector_test.go Loading commit data...
gke_environment_test.go Loading commit data...
gpus.go Loading commit data...
gubernator.sh Loading commit data...
image_id_test.go Loading commit data...
image_list.go Loading commit data...
inode_eviction_test.go Loading commit data...
kubelet_test.go Loading commit data...
lifecycle_hook_test.go Loading commit data...
local_storage_allocatable_eviction_test.go Loading commit data...
local_storage_isolation_eviction_test.go Loading commit data...
log_path_test.go Loading commit data...
memory_eviction_test.go Loading commit data...
mirror_pod_test.go Loading commit data...
node_container_manager_test.go Loading commit data...
node_problem_detector_linux.go Loading commit data...
pods_container_manager_test.go Loading commit data...
resource_collector.go Loading commit data...
resource_usage_test.go Loading commit data...
restart_test.go Loading commit data...
runtime_conformance_test.go Loading commit data...
security_context_test.go Loading commit data...
simple_mount.go Loading commit data...
summary_test.go Loading commit data...
util.go Loading commit data...
volume_manager_test.go Loading commit data...