File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ require (
1010 k8s.io/client-go v0.35.3
1111 k8s.io/code-generator v0.35.3
1212 k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912
13- knative.dev/hack v0.0.0-20260415132636-9909d690ab4d
14- knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718
13+ knative.dev/hack v0.0.0-20260415233235-54d1312ccc91
14+ knative.dev/pkg v0.0.0-20260415140041-388556d5c488
1515)
1616
1717require (
Original file line number Diff line number Diff line change @@ -157,10 +157,10 @@ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZ
157157k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 /go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ =
158158k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck =
159159k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 /go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0 =
160- knative.dev/hack v0.0.0-20260415132636-9909d690ab4d h1:ckrA4ssLeQF0dKfvL8Do9IKR+5tHE9Oiy1eNx+3YNz8 =
161- knative.dev/hack v0.0.0-20260415132636-9909d690ab4d /go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0 =
162- knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718 h1:/8xILwHO82gYQXgqQgP9jbSpxg8rmsl/mk1YrYtY/hs =
163- knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718 /go.mod h1:m+Jaj5UyK7VkrEx6rt4buVX3a5eaB+vtJqEfQVGnAGQ =
160+ knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 h1:YkboMEJ48h7DxRQSPe2SePm1yKK0YYgrsQW5Mmc0SEk =
161+ knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 /go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0 =
162+ knative.dev/pkg v0.0.0-20260415140041-388556d5c488 h1:7rmo6AW+6NLaWI+qTWv0ABlXz1bpdpaNnnpSBiuQ3vs =
163+ knative.dev/pkg v0.0.0-20260415140041-388556d5c488 /go.mod h1:LaL/m4gFNTSUOP0DvHNCVcruVTi5Dyzts5/6UlPuTEQ =
164164sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg =
165165sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 /go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg =
166166sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU =
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/v2@v2.0.1 \
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 @@ -729,10 +729,10 @@ k8s.io/utils/lru
729729k8s.io/utils/net
730730k8s.io/utils/ptr
731731k8s.io/utils/trace
732- # knative.dev/hack v0.0.0-20260415132636-9909d690ab4d
732+ # knative.dev/hack v0.0.0-20260415233235-54d1312ccc91
733733## explicit; go 1.24
734734knative.dev/hack
735- # knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718
735+ # knative.dev/pkg v0.0.0-20260415140041-388556d5c488
736736## explicit; go 1.25.0
737737knative.dev/pkg/apis
738738knative.dev/pkg/apis/duck
You can’t perform that action at this time.
0 commit comments