Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: Wait for a single Salt Master container
Sometimes, if kubelet restarted the `salt-master` static Pod after an operation, two containers matching the usual selector will co-exist for a small time window. If we use the `scripts/common.sh:get_salt_container` function at that point in time, we may return a string with two container IDs instead of just one, and subsequent commands will fail. Instead, we now wait for a single container to exist (and also add a sleep time between two attemps, which we didn't before). Fixes: #2434
- Loading branch information