ceph-csi/scripts
Niels de Vos 09fac4d9e2 e2e: fix kubectl_retry to not return a stale error
While deploying Rook, there can be issues when the environment is not
completely settled yet. On occasion the 1st kubectl command fails with

    The connection to the server ... was refused - did you specify the right host or port?

This would set the 'ret' variable to a non-zero value, before the next
retry of the kubectl command is done. In case the kubectl command
succeeds, the 'ret' variable still contains the old non-zero value, and
kubectl_retry returns the incorrect result.

By setting the 'ret' variable to 0 before calling kubectl again, this
problem is prevented.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-12-09 11:50:24 +00:00
..
k8s-storage cleanup: fix mispell words 2020-11-29 12:47:46 +05:30
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 scripts: add -mod=vendor to go run in check-env.sh 2020-06-17 04:58:32 +00:00
Dockerfile.devel build: use BASE_IMAGE from build.env 2020-06-28 17:46:37 +00:00
Dockerfile.test build: install diffutils in test container image 2020-12-04 05:01:17 +00:00
golangci.yml.in ci: disable goerr113 linter 2020-07-21 08:36:24 +00:00
gosec.sh build: Add -tags=nautilus to go test and go build 2020-06-30 07:55:37 +00:00
install-helm.sh rbd: add minsnapshotsonimage flag 2020-11-18 05:59:20 +00:00
install-snapshot.sh e2e: add SNAPSHOT_VERSION to build.env 2020-10-14 08:47:00 +00:00
lint-extras.sh ci: add pylint as part of CI 2020-06-30 04:43:45 +00:00
lint-go.sh replace gometalinter with golangci 2019-03-04 19:01:16 +05:30
mdl-style.rb doc: allow in-line HTML in MarkDown documents 2020-10-28 11:25:34 +00:00
minikube.sh deploy: update csi sidecar images 2020-12-08 10:23:34 +00:00
psp.yaml Added PodSecurityPolicy support 2020-01-22 08:19:42 +00:00
rook.sh e2e: fix kubectl_retry to not return a stale error 2020-12-09 11:50:24 +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 script: Add script to install snapshot-controller 2020-05-15 08:19:32 +00:00
test-go.sh ci: fix shellcheck in test-go 2020-10-27 17:04:09 +00:00
travis-functest.sh ci: add "make run-e2e" 2020-07-31 16:03:54 +00:00
travis-helmtest.sh ci: add "make run-e2e" 2020-07-31 16:03:54 +00:00