diff --git a/hack/jenkins/common.sh b/hack/jenkins/common.sh index 2cc5a68f9a5b..78e3e42c8165 100755 --- a/hack/jenkins/common.sh +++ b/hack/jenkins/common.sh @@ -139,6 +139,9 @@ case "${DRIVER}" in virtualbox) echo "vbox: $(vboxmanage --version)" ;; + vfkit) + echo "vfkit: $(vfkit --version)" + ;; esac echo "" diff --git a/hack/jenkins/minikube_set_pending.sh b/hack/jenkins/minikube_set_pending.sh index dd38c91a3001..70871457f54c 100755 --- a/hack/jenkins/minikube_set_pending.sh +++ b/hack/jenkins/minikube_set_pending.sh @@ -43,6 +43,7 @@ jobs=( 'Docker_Windows' 'Docker_Cloud_Shell' 'QEMU_macOS' + 'VFkit_macOS' ) STARTED_LIST_REMOTE="gs://minikube-builds/logs/${ghprbPullId}/${BUILD_NUMBER}/started_environments.txt" diff --git a/hack/jenkins/osx_integration_tests_vfkit.sh b/hack/jenkins/osx_integration_tests_vfkit.sh new file mode 100755 index 000000000000..4226e27c9eaa --- /dev/null +++ b/hack/jenkins/osx_integration_tests_vfkit.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Copyright 2024 The Kubernetes Authors All rights reserved. +# +# 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. + + +# This script runs the integration tests on an OSX machine for the Hyperkit Driver + +# The script expects the following env variables: +# MINIKUBE_LOCATION: GIT_COMMIT from upstream build. +# COMMIT: Actual commit ID from upstream build +# EXTRA_BUILD_ARGS (optional): Extra args to be passed into the minikube integrations tests +# access_token: The GitHub API access token. Injected by the Jenkins credential provider. + + +set -ex + +ARCH="arm64" +OS="darwin" +DRIVER="vfkit" +JOB_NAME="VFkit_macOS" +EXTRA_TEST_ARGS="" +EXTERNAL="yes" + +brew tap cfergeau/crc +brew install vfkit + +source common.sh