upgrade to latest dependencies (#1694)

bumping knative.dev/eventing c1b0ea6...f69e181:
  > f69e181 Update community files (# 6435)
  > 159f4ec upgrade to latest dependencies (# 6432)
  > 33d1be7 Bump PodDisruptionBudget to policy/v1 (# 6424)
  > ee47ed1 Update community files (# 6431)
  > 9c41f75 upgrade to latest dependencies (# 6428)
  > eaec729 Update actions (# 6427)
  > 7763e03 upgrade to latest dependencies (# 6423)
  > 0866e62 Report last error for unavailability periods (# 6381)
bumping knative.dev/networking 07c9d76...716a8b8:
  > 716a8b8 Update community files (# 687)
  > 10dbbe0 Update community files (# 686)
  > a44888a Update actions (# 685)
bumping knative.dev/pkg 9c5a731...97eb150:
  > 97eb150 Update community files (# 2541)
  > 5569169 update boilerplate date (# 2539)
  > 85965e1 upgrade to latest dependencies (# 2540)
  > f4ae0af Update community files (# 2538)
  > f5db225 Drop `UserInfo` from logger tagging in webhook. (# 2535)
  > 1777513 Update actions (# 2536)
bumping knative.dev/hack dc6c287...65c463a:
  > 65c463a Update community files (# 195)
  > e7d6365 Add [skip-dot-release] feature (# 189)
  > 33ce6af Update community files (# 190)
bumping knative.dev/serving 3573163...df215c7:
  > df215c7 Update community files (# 13076)
  > 58cce54 Support config to deploy internal certificates automatically (# 13005)
  > 25de812 Fix webhook config drift issue (# 13061)
  > ee386a1 Update community files (# 13068)
  > d9cb5f0 Update net-istio nightly (# 13067)
  > 189003d Update net-contour nightly (# 13066)
  > d0367df Update net-gateway-api nightly (# 13064)
  > 278cedc Update net-certmanager nightly (# 13065)
  > 1da6f33 Update actions (# 13063)
  > cd85b44 Update net-gateway-api nightly (# 13062)
  > 752c336 Allow calls to test.Setup to disable logstream (# 13046)
  > 8f62874 Update net-certmanager nightly (# 13040)
  > 2b7f301 Update net-istio nightly (# 13031)
  > 6eccc36 Update net-gateway-api nightly (# 13029)
  > 38c5dbc Update net-contour nightly (# 13032)
  > f25a0df Temporarily disable flaky kind test (# 13055)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2022-07-01 08:42:42 -04:00 committed by GitHub
parent c23a1f7dbe
commit cfed6d7653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 69 additions and 86 deletions

10
go.mod
View File

@ -21,11 +21,11 @@ require (
k8s.io/cli-runtime v0.23.4
k8s.io/client-go v0.23.8
k8s.io/code-generator v0.23.8
knative.dev/eventing v0.32.1-0.20220614135415-c1b0ea692715
knative.dev/hack v0.0.0-20220610014127-dc6c287516dc
knative.dev/networking v0.0.0-20220614203516-07c9d7614c61
knative.dev/pkg v0.0.0-20220621173822-9c5a7317fa9d
knative.dev/serving v0.32.1-0.20220621141822-357316355d00
knative.dev/eventing v0.32.1-0.20220701014234-f69e18140a57
knative.dev/hack v0.0.0-20220701014203-65c463ac8c98
knative.dev/networking v0.0.0-20220701013832-716a8b82e4b5
knative.dev/pkg v0.0.0-20220701013933-97eb1507655e
knative.dev/serving v0.32.1-0.20220701014055-df215c70ec10
sigs.k8s.io/yaml v1.3.0
)

26
go.sum
View File

@ -2281,24 +2281,30 @@ k8s.io/utils v0.0.0-20211116205334-6203023598ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 h1:HNSDgDCrr/6Ly3WEGKZftiE7IY19Vz2GdbOCyI4qqhc=
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
knative.dev/caching v0.0.0-20220610113725-9c092893371a/go.mod h1:IcfEPqEP6ma4EcRUcPkwVNx5FWHHWu8w4/eqRQguDwc=
knative.dev/eventing v0.32.1-0.20220614135415-c1b0ea692715 h1:efjNLZXLgbphN5IiHpkTqK1ztorP+1Nlu1s53/1BPS0=
knative.dev/eventing v0.32.1-0.20220614135415-c1b0ea692715/go.mod h1:WKC5YSu8dhjcSOgrhgB5ipdV9Of/KrcETkJObM67Mhk=
knative.dev/control-protocol v0.0.0-20220610133426-4a1c8e84039f/go.mod h1:MjnhSes1u2GIoqwQia5bSe3Ny8r+d5//UB+Y/en2ZL8=
knative.dev/eventing v0.32.1-0.20220701014234-f69e18140a57 h1:TacHZMdP0tDBr5BZgbZDrSJkDjH657H+nIOuX+sGFfQ=
knative.dev/eventing v0.32.1-0.20220701014234-f69e18140a57/go.mod h1:v4dgr5Z6F+LeJm6IldEIkzLvXnrPFEPeO/iniHfehB8=
knative.dev/hack v0.0.0-20220524153203-12d3e2a7addc/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack v0.0.0-20220609132040-fd240e2cef5c/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack v0.0.0-20220610014127-dc6c287516dc h1:LyqyT+rtgZYfOb3ChGE5jTFApCOcUmAcSV+TzgLxnys=
knative.dev/hack v0.0.0-20220610014127-dc6c287516dc/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack/schema v0.0.0-20220610014127-dc6c287516dc/go.mod h1:ffjwmdcrH5vN3mPhO8RrF2KfNnbHeCE2C60A+2cv3U0=
knative.dev/networking v0.0.0-20220610013825-3103f3a72792/go.mod h1:oIETD09Q4GSOXjdBdiPc0eEQxMwmjH7/gdhfg+sgdW8=
knative.dev/networking v0.0.0-20220614203516-07c9d7614c61 h1:IsEfLWjHFt10XEUnAE/W4XcEU2uA+PMd1aZFkz5vrzA=
knative.dev/hack v0.0.0-20220629134730-e7d63651ce8f/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack v0.0.0-20220701014203-65c463ac8c98 h1:kAwcKZOwYU0QCGEwvZrgnLrynFCWnXetwR/+a4W9R70=
knative.dev/hack v0.0.0-20220701014203-65c463ac8c98/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack/schema v0.0.0-20220629134730-e7d63651ce8f/go.mod h1:ffjwmdcrH5vN3mPhO8RrF2KfNnbHeCE2C60A+2cv3U0=
knative.dev/networking v0.0.0-20220614203516-07c9d7614c61/go.mod h1:oIETD09Q4GSOXjdBdiPc0eEQxMwmjH7/gdhfg+sgdW8=
knative.dev/networking v0.0.0-20220701013832-716a8b82e4b5 h1:wKlgaeqkyLHMN2ZHrV9z7CvTlfjNRtK6ghbvivvmu3M=
knative.dev/networking v0.0.0-20220701013832-716a8b82e4b5/go.mod h1:oIETD09Q4GSOXjdBdiPc0eEQxMwmjH7/gdhfg+sgdW8=
knative.dev/pkg v0.0.0-20220524202603-19adf798efb8/go.mod h1:pApypeWDkGrsMkUDkV6StWXS4CXhwGWuJEID9GGZY0Y=
knative.dev/pkg v0.0.0-20220609131940-865e331abfa5/go.mod h1:pApypeWDkGrsMkUDkV6StWXS4CXhwGWuJEID9GGZY0Y=
knative.dev/pkg v0.0.0-20220610014025-7d607d643ee2/go.mod h1:pApypeWDkGrsMkUDkV6StWXS4CXhwGWuJEID9GGZY0Y=
knative.dev/pkg v0.0.0-20220621173822-9c5a7317fa9d h1:H/naKtQODjCIr9wFb1YOG17CgbkgSFMy5dX0WZnrz6o=
knative.dev/pkg v0.0.0-20220621173822-9c5a7317fa9d/go.mod h1:hmwyuQ6uQlqLVEM4lJGg6LZ12gbnUQv9kH88sA5pLDg=
knative.dev/reconciler-test v0.0.0-20220610141926-64ffd15625ec/go.mod h1:/vZ6/AKGYQQPYY/7BSebqt62QrxiJ97T3r1jso9dAJg=
knative.dev/serving v0.32.1-0.20220621141822-357316355d00 h1:YWCweftFQuy+cflkhYw2a3xQP7mqN5kGyYEGeZSVzsE=
knative.dev/serving v0.32.1-0.20220621141822-357316355d00/go.mod h1:2DTwW8KZVZgsobW0EYhv4nTR8+LhKu2pZhEAoytUqE8=
knative.dev/pkg v0.0.0-20220629132331-f4ae0aff5b9c/go.mod h1:hmwyuQ6uQlqLVEM4lJGg6LZ12gbnUQv9kH88sA5pLDg=
knative.dev/pkg v0.0.0-20220701013933-97eb1507655e h1:qYqrYdHYJoZ8cevHTRP49vYdXVM3O0iTChw4+EQdOTo=
knative.dev/pkg v0.0.0-20220701013933-97eb1507655e/go.mod h1:94rzLJg0i5UOFeqtOTkVnDEmpHC93IaOeCo3ofUpTVw=
knative.dev/reconciler-test v0.0.0-20220610014025-b62b10257cbf/go.mod h1:/ps2aEdmtjId+pUGJuuADQN4IucIp4rI7KnrYEahOgE=
knative.dev/reconciler-test v0.0.0-20220628015529-24511be23df8/go.mod h1:KTK98X+RGi33WWJMCECLmELIX3UjrinnmskHDok4hPo=
knative.dev/serving v0.32.1-0.20220701014055-df215c70ec10 h1:CfVZWyN0sCMY5fKvbfhXqVbLjBLCehczN10ecRwLdIU=
knative.dev/serving v0.32.1-0.20220701014055-df215c70ec10/go.mod h1:onBQXrF0iI1i81Gb0E2SAsVXCqu+OX78M0hHdn1TPmA=
mvdan.cc/gofumpt v0.1.1/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48=
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=

View File

@ -234,13 +234,15 @@ function prepare_dot_release() {
# Use the original tag (ie. potentially with a knative- prefix) when determining the last version commit sha
local github_tag="$(hub_tool release | grep "${last_version}")"
local last_release_commit="$(git rev-list -n 1 "${github_tag}")"
local last_release_commit_filtered="$(git rev-list --invert-grep --grep "\[skip-dot-release\]" -n 1 "${github_tag}")"
local release_branch_commit="$(git rev-list -n 1 upstream/"${RELEASE_BRANCH}")"
local release_branch_commit_filtered="$(git rev-list --invert-grep --grep "\[skip-dot-release\]" -n 1 upstream/"${RELEASE_BRANCH}")"
[[ -n "${last_release_commit}" ]] || abort "cannot get last release commit"
[[ -n "${release_branch_commit}" ]] || abort "cannot get release branch last commit"
echo "Version ${last_version} is at commit ${last_release_commit}"
echo "Branch ${RELEASE_BRANCH} is at commit ${release_branch_commit}"
if [[ "${last_release_commit}" == "${release_branch_commit}" ]]; then
echo "*** Branch ${RELEASE_BRANCH} has no new cherry-picks since release ${last_version}"
echo "Version ${last_version} is at commit ${last_release_commit}. Comparing using ${last_release_commit_filtered}. If it is different is because commits with the [skip-dot-release] flag in their commit body are not being considered."
echo "Branch ${RELEASE_BRANCH} is at commit ${release_branch_commit}. Comparing using ${release_branch_commit_filtered}. If it is different is because commits with the [skip-dot-release] flag in their commit body are not being considered."
if [[ "${last_release_commit_filtered}" == "${release_branch_commit_filtered}" ]]; then
echo "*** Branch ${RELEASE_BRANCH} has no new cherry-picks (ignoring commits with [skip-dot-release]) since release ${last_version}."
echo "*** No dot release will be generated, as no changes exist"
exit 0
fi

View File

@ -2,7 +2,7 @@
// +build !ignore_autogenerated
/*
Copyright 2021 The Knative Authors
Copyright 2022 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
// +build !ignore_autogenerated
/*
Copyright 2021 The Knative Authors
Copyright 2022 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
// +build !ignore_autogenerated
/*
Copyright 2021 The Knative Authors
Copyright 2022 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 The Knative Authors
Copyright 2022 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
// +build !ignore_autogenerated
/*
Copyright 2021 The Knative Authors
Copyright 2022 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
// +build !ignore_autogenerated
/*
Copyright 2021 The Knative Authors
Copyright 2022 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -2,7 +2,7 @@
// +build !ignore_autogenerated
/*
Copyright 2021 The Knative Authors
Copyright 2022 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -51,6 +51,10 @@ const (
// ServiceTypeKey is the label key attached to a service specifying the type of service.
// e.g. Public, Private.
ServiceTypeKey = networking.GroupName + "/serviceType"
// ServingCertName is used by the secret name for internal TLS as "namespace-${ServingCertName}".
// Also the secret name has the label with "${ServingCertName}: data-plane"
ServingCertName = "serving-certs"
)
// ServiceType is the enumeration type for the Kubernetes services

View File

@ -74,12 +74,27 @@ const (
MinSplitPercentage = 0.25
)
type Options struct {
Namespace string
DisableLogStream bool
}
// Setup creates client to run Knative Service requests
func Setup(t testing.TB, namespace ...string) *Clients {
func Setup(t testing.TB, opts ...Options) *Clients {
var o Options
switch len(opts) {
case 1:
o = opts[0]
case 0:
o = Options{}
default:
t.Fatalf("multiple Options supplied to Setup")
}
t.Helper()
logging.InitializeLogger()
if !ServingFlags.DisableLogStream {
if !ServingFlags.DisableLogStream && !o.DisableLogStream {
cancel := logstream.Start(t)
t.Cleanup(cancel)
}
@ -90,8 +105,8 @@ func Setup(t testing.TB, namespace ...string) *Clients {
}
ns := ServingFlags.TestNamespace
if len(namespace) > 0 {
ns = namespace[0]
if len(o.Namespace) > 0 {
ns = o.Namespace
}
clients, err := NewClients(cfg, ns)

View File

@ -359,12 +359,15 @@ function install() {
fi
if (( ENABLE_TLS )); then
echo "Generate certificates"
bash ${REPO_ROOT_DIR}/test/generate-cert.sh
echo "Patch to config-network to enable internal encryption"
kubectl patch configmap/config-network \
-n ${SYSTEM_NAMESPACE} \
--type merge \
-p '{"data":{"internal-encryption":"true"}}'
echo "Patch to activator to serve TLS"
kubectl apply -n ${SYSTEM_NAMESPACE} -f ${REPO_ROOT_DIR}/test/config/tls/config-network.yaml
echo "Restart activator to mount the certificates"
kubectl delete pod -n ${SYSTEM_NAMESPACE} -l app=activator
kubectl wait --timeout=60s --for=condition=Available deployment -n ${SYSTEM_NAMESPACE} activator
fi
}

View File

@ -1,47 +0,0 @@
#!/usr/bin/env bash
# Copyright 2022 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
SYSTEM_NAMESPACE="${SYSTEM_NAMESPACE:-knative-serving}"
TEST_NAMESPACE=serving-tests
TEST_NAMESPACE_ALT=serving-tests-alt
out_dir="$(mktemp -d /tmp/certs-XXX)"
san="knative"
# Generate Root key and cert.
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj '/O=Example/CN=Example' -keyout "${out_dir}"/root.key -out "${out_dir}"/root.crt
# Create server key
openssl req -out "${out_dir}"/tls.csr -newkey rsa:2048 -nodes -keyout "${out_dir}"/tls.key -subj "/CN=Example/O=Example" -addext "subjectAltName = DNS:$san"
# Create server certs
openssl x509 -req -extfile <(printf "subjectAltName=DNS:$san") -days 365 -in "${out_dir}"/tls.csr -CA "${out_dir}"/root.crt -CAkey "${out_dir}"/root.key -CAcreateserial -out "${out_dir}"/tls.crt
# Create secret
kubectl create -n ${SYSTEM_NAMESPACE} secret generic serving-ca \
--from-file=ca.crt="${out_dir}"/root.crt --dry-run=client -o yaml | kubectl apply -f -
kubectl create -n ${SYSTEM_NAMESPACE} secret tls server-certs \
--key="${out_dir}"/tls.key \
--cert="${out_dir}"/tls.crt --dry-run=client -o yaml | kubectl apply -f -
# Create secrets for test namespaces
kubectl create -n ${TEST_NAMESPACE} secret tls server-certs \
--key="${out_dir}"/tls.key \
--cert="${out_dir}"/tls.crt --dry-run=client -o yaml | kubectl apply -f -
kubectl create -n ${TEST_NAMESPACE_ALT} secret tls server-certs \
--key="${out_dir}"/tls.key \
--cert="${out_dir}"/tls.crt --dry-run=client -o yaml | kubectl apply -f -

10
vendor/modules.txt vendored
View File

@ -894,7 +894,7 @@ k8s.io/utils/lru
k8s.io/utils/net
k8s.io/utils/pointer
k8s.io/utils/trace
# knative.dev/eventing v0.32.1-0.20220614135415-c1b0ea692715
# knative.dev/eventing v0.32.1-0.20220701014234-f69e18140a57
## explicit; go 1.16
knative.dev/eventing/pkg/apis/config
knative.dev/eventing/pkg/apis/duck
@ -922,10 +922,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-20220610014127-dc6c287516dc
# knative.dev/hack v0.0.0-20220701014203-65c463ac8c98
## explicit; go 1.14
knative.dev/hack
# knative.dev/networking v0.0.0-20220614203516-07c9d7614c61
# knative.dev/networking v0.0.0-20220701013832-716a8b82e4b5
## explicit; go 1.17
knative.dev/networking/pkg
knative.dev/networking/pkg/apis/networking
@ -940,7 +940,7 @@ knative.dev/networking/pkg/http/probe
knative.dev/networking/pkg/http/proxy
knative.dev/networking/pkg/http/stats
knative.dev/networking/pkg/k8s
# knative.dev/pkg v0.0.0-20220621173822-9c5a7317fa9d
# knative.dev/pkg v0.0.0-20220701013933-97eb1507655e
## explicit; go 1.17
knative.dev/pkg/apis
knative.dev/pkg/apis/duck
@ -990,7 +990,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.32.1-0.20220621141822-357316355d00
# knative.dev/serving v0.32.1-0.20220701014055-df215c70ec10
## explicit; go 1.17
knative.dev/serving/pkg/apis/autoscaling
knative.dev/serving/pkg/apis/autoscaling/v1alpha1