File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ require (
4646 k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b
4747 k8s.io/klog/v2 v2.130.1
4848 k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
49- knative.dev/hack v0.0.0-20260415132636-9909d690ab4d
49+ knative.dev/hack v0.0.0-20260415233235-54d1312ccc91
5050 sigs.k8s.io/randfill v1.0.0
5151 sigs.k8s.io/yaml v1.6.0
5252)
Original file line number Diff line number Diff line change @@ -249,8 +249,8 @@ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZ
249249k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 /go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ =
250250k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck =
251251k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 /go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0 =
252- knative.dev/hack v0.0.0-20260415132636-9909d690ab4d h1:ckrA4ssLeQF0dKfvL8Do9IKR+5tHE9Oiy1eNx+3YNz8 =
253- knative.dev/hack v0.0.0-20260415132636-9909d690ab4d /go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0 =
252+ knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 h1:YkboMEJ48h7DxRQSPe2SePm1yKK0YYgrsQW5Mmc0SEk =
253+ knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 /go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0 =
254254pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw =
255255pgregory.net/rapid v1.1.0 /go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04 =
256256sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg =
Original file line number Diff line number Diff line change @@ -54,10 +54,14 @@ function setup_test_cluster() {
5454 header " Setting up test cluster"
5555 kubectl get nodes
5656
57- # Set the actual project the test cluster resides in
58- # It will be a project assigned by Boskos if test is running on Prow,
59- # otherwise will be ${E2E_GCP_PROJECT_ID} set up by user.
60- E2E_PROJECT_ID=" $( gcloud config get-value project) "
57+ # Set the actual project the test cluster resides in. For GKE this
58+ # comes from the Boskos-configured gcloud context; for other
59+ # providers (e.g. kind) it is not meaningful and is left empty.
60+ if [[ " ${CLOUD_PROVIDER} " == " gke" ]]; then
61+ E2E_PROJECT_ID=" $( gcloud config get-value project) "
62+ else
63+ E2E_PROJECT_ID=" "
64+ fi
6165 export E2E_PROJECT_ID
6266 readonly E2E_PROJECT_ID
6367
Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ function dump_cluster_state() {
8484# Create a test cluster and run the tests if provided.
8585# Parameters: $1 - cluster provider name, e.g. gke
8686# $2 - custom flags supported by kntest
87- # $3 - test command to run after cluster is created
87+ # $3 - extra gcloud flags (gke only)
88+ # $4 - test command to run after cluster is created
8889function create_test_cluster() {
8990 # Fail fast during setup.
9091 set -o errexit
@@ -96,7 +97,7 @@ function create_test_cluster() {
9697
9798 case " $1 " in
9899 gke) create_gke_test_cluster " $2 " " $3 " " $4 " " ${5:- } " ;;
99- kind) create_kind_test_cluster " $2 " " $3 " " $ {4:- }" ;;
100+ kind) create_kind_test_cluster " $2 " " ${4:- } " ;;
100101 * ) echo " unsupported provider: $1 " ; exit 1 ;;
101102 esac
102103
Original file line number Diff line number Diff line change @@ -922,7 +922,10 @@ function run_kntest() {
922922
923923# Run go-licenses to check for forbidden licenses.
924924function check_licenses() {
925- # Check that we don't have any forbidden licenses.
925+ # Pin GOTOOLCHAIN to the project's Go version so that go-licenses is
926+ # compiled with the same toolchain. GOTOOLCHAIN=auto (the go_run default)
927+ # may select a different Go, causing isStdLib() path mismatches.
928+ GOTOOLCHAIN=" $( go env GOVERSION) " \
926929 go_run github.com/google/go-licenses/
[email protected] \
927930 check " ${REPO_ROOT_DIR} /..." || \
928931 { echo " --- FAIL: go-licenses failed the license check" ; return 1; }
Original file line number Diff line number Diff line change @@ -1068,7 +1068,7 @@ k8s.io/utils/lru
10681068k8s.io/utils/net
10691069k8s.io/utils/ptr
10701070k8s.io/utils/trace
1071- # knative.dev/hack v0.0.0-20260415132636-9909d690ab4d
1071+ # knative.dev/hack v0.0.0-20260415233235-54d1312ccc91
10721072## explicit; go 1.24
10731073knative.dev/hack
10741074# sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730
You can’t perform that action at this time.
0 commit comments