upgrade to latest dependencies (#1750)

bumping knative.dev/eventing c5ef068...0fe923c:
  > 0fe923c Use knative/action/go/downstream-test (# 6573)
  > 53a186d Update pelletier/go-toml/v2 to v2.0.5 (# 6574)
bumping knative.dev/serving e95e99d...6e597fa:
  > 6e597fa Enable emptyDir volumes for Knative Services (# 13405)
  > 6264c1b Fix path validation when running tests on Windows (# 13400)

Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2022-10-18 11:28:10 +01:00 committed by GitHub
parent 0323f52d12
commit 16f26ba1e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 20 deletions

4
go.mod
View File

@ -20,11 +20,11 @@ require (
k8s.io/cli-runtime v0.25.2
k8s.io/client-go v0.25.2
k8s.io/code-generator v0.25.2
knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31
knative.dev/eventing v0.34.1-0.20221018032010-0fe923cd8a5b
knative.dev/hack v0.0.0-20221010154335-3fdc50b9c24a
knative.dev/networking v0.0.0-20221012062251-58f3e6239b4f
knative.dev/pkg v0.0.0-20221011175852-714b7630a836
knative.dev/serving v0.34.1-0.20221017132158-e95e99d6c188
knative.dev/serving v0.34.1-0.20221017223110-6e597fa7fd73
sigs.k8s.io/yaml v1.3.0
)

8
go.sum
View File

@ -1089,16 +1089,16 @@ k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 h1:MQ8BAZPZlWk3S9K4a9NCkI
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1/go.mod h1:C/N6wCaBHeBHkHUesQOQy2/MZqGgMAFPqGsGQLdbZBU=
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed h1:jAne/RjBTyawwAy0utX5eqigAwz/lQhTmy+Hr/Cpue4=
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31 h1:fOJj2lwlAeyByronb3UiG5gW5DIcBxF6G0YOdbSjCFY=
knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31/go.mod h1:w0Ddyjs/jG94prb90W+qRgqVQxr9pmh9i78TiED1gHY=
knative.dev/eventing v0.34.1-0.20221018032010-0fe923cd8a5b h1:fgr/yRUg7nHSP0GM4eVO9eRDNV129SrSL3NfPojL6KE=
knative.dev/eventing v0.34.1-0.20221018032010-0fe923cd8a5b/go.mod h1:MEqB5frQ5jQ2/A+WHpDU2VNLXum+4o7TiMhTdCvji9w=
knative.dev/hack v0.0.0-20221010154335-3fdc50b9c24a h1:yfq1OMrkyYkxDeM0pmAOeN4YF16R/WG0C+VvLBeq4uc=
knative.dev/hack v0.0.0-20221010154335-3fdc50b9c24a/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/networking v0.0.0-20221012062251-58f3e6239b4f h1:e/08+ofUjGjSYV2Usvb22IbkX4MjoiywbRtnXUK3FQY=
knative.dev/networking v0.0.0-20221012062251-58f3e6239b4f/go.mod h1:GciicKYf4aWE138pT2ZKkZ/E10rd0Kt4ziX52A/HnVY=
knative.dev/pkg v0.0.0-20221011175852-714b7630a836 h1:0N7Zo/O+xeUUebJPm9keBaGclrUoEbljr3J1MsqtaIM=
knative.dev/pkg v0.0.0-20221011175852-714b7630a836/go.mod h1:DMTRDJ5WRxf/DrlOPzohzfhSuJggscLZ8EavOq9O/x8=
knative.dev/serving v0.34.1-0.20221017132158-e95e99d6c188 h1:fDNdQSVQBc+2O7BIncZrUi6t6IJpS29ITEftNcEFcvU=
knative.dev/serving v0.34.1-0.20221017132158-e95e99d6c188/go.mod h1:eKvzlUmOFunHbVqkP5kmrNKSsjpo9TrYjWk/TK/4eGA=
knative.dev/serving v0.34.1-0.20221017223110-6e597fa7fd73 h1:8Z/YcMlmtXaIoB1Z7eG2Ek/WzN+742byNCHY7ygrVMI=
knative.dev/serving v0.34.1-0.20221017223110-6e597fa7fd73/go.mod h1:eKvzlUmOFunHbVqkP5kmrNKSsjpo9TrYjWk/TK/4eGA=
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

@ -63,7 +63,7 @@ func defaultFeaturesConfig() *Features {
PodSpecSchedulerName: Disabled,
ContainerSpecAddCapabilities: Disabled,
PodSpecTolerations: Disabled,
PodSpecVolumesEmptyDir: Disabled,
PodSpecVolumesEmptyDir: Enabled,
PodSpecPersistentVolumeClaim: Disabled,
PodSpecPersistentVolumeWrite: Disabled,
QueueProxyMountPodInfo: Disabled,

View File

@ -20,7 +20,7 @@ import (
"context"
"fmt"
"math"
"path/filepath"
"path"
"strings"
"github.com/google/go-containerregistry/pkg/name"
@ -628,18 +628,18 @@ func validateVolumeMounts(mounts []corev1.VolumeMount, volumes map[string]corev1
if vm.MountPath == "" {
errs = errs.Also(apis.ErrMissingField("mountPath").ViaIndex(i))
} else if reservedPaths.Has(filepath.Clean(vm.MountPath)) {
} else if reservedPaths.Has(path.Clean(vm.MountPath)) {
errs = errs.Also((&apis.FieldError{
Message: fmt.Sprintf("mountPath %q is a reserved path", filepath.Clean(vm.MountPath)),
Message: fmt.Sprintf("mountPath %q is a reserved path", path.Clean(vm.MountPath)),
Paths: []string{"mountPath"},
}).ViaIndex(i))
} else if !filepath.IsAbs(vm.MountPath) {
} else if !path.IsAbs(vm.MountPath) {
errs = errs.Also(apis.ErrInvalidValue(vm.MountPath, "mountPath").ViaIndex(i))
} else if seenMountPath.Has(filepath.Clean(vm.MountPath)) {
} else if seenMountPath.Has(path.Clean(vm.MountPath)) {
errs = errs.Also(apis.ErrInvalidValue(
fmt.Sprintf("%q must be unique", vm.MountPath), "mountPath").ViaIndex(i))
}
seenMountPath.Insert(filepath.Clean(vm.MountPath))
seenMountPath.Insert(path.Clean(vm.MountPath))
shouldCheckReadOnlyVolume := volumes[vm.Name].EmptyDir == nil && volumes[vm.Name].PersistentVolumeClaim == nil
if shouldCheckReadOnlyVolume && !vm.ReadOnly {

View File

@ -75,14 +75,12 @@ if (( SHORT )); then
fi
toggle_feature autocreateClusterDomainClaims true config-network || fail_test
toggle_feature kubernetes.podspec-volumes-emptydir Enabled
go_test_e2e -timeout=30m \
./test/conformance/api/... \
./test/conformance/runtime/... \
./test/e2e \
${parallelism} \
${TEST_OPTIONS} || failed=1
toggle_feature kubernetes.podspec-volumes-emptydir Disabled
toggle_feature autocreateClusterDomainClaims false config-network || fail_test
toggle_feature tag-header-based-routing Enabled
@ -113,13 +111,11 @@ kubectl replace cm "config-gc" -n ${SYSTEM_NAMESPACE} -f ${TMP_DIR}/config-gc.ya
# Run HPA tests
go_test_e2e -timeout=30m -tags=hpa ./test/e2e ${TEST_OPTIONS} || failed=1
# Run emptyDir, initContainers tests with alpha enabled avoiding any issues with the testing options guard above
# Run initContainers tests with alpha enabled avoiding any issues with the testing options guard above
# InitContainers test uses emptyDir.
toggle_feature kubernetes.podspec-volumes-emptydir Enabled
toggle_feature kubernetes.podspec-init-containers Enabled
go_test_e2e -timeout=2m ./test/e2e/initcontainers ${TEST_OPTIONS} || failed=1
toggle_feature kubernetes.podspec-init-containers Disabled
toggle_feature kubernetes.podspec-volumes-emptydir Disabled
# RUN PVC tests with default storage class.
toggle_feature kubernetes.podspec-persistent-volume-claim Enabled

4
vendor/modules.txt vendored
View File

@ -917,7 +917,7 @@ k8s.io/utils/net
k8s.io/utils/pointer
k8s.io/utils/strings/slices
k8s.io/utils/trace
# knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31
# knative.dev/eventing v0.34.1-0.20221018032010-0fe923cd8a5b
## explicit; go 1.18
knative.dev/eventing/pkg/apis/config
knative.dev/eventing/pkg/apis/duck
@ -1013,7 +1013,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.34.1-0.20221017132158-e95e99d6c188
# knative.dev/serving v0.34.1-0.20221017223110-6e597fa7fd73
## explicit; go 1.18
knative.dev/serving/pkg/apis/autoscaling
knative.dev/serving/pkg/apis/autoscaling/v1alpha1