Skip to content

Commit 2ce61fe

Browse files
authored
Merge pull request #3747 from Kavinjsir/tony/bump-tools-to-support-macos
🌱 : bump e2e tools version to support running Apple ARM instance
2 parents 1e495ea + 3855afc commit 2ce61fe

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

test/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fi
5252

5353
export KIND_K8S_VERSION="${KIND_K8S_VERSION:-"v1.28.0"}"
5454
tools_k8s_version=$(convert_to_tools_ver "${KIND_K8S_VERSION#v*}")
55-
kind_version=0.15.0
55+
kind_version=0.20.0
5656
goarch=amd64
5757

5858
if [[ "$OSTYPE" == "linux-gnu" ]]; then

test/e2e/setup.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ function delete_cluster {
5656
function test_cluster {
5757
local flags="$@"
5858

59-
docker pull memcached:1.4.36-alpine
60-
kind load docker-image --name $KIND_CLUSTER memcached:1.4.36-alpine
59+
docker pull memcached:1.6.23-alpine
60+
kind load docker-image --name $KIND_CLUSTER memcached:1.6.23-alpine
6161

62-
docker pull busybox:1.28
63-
kind load docker-image --name $KIND_CLUSTER busybox:1.28
62+
docker pull busybox:1.36.1
63+
kind load docker-image --name $KIND_CLUSTER busybox:1.36.1
6464

6565
go test $(dirname "$0")/grafana $flags -timeout 30m
6666
go test $(dirname "$0")/deployimage $flags -timeout 30m
@@ -70,11 +70,12 @@ function test_cluster {
7070
}
7171

7272
function build_sample_external_plugin {
73-
# TODO: Dynamically set exteranl plugin destination based on OS platform
74-
# EXTERNAL_PLUGIN_DESTINATION_PREFIX="${HOME}/Library/Application Support/kubebuilder/plugins"
75-
# For Linux:
76-
XDG_CONFIG_HOME="${HOME}/.config"
77-
EXTERNAL_PLUGIN_DESTINATION_PREFIX="$XDG_CONFIG_HOME/kubebuilder/plugins"
73+
if [ "$(uname -s)" == "Darwin" ]; then
74+
EXTERNAL_PLUGIN_DESTINATION_PREFIX="${HOME}/Library/Application Support/kubebuilder/plugins"
75+
else
76+
XDG_CONFIG_HOME="${HOME}/.config"
77+
EXTERNAL_PLUGIN_DESTINATION_PREFIX="$XDG_CONFIG_HOME/kubebuilder/plugins"
78+
fi
7879

7980
PLUGIN_NAME="sampleexternalplugin"
8081
PLUGIN_VERSION="v1"

0 commit comments

Comments
 (0)