Add set -xe to deployment shell phase-helpers

This allows errors to be passed from a container to
the airshipctl itself. Without this flags container will never fail.

Relates-To: #517
Change-Id: I20254f868bd85af44980acc656ca0fb401779bbc
This commit is contained in:
Vladislav Kuzmin 2021-04-21 18:28:09 +04:00
parent fcfad3533a
commit 014e24cd15
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
set -xe
N=0 N=0
MAX_RETRY=30 MAX_RETRY=30
DELAY=60 DELAY=60

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
set -xe
echo "Wait for Calico to be deployed using tigera" 1>&2 echo "Wait for Calico to be deployed using tigera" 1>&2
kubectl --kubeconfig $KUBECONFIG --context $KCTL_CONTEXT wait --all-namespaces --for=condition=Ready pods --all --timeout=1000s 1>&2 kubectl --kubeconfig $KUBECONFIG --context $KCTL_CONTEXT wait --all-namespaces --for=condition=Ready pods --all --timeout=1000s 1>&2