ceph-csi/scripts
Niels de Vos 2673a0b97a ci: prevent ERR trap inheritance for kubectl_retry
`bash -E` causes inheritance of the ERR trap into shell functions,
command substitutions, and commands executed in a subshell environment.
Because the `kubectl_retry` function depends on detection an error of a
subshell, the ERR trap is not needed to be executed. The trap contains
extra logging, and exits the script in the `rook.sh` case. The aborting
of the script is not wanted when a retry is expected to be done.

While checking for known failures, the `grep` command may exit with 1,
if there are no matches. That means, the `ret` variable will be set to
0, but there will also be an error exit status. This causes `bash -E` to
abort the function, and call the ERR trap.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
(cherry picked from commit 4891e534d3)
2022-05-18 10:08:43 +00:00
..
k8s-storage
build_step.inc.sh
build-multi-arch-image.sh
check-env.sh
codespell.conf
Dockerfile.devel build: remove cache while building container image 2022-03-28 06:09:27 +00:00
Dockerfile.test ci: fix commitlint problem 2022-05-10 06:45:16 +00:00
golangci.yml.in build: more flexible handling of go build tags; added ceph_preview 2022-03-27 19:24:26 +00:00
install-helm.sh
install-snapshot.sh
lint-extras.sh
lint-go.sh
mdl-style.rb
minikube.sh revert: "deploy: change image versions to v3.6.1" 2022-04-22 16:05:51 +00:00
psp.yaml
rook.sh
skip-doc-change.sh
snapshot-controller-psp.yaml
test-go.sh
travis-functest.sh
travis-helmtest.sh
utils.sh ci: prevent ERR trap inheritance for kubectl_retry 2022-05-18 10:08:43 +00:00