• Davanum Srinivas's avatar
    Cleanup pod in MatchContainerOutput · d4a91220
    Davanum Srinivas authored
    MatchContainerOutput always creates a pod and does not cleanup. We need
    to fix this to be better at re-trying the scenarios.
    
    When there is an error say in the first attempt of ExpectNoErrorWithRetries
    (for example in "Pods should contain environment variables for services" test)
    the retries logic calls MatchContainerOutput another time and the
    podClient.create fails correctly since the pod was not cleaned up the
    first time MatchContainerOutput was called.
    
    Fixes #35089
    d4a91220
util.go 169 KB