diff --git a/Makefile b/Makefile index b3e6773..12a5f0c 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,12 @@ KUBEBUILDER_ARCH ?= amd64 LOCAL ?= true +# Setting SHELL to bash allows bash commands to be executed by recipes. +# This is a requirement for 'setup-envtest.sh' in the test target. +# Options are set to exit when a recipe line exits non-zero or a piped command fails. +SHELL = /usr/bin/env bash -o pipefail +.SHELLFLAGS = -ec + export GO111MODULE = on all: manager