diff --git a/Makefile b/Makefile index b7cf0ff..47a6c45 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ export KO_DOCKER_REPO := gcr.io/$(PROJECT_ID)/ate-images # Go commands GO := go -KO := hack/ko.sh +KO := hack/run-tool.sh ko # Binaries BINDIR := bin/ diff --git a/benchmarking/workloads/deploy.sh b/benchmarking/workloads/deploy.sh index bcc9f78..1ea63d8 100755 --- a/benchmarking/workloads/deploy.sh +++ b/benchmarking/workloads/deploy.sh @@ -49,7 +49,7 @@ usage() { deploy() { echo "Deploying workloads..." sed "s|\${BUCKET_NAME}|${BUCKET_NAME}|g" "${MANIFEST_TEMPLATE}" \ - | hack/ko.sh apply -f - + | hack/run-tool.sh ko apply -f - } delete() { diff --git a/hack/install-ate.sh b/hack/install-ate.sh index 2ad08ae..8e043e8 100755 --- a/hack/install-ate.sh +++ b/hack/install-ate.sh @@ -103,7 +103,7 @@ run_kubectl_ate() { } run_ko() { - ./hack/ko.sh \ + ./hack/run-tool.sh ko \ "$@" \ -- ${KUBECTL_CONTEXT:+--context=${KUBECTL_CONTEXT}} } diff --git a/hack/ko.sh b/hack/ko.sh deleted file mode 100755 index bca7808..0000000 --- a/hack/ko.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -o errexit -o nounset -o pipefail - -ROOT=$(git rev-parse --show-toplevel) -"${ROOT}"/hack/run-tool.sh ko "$@"