mirror of https://github.com/knative/client.git
upgrade to latest dependencies (#1596)
bumping knative.dev/pkg 77555ea...f4b57ae:
> f4b57ae Fix invalid creator or lastModifier annotations on core resources (# 2409)
> 21b467b upgrade to latest dependencies (# 2406)
> ca64d3b Update community files (# 2404)
> 2783cd8 Do not block NotFound error during patching resources (# 2403)
> d7b329c 🐛 Update required Go version to 1.17 to fix # 2399 (# 2400)
> 3ba5d72 Don't discard addressable resolver original errors (# 2395)
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)
bumping knative.dev/networking ec78554...d23a068:
> d23a068 upgrade to latest dependencies (# 611)
> 8acb8e7 Add transport option (# 605)
bumping knative.dev/serving ff30afc...770b911:
> 770b911 Add loglevel option for contour (# 12567)
> d7bd949 Update net-contour nightly (# 12570)
> 7faad9a Update net-kourier nightly (# 12563)
> 422f10a Upgrade knative.dev/pkg@main and fix DomainMapping error (# 12560)
> 7d527f2 Update community files (# 12566)
bumping knative.dev/eventing 0310bf9...25bf6fe:
> 25bf6fe upgrade to latest dependencies (# 6103)
> 7a44b07 Update community files (# 6109)
> c7718b0 Update community files (# 6105)
> cf78f4c Upgrade knative.dev/pkg@main and fix test errors (# 6097)
Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
8a5e349f97
commit
677276ae0a
10
go.mod
10
go.mod
|
|
@ -18,10 +18,10 @@ require (
|
|||
k8s.io/cli-runtime v0.22.5
|
||||
k8s.io/client-go v0.22.5
|
||||
k8s.io/code-generator v0.22.5
|
||||
knative.dev/eventing v0.29.0
|
||||
knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30
|
||||
knative.dev/networking v0.0.0-20220120043934-ec785540a732
|
||||
knative.dev/pkg v0.0.0-20220118160532-77555ea48cd4
|
||||
knative.dev/serving v0.29.0
|
||||
knative.dev/eventing v0.29.1-0.20220201083031-25bf6fe36dfe
|
||||
knative.dev/hack v0.0.0-20220201013531-82bfca153560
|
||||
knative.dev/networking v0.0.0-20220131174231-d23a06807e6c
|
||||
knative.dev/pkg v0.0.0-20220131144930-f4b57aef0006
|
||||
knative.dev/serving v0.29.1-0.20220131194631-770b91180d43
|
||||
sigs.k8s.io/yaml v1.3.0
|
||||
)
|
||||
|
|
|
|||
24
go.sum
24
go.sum
|
|
@ -1811,18 +1811,24 @@ k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
|
|||
k8s.io/utils v0.0.0-20211208161948-7d6a63dca704 h1:ZKMMxTvduyf5WUtREOqg5LiXaN1KO/+0oOQPRFrClpo=
|
||||
k8s.io/utils v0.0.0-20211208161948-7d6a63dca704/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
||||
knative.dev/caching v0.0.0-20220118175933-0c1cc094a7f4/go.mod h1:OHsK3XaWmdi2/mPaNBiX8LbefbtM6TptnT90eVbYGSA=
|
||||
knative.dev/eventing v0.29.0 h1:+AhcYEuuz37x1op71bknZ/lFgsvuZJl0AKFOOFiH03s=
|
||||
knative.dev/eventing v0.29.0/go.mod h1:u5T5NZTDUsLR7yJwp5MDnBnDX5MhywD3yK3Rq+7gTtI=
|
||||
knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30 h1:UkNpCWCMM5C4AeQ8aTrPTuR/6OeARiqk+LEQ6tuMP7c=
|
||||
knative.dev/eventing v0.29.1-0.20220201083031-25bf6fe36dfe h1:VLVkZaToXNixhY//FZfAr9fAF7jQQVGo64qT/3pJpfk=
|
||||
knative.dev/eventing v0.29.1-0.20220201083031-25bf6fe36dfe/go.mod h1:jsc5u3aC+BYmfUR2cRz9jb77krfULStxXkR1EgMUWp0=
|
||||
knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
|
||||
knative.dev/hack/schema v0.0.0-20220118141833-9b2ed8471e30/go.mod h1:ffjwmdcrH5vN3mPhO8RrF2KfNnbHeCE2C60A+2cv3U0=
|
||||
knative.dev/networking v0.0.0-20220120043934-ec785540a732 h1:fUUb5NWfYm8TQkhv1uFYlEn91YNKp+E4BD7ax7WYHW0=
|
||||
knative.dev/hack v0.0.0-20220128200847-51a42b2eb63e/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=
|
||||
knative.dev/hack/schema v0.0.0-20220128200847-51a42b2eb63e/go.mod h1:ffjwmdcrH5vN3mPhO8RrF2KfNnbHeCE2C60A+2cv3U0=
|
||||
knative.dev/networking v0.0.0-20220120043934-ec785540a732/go.mod h1:6cKBV/h/vIQWCPOkds/RvzUmMR8Vz6Dks2NWb0+3xks=
|
||||
knative.dev/pkg v0.0.0-20220118160532-77555ea48cd4 h1:b9aXVrcfM/ajjHE/lGvlJOHZNAR5FF2TOTLWG7eMhzQ=
|
||||
knative.dev/networking v0.0.0-20220131174231-d23a06807e6c h1:0mPVfMikv8wz37qEMSUVXAqoDOn3qRPRSQuxx91nACs=
|
||||
knative.dev/networking v0.0.0-20220131174231-d23a06807e6c/go.mod h1:RzkiJ/LyijMaMUa6tOerhI9lGvQYpfDY0VttqQIX0yk=
|
||||
knative.dev/pkg v0.0.0-20220118160532-77555ea48cd4/go.mod h1:etVT7Tm8pSDf4RKhGk4r7j/hj3dNBpvT7bO6a6wpahs=
|
||||
knative.dev/reconciler-test v0.0.0-20220118183433-c8bfbe66bada/go.mod h1:XV4cghzCtdASkfUsfMYSnGfGRyd/naDjy9h7Tnae22g=
|
||||
knative.dev/serving v0.29.0 h1:J33ndKtgRH4QcBE2XLkmXnm8oah9rKaCRGwD2SFIdPY=
|
||||
knative.dev/serving v0.29.0/go.mod h1:8Ay9QjyTcqoJE+2PietSmT5/VMdSQHe5aIBhsAFOCjM=
|
||||
knative.dev/pkg v0.0.0-20220121092305-3ba5d72e310a/go.mod h1:etVT7Tm8pSDf4RKhGk4r7j/hj3dNBpvT7bO6a6wpahs=
|
||||
knative.dev/pkg v0.0.0-20220129160148-ca64d3b3ea8c/go.mod h1:BML2uvSEBhY/cpEsAyWv1+vLy2fxNk8VDJ9fT+D0tj4=
|
||||
knative.dev/pkg v0.0.0-20220131144930-f4b57aef0006 h1:0Kv7dIOimyHno/7jbQ6LCi15ME+e/b5tY0pwi99kanQ=
|
||||
knative.dev/pkg v0.0.0-20220131144930-f4b57aef0006/go.mod h1:bZMFTPDPHV3wXuiQ09UJuEGYYQnfpe81MCxNvsMAiJk=
|
||||
knative.dev/reconciler-test v0.0.0-20220126171745-740e77ebaace/go.mod h1:XV4cghzCtdASkfUsfMYSnGfGRyd/naDjy9h7Tnae22g=
|
||||
knative.dev/serving v0.29.1-0.20220131194631-770b91180d43 h1:5mTE+g5pjTFtL+jnLL7y43a+zca/kPNpb2HvD9F3DoA=
|
||||
knative.dev/serving v0.29.1-0.20220131194631-770b91180d43/go.mod h1:vjtRBoMxJZjrY5OILrkxvq2KhZs7rjpMhSH9IuvObkY=
|
||||
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
|
||||
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=
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -23,12 +23,14 @@ import (
|
|||
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
|
||||
"knative.dev/pkg/client/injection/ducks/duck/v1/addressable"
|
||||
"knative.dev/pkg/controller"
|
||||
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
apierrs "k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/api/meta"
|
||||
|
||||
"knative.dev/pkg/apis"
|
||||
pkgapisduck "knative.dev/pkg/apis/duck"
|
||||
duckv1 "knative.dev/pkg/apis/duck/v1"
|
||||
|
|
@ -169,17 +171,17 @@ func (r *URIResolver) URIFromObjectReference(ctx context.Context, ref *corev1.Ob
|
|||
Namespace: ref.Namespace,
|
||||
Name: ref.Name,
|
||||
}, parent); err != nil {
|
||||
return nil, apierrs.NewNotFound(gvr.GroupResource(), ref.Name)
|
||||
return nil, fmt.Errorf("failed to track reference %s %s/%s: %w", gvr.String(), ref.Namespace, ref.Name, err)
|
||||
}
|
||||
|
||||
lister, err := r.listerFactory(gvr)
|
||||
if err != nil {
|
||||
return nil, apierrs.NewNotFound(gvr.GroupResource(), "Lister")
|
||||
return nil, fmt.Errorf("failed to get lister for %s: %w", gvr.String(), err)
|
||||
}
|
||||
|
||||
obj, err := lister.ByNamespace(ref.Namespace).Get(ref.Name)
|
||||
if err != nil {
|
||||
return nil, apierrs.NewNotFound(gvr.GroupResource(), ref.Name)
|
||||
return nil, fmt.Errorf("failed to get object %s/%s: %w", ref.Namespace, ref.Name, err)
|
||||
}
|
||||
|
||||
// K8s Services are special cased. They can be called, even though they do not satisfy the
|
||||
|
|
|
|||
|
|
@ -745,7 +745,7 @@ k8s.io/utils/buffer
|
|||
k8s.io/utils/integer
|
||||
k8s.io/utils/pointer
|
||||
k8s.io/utils/trace
|
||||
# knative.dev/eventing v0.29.0
|
||||
# knative.dev/eventing v0.29.1-0.20220201083031-25bf6fe36dfe
|
||||
## explicit
|
||||
knative.dev/eventing/pkg/apis/config
|
||||
knative.dev/eventing/pkg/apis/duck
|
||||
|
|
@ -771,10 +771,10 @@ knative.dev/eventing/pkg/client/clientset/versioned/typed/sources/v1
|
|||
knative.dev/eventing/pkg/client/clientset/versioned/typed/sources/v1/fake
|
||||
knative.dev/eventing/pkg/client/clientset/versioned/typed/sources/v1beta2
|
||||
knative.dev/eventing/pkg/client/clientset/versioned/typed/sources/v1beta2/fake
|
||||
# knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30
|
||||
# knative.dev/hack v0.0.0-20220201013531-82bfca153560
|
||||
## explicit
|
||||
knative.dev/hack
|
||||
# knative.dev/networking v0.0.0-20220120043934-ec785540a732
|
||||
# knative.dev/networking v0.0.0-20220131174231-d23a06807e6c
|
||||
## explicit
|
||||
knative.dev/networking/pkg
|
||||
knative.dev/networking/pkg/apis/networking
|
||||
|
|
@ -782,7 +782,7 @@ knative.dev/networking/pkg/apis/networking/v1alpha1
|
|||
knative.dev/networking/pkg/client/clientset/versioned
|
||||
knative.dev/networking/pkg/client/clientset/versioned/scheme
|
||||
knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1
|
||||
# knative.dev/pkg v0.0.0-20220118160532-77555ea48cd4
|
||||
# knative.dev/pkg v0.0.0-20220131144930-f4b57aef0006
|
||||
## explicit
|
||||
knative.dev/pkg/apis
|
||||
knative.dev/pkg/apis/duck
|
||||
|
|
@ -832,7 +832,7 @@ knative.dev/pkg/tracing/config
|
|||
knative.dev/pkg/tracing/propagation
|
||||
knative.dev/pkg/tracing/propagation/tracecontextb3
|
||||
knative.dev/pkg/tracker
|
||||
# knative.dev/serving v0.29.0
|
||||
# knative.dev/serving v0.29.1-0.20220131194631-770b91180d43
|
||||
## explicit
|
||||
knative.dev/serving/pkg/apis/autoscaling
|
||||
knative.dev/serving/pkg/apis/autoscaling/v1alpha1
|
||||
|
|
|
|||
Loading…
Reference in New Issue