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 ci: disable fsGroupChangePolicy change test for cephfs 2021-09-22 10:34:41 +00:00
build_step.inc.sh scripts: add build_step logging functions 2020-04-28 09:13:55 +00:00
build-multi-arch-image.sh build: use BASE_IMAGE from build.env 2020-06-28 17:46:37 +00:00
check-env.sh build: update go version to 1.16 in go.mod 2021-05-25 09:03:52 +00:00
codespell.conf ci: ignore go.sum from codespell check 2021-12-13 07:32:54 +00:00
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 deploy: remove ceph-conf cm in helm installation 2021-09-03 14:14:43 +00:00
install-snapshot.sh deploy: update csi-snapshotter sidecar to v5.0.1 2022-02-03 19:01:57 +00:00
lint-extras.sh ci: skip shell check in vendor directory 2021-11-16 12:03:36 +00:00
lint-go.sh replace gometalinter with golangci 2019-03-04 19:01:16 +05:30
mdl-style.rb ci: place the markdown linter rule to restrict the line length at 80 2021-12-21 14:53:13 +00:00
minikube.sh revert: "deploy: change image versions to v3.6.1" 2022-04-22 16:05:51 +00:00
psp.yaml Added PodSecurityPolicy support 2020-01-22 08:19:42 +00:00
rook.sh deploy: use osd as failureDomain for ec pool 2022-01-27 04:18:01 +00:00
skip-doc-change.sh ci: skip functional tests for pre-commit config yaml 2020-08-20 05:28:54 +00:00
snapshot-controller-psp.yaml deploy: update csi-snapshotter sidecar to v5.0.1 2022-02-03 19:01:57 +00:00
test-go.sh ci: add make go-test-api to GitHub Action 2021-10-05 11:26:50 +00:00
travis-functest.sh ci: pushing artifacts using github actions 2021-06-10 10:17:19 +05:30
travis-helmtest.sh deploy: pass --namespace flag before passing namespace 2021-07-06 10:55:41 +00:00
utils.sh ci: prevent ERR trap inheritance for kubectl_retry 2022-05-18 10:08:43 +00:00