upgrade to latest dependencies (#4682)

bumping knative.dev/hack 9b2ed84...82bfca1:
  > 82bfca1 Update community files (# 147)
  > 51a42b2 Update community files (# 146)
  > 81ef5cc Update community files (# 145)
  > cfb3eb8 Enable opting out Preemptible/Spot GKE Worker Nodes (# 144)
  > 9dd1ec1 Look at package name when checking whether the shell package can be used (# 142)
  > f1822b1 Disable Logs/Metrics on GKE and Run Preemptible Nodes (# 138)
  > 32375dc remove clusteradmin grant (# 141)
  > 987528e Temporarily fix the unit tests for library.sh (# 143)
  > da09733 print commit hash (# 140)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2022-02-01 07:02:31 -08:00 committed by GitHub
parent a626afc18a
commit 68d089f575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 24 deletions

2
go.mod
View File

@ -28,7 +28,7 @@ require (
gopkg.in/go-playground/webhooks.v3 v3.13.0
gopkg.in/yaml.v2 v2.3.0
honnef.co/go/tools v0.0.1-2020.1.5 // indirect
knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30
knative.dev/hack v0.0.0-20220201013531-82bfca153560
)
replace go.opencensus.io => go.opencensus.io v0.20.2

4
go.sum
View File

@ -538,8 +538,8 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.0.1-2020.1.5 h1:nI5egYTGJakVyOryqLs1cQO5dO0ksin5XXs2pspk75k=
honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30 h1:UkNpCWCMM5C4AeQ8aTrPTuR/6OeARiqk+LEQ6tuMP7c=
knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack v0.0.0-20220201013531-82bfca153560 h1:JTQwe928hZokY181gjYKeVdxr+s3v95LDkMs7R0fxfE=
knative.dev/hack v0.0.0-20220201013531-82bfca153560/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

View File

@ -167,6 +167,11 @@ This is a helper script for Knative E2E test scripts. To use it:
1. By default Istio is installed on the cluster via Addon, use
`--skip-istio-addon` if you choose not to have it preinstalled.
1. By default Google Kubernetes Engine telemetry to Cloud Logging and Monitoring is disabled.
This can be enabled by setting `ENABLE_GKE_TELEMETRY` to `true`.
1. By default Spot Worker nodes are disabled. This can be enabled by setting `ENABLE_PREEMPTIBLE_NODES`
to `true`.
### Sample end-to-end test script
This script will test that the latest Knative Serving nightly release works. It

View File

@ -73,9 +73,6 @@ function setup_test_cluster() {
is_protected_cluster "${k8s_cluster}" && \
abort "kubeconfig context set to ${k8s_cluster}, which is forbidden"
# Acquire cluster admin role for the current user.
acquire_cluster_admin_role "${k8s_cluster}"
# Setup KO_DOCKER_REPO if it is a GKE cluster. Incorporate an element of
# randomness to ensure that each run properly publishes images. Don't
# owerwrite KO_DOCKER_REPO if already set.

View File

@ -77,20 +77,6 @@ function dump_cluster_state() {
echo "***************************************"
}
# Sets the current user as cluster admin for the given cluster.
# Parameters: $1 - cluster context name
function acquire_cluster_admin_role() {
if [[ -z "$(kubectl get clusterrolebinding cluster-admin-binding 2> /dev/null)" ]]; then
if [[ "$1" =~ ^gke_.* ]]; then
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin --user="$(gcloud config get-value core/account)"
else
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin --user="prow"
fi
fi
}
# Create a test cluster and run the tests if provided.
# Parameters: $1 - cluster provider name, e.g. gke
# $2 - custom flags supported by kntest
@ -137,5 +123,15 @@ function create_gke_test_cluster() {
local -n _custom_flags=$1
local -n _test_command=$2
run_kntest kubetest2 gke "${_custom_flags[@]}" --test-command="${_test_command[*]}"
# We are disabling logs and metrics on Boskos Clusters by default as they are not used. Manually set ENABLE_GKE_TELEMETRY to true to enable telemetry
# and ENABLE_PREEMPTIBLE_NODES to true to create preemptible/spot VMs. VM Preemption is a rare event and shouldn't be distruptive given the fault tolerant nature of our tests.
local extra_gcloud_flags=""
if [[ "$ENABLE_GKE_TELEMETRY" != "true" ]]; then
extra_gcloud_flags="${extra_gcloud_flags} --logging=NONE --monitoring=NONE"
fi
if [[ "$ENABLE_PREEMPTIBLE_NODES" == "true" ]]; then
extra_gcloud_flags="${extra_gcloud_flags} --preemptible"
fi
run_kntest kubetest2 gke "${_custom_flags[@]}" --test-command="${_test_command[*]}" --extra-gcloud-flags="${extra_gcloud_flags}"
}

View File

@ -266,8 +266,6 @@ function main() {
git version
echo ">> ko version"
[[ -f /ko_version ]] && cat /ko_version || echo "unknown"
echo ">> bazel version"
[[ -f /bazel_version ]] && cat /bazel_version || echo "unknown"
if [[ "${DOCKER_IN_DOCKER_ENABLED}" == "true" ]]; then
echo ">> docker version"
docker version
@ -281,6 +279,8 @@ function main() {
echo ">> maven version"
mvn --version
fi
echo ">> prow-tests image version"
[[ -f /commit_hash ]] && echo "Prow test image was built from $(cat /commit_hash) commit which is viewable at https://github.com/knative/test-infra/tree/$(cat /commit_hash) " || echo "unknown"
fi
[[ -z ${1:-} ]] && set -- "--all-tests"

2
vendor/modules.txt vendored
View File

@ -286,7 +286,7 @@ gopkg.in/go-playground/webhooks.v3/github
gopkg.in/yaml.v2
# honnef.co/go/tools v0.0.1-2020.1.5
## explicit
# knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30
# knative.dev/hack v0.0.0-20220201013531-82bfca153560
## explicit
knative.dev/hack
# go.opencensus.io => go.opencensus.io v0.20.2