• Kubernetes Submit Queue's avatar
    Merge pull request #32986 from Random-Liu/add-image-white-list · c21fdc71
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Node E2E: Add image white list
    
    This is part of #29081. Fixes #29155.
    
    As is discussed with @yujuhong in #29155, it is difficult to maintain the prepull image list if it is not enforced. 
    
    This PR added an image white list in the test framework, only images in the white list could be used in the test. If the image is not in the white list, the test will fail with reason:
    ```
    Image "XXX" is not in the white list, consider adding it to CommonImageWhiteList in test/e2e/common/util.go or NodeImageWhiteList in test/e2e_node/image_list.go
    ```
    
    Notice that if image pull policy is `PullAlways`, the image is not necessary to be in the white list or prepulled, because the test expects the image to be pulled during the test.
    
    Currently, the image white list is only enabled in node e2e, because the image puller in e2e test is not integrated with the image white list yet.
    
    /cc @kubernetes/sig-node
    c21fdc71
Name
Last commit
Last update
..
build Loading commit data...
environment Loading commit data...
jenkins Loading commit data...
remote Loading commit data...
runner Loading commit data...
services Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
apparmor_test.go Loading commit data...
benchmark_util.go Loading commit data...
cgroup_manager_test.go Loading commit data...
container.go Loading commit data...
container_manager_test.go Loading commit data...
density_test.go Loading commit data...
disk_eviction_test.go Loading commit data...
doc.go Loading commit data...
dynamic_kubelet_configuration_test.go Loading commit data...
e2e_node_suite_test.go Loading commit data...
gubernator.sh Loading commit data...
image.go Loading commit data...
image_conformance_test.go Loading commit data...
image_list.go Loading commit data...
kubelet_test.go Loading commit data...
memory_eviction_test.go Loading commit data...
mirror_pod_test.go Loading commit data...
resource_collector.go Loading commit data...
resource_usage_test.go Loading commit data...
runtime_conformance_test.go Loading commit data...
util.go Loading commit data...