Skip to content

Commit

Permalink
Fix test script & update kubebuilder tools to 1.24.x (#736)
Browse files Browse the repository at this point in the history
Signed-off-by: Prajyot-Parab <[email protected]>
  • Loading branch information
Prajyot-Parab authored Jun 29, 2022
1 parent c035581 commit f1a90b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ARCH ?= amd64
ALL_ARCH ?= amd64 ppc64le
PULL_POLICY ?= Always

KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.23.3
KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.24.1

# main controller
CORE_IMAGE_NAME ?= cluster-api-ibmcloud-controller
Expand Down
21 changes: 0 additions & 21 deletions scripts/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,8 @@ REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
# shellcheck source=../hack/ensure-go.sh
source "${REPO_ROOT}/hack/ensure-go.sh"

# Directory to store JUnit XML test report.
JUNIT_REPORT_DIR=${JUNIT_REPORT_DIR:-}

# If JUNIT_REPORT_DIR is unset, and ARTIFACTS is set, then have them match.
if [[ -z "${JUNIT_REPORT_DIR:-}" && -n "${ARTIFACTS:-}" ]]; then
JUNIT_REPORT_DIR="${ARTIFACTS}"
fi

#Add Junit test reports to ARTIFACTS directory.
function addJunitFiles(){
declare -a junitFileList
readarray -t junitFileList <<< "$(find "${REPO_ROOT}" -name 'junit-*.xml')"

for i in "${junitFileList[@]}"
do
mv "${i}" "${ARTIFACTS}"
done
}

cd "${REPO_ROOT}" && \
source ./scripts/fetch_ext_bins.sh && \
fetch_tools && \
setup_envs && \
make generate lint test

addJunitFiles
2 changes: 1 addition & 1 deletion scripts/fetch_ext_bins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if [[ -n "${TRACE}" ]]; then
set -x
fi

k8s_version=1.16.4
k8s_version=1.24.1
goarch=amd64
goos="unknown"

Expand Down

0 comments on commit f1a90b5

Please sign in to comment.