Ensure jq is available

Signed-off-by: irbekrm <irbekrm@gmail.com>
This commit is contained in:
irbekrm 2021-07-22 20:27:38 +01:00
parent 62bc854467
commit 5edad74e8a
2 changed files with 6 additions and 3 deletions

View File

@ -36,10 +36,12 @@ fi
RELEASE_NAME="${RELEASE_NAME:-ingress-nginx}"
IMAGE_TAG=""
# Require helm available on PATH
# Require helm, kubectl and jq available on PATH
check_tool kubectl
check_tool helm
check_tool jq
bazel build //hack/bin:jq
bindir="$(bazel info bazel-bin)"
export PATH="${bindir}/hack/bin/:$PATH"
# We need to install different versions of Ingress depending on which version of
# Kubernetes we are running as the NGINX Ingress controller does not have a

View File

@ -39,7 +39,7 @@ export INGRESS_IP="${SERVICE_IP_PREFIX}.15"
# versions of the tools required for development
setup_tools() {
check_bazel
bazel build //hack/bin:helm //hack/bin:kind //hack/bin:kubectl //devel/bin:ginkgo
bazel build //hack/bin:helm //hack/bin:kind //hack/bin:kubectl //hack/bin:jq //devel/bin:ginkgo
if [[ "$IS_OPENSHIFT" == "true" ]] ; then
bazel build //hack/bin:oc3
fi
@ -47,6 +47,7 @@ setup_tools() {
export HELM="${bindir}/hack/bin/helm"
export KIND="${bindir}/hack/bin/kind"
export OC3="${bindir}/hack/bin/oc3"
export JQ="${bindir}/hack/bin/jq"
export KUBECTL="${bindir}/hack/bin/kubectl"
export KUSTOMIZE="${bindir}/hack/bin/kustomize"
export GINKGO="${bindir}/devel/bin/ginkgo"