Skip to content

Commit

Permalink
Adapt to the breaking change in the `hack/check-skaffold-deps-for-bin…
Browse files Browse the repository at this point in the history
…ary.sh` script

See gardener/gardener#8766
  • Loading branch information
ialidzhikov committed Nov 24, 2023
1 parent 373b58a commit ebbf0b1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions hack/check-skaffold-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,22 @@

set -e

echo "> Check Skaffold Dependencies"
operation="${1:-check}"

check_successful=true
echo "> ${operation^} Skaffold Dependencies"

success=true
repo_root="$(git rev-parse --show-toplevel)"

function check() {
if ! $repo_root/vendor/github.com/gardener/gardener/hack/check-skaffold-deps-for-binary.sh --skaffold-file $1 --binary $2 --skaffold-config $3; then
check_successful=false
function run() {
if ! "$repo_root"/vendor/github.com/gardener/gardener/hack/check-skaffold-deps-for-binary.sh "$operation" --skaffold-file "$1" --binary "$2" --skaffold-config "$3"; then
success=false
fi
}

check "skaffold.yaml" "gardener-extension-registry-cache" "extension"
check "skaffold.yaml" "gardener-extension-registry-cache-admission" "admission"
run "skaffold.yaml" "gardener-extension-registry-cache" "extension"
run "skaffold.yaml" "gardener-extension-registry-cache-admission" "admission"

if ! $success ; then
exit 1
fi

0 comments on commit ebbf0b1

Please sign in to comment.