-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update golangci version to 1.49.0 * Fix kubebuilder install script for ARM * fix kustomize install for arm * fix golangci config due to the version upgrade * fix end2end test
- Loading branch information
1 parent
256c54c
commit 58d9cd2
Showing
11 changed files
with
283 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
ROOT=$(git rev-parse --show-toplevel) | ||
WORK_DIR=$(mktemp -d) | ||
cleanup() { | ||
rm -rf "$WORK_DIR" | ||
} | ||
trap "cleanup" EXIT SIGINT | ||
|
||
VERSION=$1 | ||
|
||
TEST_DEPS_PATH=${2:-"$ROOT/bin/kubebuilder-tools"} | ||
|
||
if [ -z "$VERSION" ]; | ||
then | ||
echo "usage: bin/install-kubebuilder-tools.sh <version>" | ||
exit 1 | ||
fi | ||
|
||
|
||
OS=$(go env GOOS) | ||
ARCH=$(go env GOARCH) | ||
|
||
curl -L https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-${VERSION}-${OS}-${ARCH}.tar.gz | tar -xz -C $WORK_DIR | ||
|
||
# move to repo_path/bin/kubebuilder - you'll need to set the KUBEBUILDER_ASSETS env var with | ||
rm -rf ${TEST_DEPS_PATH} | ||
mkdir -p ${TEST_DEPS_PATH} | ||
mv $WORK_DIR/kubebuilder/bin/ ${TEST_DEPS_PATH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.