Skip to content

Commit b5ee750

Browse files
[main] Upgrade to latest dependencies (#1355)
* upgrade to latest dependencies 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...d108ba9: > d108ba9 Allow setting seccompProfile to enable using restricted security profile (# 13401) > 388128b Run queue proxy with restricted profile (# 13376) > 6e597fa Enable emptyDir volumes for Knative Services (# 13405) > 6264c1b Fix path validation when running tests on Windows (# 13400) bumping knative.dev/client be74c58...16f26ba: > 16f26ba upgrade to latest dependencies (# 1750) > 0323f52 upgrade to latest dependencies (# 1749) bumping github.com/tektoncd/cli ffd3f27...5147967: > 5147967 New version v0.23.1 > 8fe7ac6 fix error while deleting pr without status > 013a5df This will fix the version command failing for chain and operator > b5a12e1 Updates the configMap name for Operator version > 85aa47f Adds namespace where operator is installed > ec7cf5e New version v0.23.0 bumping github.com/tektoncd/triggers 4365edb...8b4da3f: > 8b4da3f Bump Go version to 1.17.8 > efadb65 Fix CEL example: Wrong Param Name > 645dbbb Build tekton triggers with golang 1.17 > a89a8fd Add v0.19.0 docs link Signed-off-by: Knative Automation <[email protected]> * Fix Tekton version Signed-off-by: Knative Automation <[email protected]> Co-authored-by: David Simansky <[email protected]>
1 parent d7d356b commit b5ee750

File tree

6 files changed

+29
-21
lines changed

6 files changed

+29
-21
lines changed

Diff for: go.mod

+6-4
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ require (
4646
k8s.io/apimachinery v0.25.2
4747
k8s.io/client-go v1.5.2
4848
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
49-
knative.dev/client v0.34.1-0.20221013140753-be74c58ae0e5
50-
knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31
49+
knative.dev/client v0.34.1-0.20221018194610-0b99fc58d67b
50+
knative.dev/eventing v0.35.0
5151
knative.dev/hack v0.0.0-20221010154335-3fdc50b9c24a
5252
knative.dev/pkg v0.0.0-20221011175852-714b7630a836
53-
knative.dev/serving v0.34.1-0.20221017132158-e95e99d6c188
53+
knative.dev/serving v0.34.1-0.20221018142810-e82287df024c
5454
)
5555

5656
require github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
@@ -97,7 +97,7 @@ require (
9797
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
9898
github.com/cespare/xxhash/v2 v2.1.2 // indirect
9999
github.com/chrismellard/docker-credential-acr-env v0.0.0-20220327082430-c57b701bfc08 // indirect
100-
github.com/cloudevents/sdk-go/sql/v2 v2.0.0-20220930150014-52b12276cc4a // indirect
100+
github.com/cloudevents/sdk-go/sql/v2 v2.8.0 // indirect
101101
github.com/containerd/cgroups v1.0.3 // indirect
102102
github.com/containerd/stargz-snapshotter/estargz v0.12.0 // indirect
103103
github.com/containers/storage v1.38.2 // indirect
@@ -241,6 +241,8 @@ require (
241241
)
242242

243243
replace (
244+
// Version used in Eventing
245+
github.com/cloudevents/sdk-go/sql/v2 => github.com/cloudevents/sdk-go/sql/v2 v2.0.0-20220930150014-52b12276cc4a
244246
// Tekton CLI uses newer version without currently used constructor code
245247
github.com/hinshun/vt10x => github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c
246248
// update docker to be compatible with version used by pack and removes invalid pseudo-version

Diff for: go.sum

+6-6
Original file line numberDiff line numberDiff line change
@@ -2864,18 +2864,18 @@ k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
28642864
k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
28652865
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed h1:jAne/RjBTyawwAy0utX5eqigAwz/lQhTmy+Hr/Cpue4=
28662866
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
2867-
knative.dev/client v0.34.1-0.20221013140753-be74c58ae0e5 h1:c/js2jhUtouVp7mtajmqRGaO84qwCWXd73JDyNOq3Nc=
2868-
knative.dev/client v0.34.1-0.20221013140753-be74c58ae0e5/go.mod h1:V7AR8YiKD2xesbVUeyFFmw3cPomfGbsdfP/S0zhTiZo=
2869-
knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31 h1:fOJj2lwlAeyByronb3UiG5gW5DIcBxF6G0YOdbSjCFY=
2870-
knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31/go.mod h1:w0Ddyjs/jG94prb90W+qRgqVQxr9pmh9i78TiED1gHY=
2867+
knative.dev/client v0.34.1-0.20221018194610-0b99fc58d67b h1:ZDsJHEAjUKfdIa7pZLjR/k3i9hdWE5t6VbyMUCucHMU=
2868+
knative.dev/client v0.34.1-0.20221018194610-0b99fc58d67b/go.mod h1:NfWs4IN43Q5WfcVM9XuhslmCq+tsReknbWL74AKuPmM=
2869+
knative.dev/eventing v0.35.0 h1:0sn4Fc0OajdEf4s+0SucwzAIGvO3LZA/BZHsSwfjHes=
2870+
knative.dev/eventing v0.35.0/go.mod h1:MEqB5frQ5jQ2/A+WHpDU2VNLXum+4o7TiMhTdCvji9w=
28712871
knative.dev/hack v0.0.0-20221010154335-3fdc50b9c24a h1:yfq1OMrkyYkxDeM0pmAOeN4YF16R/WG0C+VvLBeq4uc=
28722872
knative.dev/hack v0.0.0-20221010154335-3fdc50b9c24a/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
28732873
knative.dev/networking v0.0.0-20221012062251-58f3e6239b4f h1:e/08+ofUjGjSYV2Usvb22IbkX4MjoiywbRtnXUK3FQY=
28742874
knative.dev/networking v0.0.0-20221012062251-58f3e6239b4f/go.mod h1:GciicKYf4aWE138pT2ZKkZ/E10rd0Kt4ziX52A/HnVY=
28752875
knative.dev/pkg v0.0.0-20221011175852-714b7630a836 h1:0N7Zo/O+xeUUebJPm9keBaGclrUoEbljr3J1MsqtaIM=
28762876
knative.dev/pkg v0.0.0-20221011175852-714b7630a836/go.mod h1:DMTRDJ5WRxf/DrlOPzohzfhSuJggscLZ8EavOq9O/x8=
2877-
knative.dev/serving v0.34.1-0.20221017132158-e95e99d6c188 h1:fDNdQSVQBc+2O7BIncZrUi6t6IJpS29ITEftNcEFcvU=
2878-
knative.dev/serving v0.34.1-0.20221017132158-e95e99d6c188/go.mod h1:eKvzlUmOFunHbVqkP5kmrNKSsjpo9TrYjWk/TK/4eGA=
2877+
knative.dev/serving v0.34.1-0.20221018142810-e82287df024c h1:6ZL+bWs4Z/UGOdVDVncaSzZmvA5VLd4maLuENlLzjfk=
2878+
knative.dev/serving v0.34.1-0.20221018142810-e82287df024c/go.mod h1:eKvzlUmOFunHbVqkP5kmrNKSsjpo9TrYjWk/TK/4eGA=
28792879
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
28802880
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
28812881
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=

Diff for: vendor/knative.dev/serving/pkg/apis/config/features.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func defaultFeaturesConfig() *Features {
6363
PodSpecSchedulerName: Disabled,
6464
ContainerSpecAddCapabilities: Disabled,
6565
PodSpecTolerations: Disabled,
66-
PodSpecVolumesEmptyDir: Disabled,
66+
PodSpecVolumesEmptyDir: Enabled,
6767
PodSpecPersistentVolumeClaim: Disabled,
6868
PodSpecPersistentVolumeWrite: Disabled,
6969
QueueProxyMountPodInfo: Disabled,

Diff for: vendor/knative.dev/serving/pkg/apis/serving/fieldmask.go

+5
Original file line numberDiff line numberDiff line change
@@ -600,12 +600,14 @@ func PodSecurityContextMask(ctx context.Context, in *corev1.PodSecurityContext)
600600
out.RunAsNonRoot = in.RunAsNonRoot
601601
out.FSGroup = in.FSGroup
602602
out.SupplementalGroups = in.SupplementalGroups
603+
out.SeccompProfile = in.SeccompProfile
603604

604605
// Disallowed
605606
// This list is unnecessary, but added here for clarity
606607
out.SELinuxOptions = nil
607608
out.WindowsOptions = nil
608609
out.Sysctls = nil
610+
out.FSGroupChangePolicy = nil
609611

610612
return out
611613
}
@@ -631,6 +633,9 @@ func SecurityContextMask(ctx context.Context, in *corev1.SecurityContext) *corev
631633
// AllowPrivilegeEscalation when unset can behave the same way as true
632634
// We do want the ability for folks to set this value to false
633635
out.AllowPrivilegeEscalation = in.AllowPrivilegeEscalation
636+
// SeccompProfile defaults to "unconstrained", but the safe values are
637+
// "RuntimeDefault" or "Localhost" (with localhost path set)
638+
out.SeccompProfile = in.SeccompProfile
634639

635640
// Disallowed
636641
// This list is unnecessary, but added here for clarity

Diff for: vendor/knative.dev/serving/pkg/apis/serving/k8s_validation.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"fmt"
2222
"math"
23-
"path/filepath"
23+
"path"
2424
"strings"
2525

2626
"github.com/google/go-containerregistry/pkg/name"
@@ -628,18 +628,18 @@ func validateVolumeMounts(mounts []corev1.VolumeMount, volumes map[string]corev1
628628

629629
if vm.MountPath == "" {
630630
errs = errs.Also(apis.ErrMissingField("mountPath").ViaIndex(i))
631-
} else if reservedPaths.Has(filepath.Clean(vm.MountPath)) {
631+
} else if reservedPaths.Has(path.Clean(vm.MountPath)) {
632632
errs = errs.Also((&apis.FieldError{
633-
Message: fmt.Sprintf("mountPath %q is a reserved path", filepath.Clean(vm.MountPath)),
633+
Message: fmt.Sprintf("mountPath %q is a reserved path", path.Clean(vm.MountPath)),
634634
Paths: []string{"mountPath"},
635635
}).ViaIndex(i))
636-
} else if !filepath.IsAbs(vm.MountPath) {
636+
} else if !path.IsAbs(vm.MountPath) {
637637
errs = errs.Also(apis.ErrInvalidValue(vm.MountPath, "mountPath").ViaIndex(i))
638-
} else if seenMountPath.Has(filepath.Clean(vm.MountPath)) {
638+
} else if seenMountPath.Has(path.Clean(vm.MountPath)) {
639639
errs = errs.Also(apis.ErrInvalidValue(
640640
fmt.Sprintf("%q must be unique", vm.MountPath), "mountPath").ViaIndex(i))
641641
}
642-
seenMountPath.Insert(filepath.Clean(vm.MountPath))
642+
seenMountPath.Insert(path.Clean(vm.MountPath))
643643

644644
shouldCheckReadOnlyVolume := volumes[vm.Name].EmptyDir == nil && volumes[vm.Name].PersistentVolumeClaim == nil
645645
if shouldCheckReadOnlyVolume && !vm.ReadOnly {

Diff for: vendor/modules.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ github.com/cespare/xxhash/v2
288288
github.com/chrismellard/docker-credential-acr-env/pkg/credhelper
289289
github.com/chrismellard/docker-credential-acr-env/pkg/registry
290290
github.com/chrismellard/docker-credential-acr-env/pkg/token
291-
# github.com/cloudevents/sdk-go/sql/v2 v2.0.0-20220930150014-52b12276cc4a
291+
# github.com/cloudevents/sdk-go/sql/v2 v2.8.0 => github.com/cloudevents/sdk-go/sql/v2 v2.0.0-20220930150014-52b12276cc4a
292292
## explicit; go 1.17
293293
github.com/cloudevents/sdk-go/sql/v2
294294
github.com/cloudevents/sdk-go/sql/v2/expression
@@ -1651,7 +1651,7 @@ k8s.io/utils/net
16511651
k8s.io/utils/pointer
16521652
k8s.io/utils/strings/slices
16531653
k8s.io/utils/trace
1654-
# knative.dev/client v0.34.1-0.20221013140753-be74c58ae0e5
1654+
# knative.dev/client v0.34.1-0.20221018194610-0b99fc58d67b
16551655
## explicit; go 1.18
16561656
knative.dev/client/lib/test
16571657
knative.dev/client/pkg/apis/client
@@ -1667,7 +1667,7 @@ knative.dev/client/pkg/serving/v1
16671667
knative.dev/client/pkg/util
16681668
knative.dev/client/pkg/util/mock
16691669
knative.dev/client/pkg/wait
1670-
# knative.dev/eventing v0.34.1-0.20221017124757-c5ef0686df31
1670+
# knative.dev/eventing v0.35.0
16711671
## explicit; go 1.18
16721672
knative.dev/eventing/pkg/apis/config
16731673
knative.dev/eventing/pkg/apis/duck
@@ -1744,7 +1744,7 @@ knative.dev/pkg/tracing/config
17441744
knative.dev/pkg/tracing/propagation
17451745
knative.dev/pkg/tracing/propagation/tracecontextb3
17461746
knative.dev/pkg/tracker
1747-
# knative.dev/serving v0.34.1-0.20221017132158-e95e99d6c188
1747+
# knative.dev/serving v0.34.1-0.20221018142810-e82287df024c
17481748
## explicit; go 1.18
17491749
knative.dev/serving/pkg/apis/autoscaling
17501750
knative.dev/serving/pkg/apis/autoscaling/v1alpha1
@@ -1861,6 +1861,7 @@ sigs.k8s.io/structured-merge-diff/v4/value
18611861
# sigs.k8s.io/yaml v1.3.0
18621862
## explicit; go 1.12
18631863
sigs.k8s.io/yaml
1864+
# github.com/cloudevents/sdk-go/sql/v2 => github.com/cloudevents/sdk-go/sql/v2 v2.0.0-20220930150014-52b12276cc4a
18641865
# github.com/hinshun/vt10x => github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c
18651866
# github.com/openshift/source-to-image => github.com/boson-project/source-to-image v1.3.2
18661867
# k8s.io/client-go => k8s.io/client-go v0.25.2

0 commit comments

Comments
 (0)