From 76a9461efd3e9a2c772da14f1f9c996c9a795a82 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Fri, 18 Apr 2025 13:18:46 +0000 Subject: [PATCH] upgrade to latest dependencies bumping knative.dev/eventing 5f466ad...a7b2f1c: > a7b2f1c [Automated] Update eventing-eventing-integrations nightly (# 8566) > 7c466cb [main] Update community files (# 8565) > c0cf4f4 [main] Upgrade to latest dependencies (# 8564) bumping knative.dev/serving c7e3075...880ea71: > 880ea71 Update net-contour nightly (# 15852) > 93023e8 feat: add support for CSI volumes (# 15815) > c7f03af Support exec readiness probes for sidecar containers (# 15773) > a221c53 Update net-kourier nightly (# 15849) > e88d4dc upgrade to latest dependencies (# 15845) > 1d9855f Update net-gateway-api nightly (# 15847) > e6c1839 Update community files (# 15848) bumping knative.dev/networking f1b08e6...6268d93: > 6268d93 upgrade to latest dependencies (# 1059) > 5a309fd upgrade to latest dependencies (# 1058) Signed-off-by: Knative Automation --- go.mod | 6 +++--- go.sum | 12 ++++++------ .../knative.dev/serving/pkg/apis/config/features.go | 4 ++++ .../serving/pkg/apis/serving/fieldmask.go | 4 ++++ .../serving/pkg/apis/serving/k8s_validation.go | 11 +++++++++++ vendor/modules.txt | 6 +++--- 6 files changed, 31 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 4f5d2d7334..8377f6b04a 100644 --- a/go.mod +++ b/go.mod @@ -21,11 +21,11 @@ require ( k8s.io/client-go v0.32.2 k8s.io/code-generator v0.32.2 knative.dev/caching v0.0.0-20250415164313-8f20a1163dbf - knative.dev/eventing v0.44.1-0.20250414180812-5f466ad3711a + knative.dev/eventing v0.44.1-0.20250417160803-a7b2f1c9f66f knative.dev/hack v0.0.0-20250331013814-c577ed9f7775 knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883 knative.dev/reconciler-test v0.0.0-20250415170512-23f86169156f - knative.dev/serving v0.44.1-0.20250415122313-c7e30759e276 + knative.dev/serving v0.44.1-0.20250418122003-880ea71a0c15 sigs.k8s.io/yaml v1.4.0 ) @@ -157,7 +157,7 @@ require ( k8s.io/klog/v2 v2.130.1 // indirect k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect - knative.dev/networking v0.0.0-20250411212114-f1b08e6cfc7f // indirect + knative.dev/networking v0.0.0-20250415164913-6268d931d247 // indirect sigs.k8s.io/controller-runtime v0.19.0 // indirect sigs.k8s.io/gateway-api v1.1.0 // indirect sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect diff --git a/go.sum b/go.sum index 324047fe28..54ef88a675 100644 --- a/go.sum +++ b/go.sum @@ -1716,18 +1716,18 @@ k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJ k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= knative.dev/caching v0.0.0-20250415164313-8f20a1163dbf h1:qQnKB6mx+beHzsoKU8aKrRU0oWAfgzKG2JgWMzr8CrM= knative.dev/caching v0.0.0-20250415164313-8f20a1163dbf/go.mod h1:q8ma7YxJ8Dofr+5kf3qR72A/7Zxl9uqQlOdMwNgCXY4= -knative.dev/eventing v0.44.1-0.20250414180812-5f466ad3711a h1:NVEdYUpBeOUXn/oMmKFKpWGjpbQu1mWruoIiuuDH0Sw= -knative.dev/eventing v0.44.1-0.20250414180812-5f466ad3711a/go.mod h1:yfeVEbDoHBjz8+wFtAwJSgQt18FRXc3MhAmhyDz1lbE= +knative.dev/eventing v0.44.1-0.20250417160803-a7b2f1c9f66f h1:K+iLXIv7ek9KJ4IIi8pTAAdpBGFRJY1yM+wxjr4Nu/M= +knative.dev/eventing v0.44.1-0.20250417160803-a7b2f1c9f66f/go.mod h1:dlIk5DSCtUR8CAT6YgAB1PScYy8mz27oFCfBWN+8tG4= knative.dev/hack v0.0.0-20250331013814-c577ed9f7775 h1:UstB8/aowofYFHjLyZdPh1K7qB9BCx+lP1WuiCspYRE= knative.dev/hack v0.0.0-20250331013814-c577ed9f7775/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY= -knative.dev/networking v0.0.0-20250411212114-f1b08e6cfc7f h1:x1kpIezFHPUqIOUVbT2foQFrLtdwK9krzs4OfLyY5R4= -knative.dev/networking v0.0.0-20250411212114-f1b08e6cfc7f/go.mod h1:rjkDjuJfuA64ABptp9QZjWgOWkdRhuz2dP8KUIbE+PQ= +knative.dev/networking v0.0.0-20250415164913-6268d931d247 h1:BQcW8ur+WAmj6GCpYHyUyWoaJWVTs/75W1EObUV/bdA= +knative.dev/networking v0.0.0-20250415164913-6268d931d247/go.mod h1:Y6OMRz/12RC8fzVa3gAB6K8BR415xbF4z35IAbdMHFc= knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883 h1:UeOY7009M0EHwdyW3P35Fc1U6FJHzBrj6Gf370do8zY= knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883/go.mod h1:ptwLYr04MAyeoRvhnhhz0FFkVZTdYJV2QWnw9sZyFSM= knative.dev/reconciler-test v0.0.0-20250415170512-23f86169156f h1:4JZHD997Yav2K6JJU93sjxvcPXNHVY4lC1dWhzyeBXg= knative.dev/reconciler-test v0.0.0-20250415170512-23f86169156f/go.mod h1:jrNdg5OPDhfxYxXDLqA4iv9zvfLhNYpYKmaQvz4ZpRM= -knative.dev/serving v0.44.1-0.20250415122313-c7e30759e276 h1:qYhU3IH0mrNyKDMG0j03UvEY9ZhiwousMTYKcCCMGrM= -knative.dev/serving v0.44.1-0.20250415122313-c7e30759e276/go.mod h1:xUGf85a3Dssald2oNjNoqoZHxWeCPsGQICp3u227Zks= +knative.dev/serving v0.44.1-0.20250418122003-880ea71a0c15 h1:pXqh4Q2QOiUNteaQqrHEDOKjLDywJuF1F7I8K7Amt+k= +knative.dev/serving v0.44.1-0.20250418122003-880ea71a0c15/go.mod h1:yXmbxEHxO4O+CmRBq7HFZ0ZNMg+/WRbLio7759Qe5/I= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= diff --git a/vendor/knative.dev/serving/pkg/apis/config/features.go b/vendor/knative.dev/serving/pkg/apis/config/features.go index 89592a5985..61bf9b79f7 100644 --- a/vendor/knative.dev/serving/pkg/apis/config/features.go +++ b/vendor/knative.dev/serving/pkg/apis/config/features.go @@ -65,6 +65,7 @@ const ( FeaturePodSpecHostNetwork = "kubernetes.podspec-hostnetwork" FeaturePodSpecHostPID = "kubernetes.podspec-hostpid" FeaturePodSpecHostPath = "kubernetes.podspec-volumes-hostpath" + FeaturePodSpecCSI = "kubernetes.podspec-volumes-csi" FeaturePodSpecInitContainers = "kubernetes.podspec-init-containers" FeaturePodSpecNodeSelector = "kubernetes.podspec-nodeselector" FeaturePodSpecPVClaim = "kubernetes.podspec-persistent-volume-claim" @@ -99,6 +100,7 @@ func defaultFeaturesConfig() *Features { PodSpecTolerations: Disabled, PodSpecVolumesEmptyDir: Enabled, PodSpecVolumesHostPath: Disabled, + PodSpecVolumesCSI: Disabled, PodSpecPersistentVolumeClaim: Disabled, PodSpecPersistentVolumeWrite: Disabled, QueueProxyMountPodInfo: Disabled, @@ -137,6 +139,7 @@ func NewFeaturesConfigFromMap(data map[string]string) (*Features, error) { asFlag(FeaturePodSpecHostNetwork, &nc.PodSpecHostNetwork), asFlag(FeaturePodSpecHostPID, &nc.PodSpecHostPID), asFlag(FeaturePodSpecHostPath, &nc.PodSpecVolumesHostPath), + asFlag(FeaturePodSpecCSI, &nc.PodSpecVolumesCSI), asFlag(FeaturePodSpecInitContainers, &nc.PodSpecInitContainers), asFlag(FeaturePodSpecNodeSelector, &nc.PodSpecNodeSelector), asFlag(FeaturePodSpecPVClaim, &nc.PodSpecPersistentVolumeClaim), @@ -180,6 +183,7 @@ type Features struct { PodSpecTolerations Flag PodSpecVolumesEmptyDir Flag PodSpecVolumesHostPath Flag + PodSpecVolumesCSI Flag PodSpecInitContainers Flag PodSpecPersistentVolumeClaim Flag PodSpecPersistentVolumeWrite Flag diff --git a/vendor/knative.dev/serving/pkg/apis/serving/fieldmask.go b/vendor/knative.dev/serving/pkg/apis/serving/fieldmask.go index b1761e2387..a9328fd3ef 100644 --- a/vendor/knative.dev/serving/pkg/apis/serving/fieldmask.go +++ b/vendor/knative.dev/serving/pkg/apis/serving/fieldmask.go @@ -70,6 +70,10 @@ func VolumeSourceMask(ctx context.Context, in *corev1.VolumeSource) *corev1.Volu out.HostPath = in.HostPath } + if cfg.Features.PodSpecVolumesCSI != config.Disabled { + out.CSI = in.CSI + } + // Too many disallowed fields to list return out diff --git a/vendor/knative.dev/serving/pkg/apis/serving/k8s_validation.go b/vendor/knative.dev/serving/pkg/apis/serving/k8s_validation.go index ece260a968..4ffcd3d791 100644 --- a/vendor/knative.dev/serving/pkg/apis/serving/k8s_validation.go +++ b/vendor/knative.dev/serving/pkg/apis/serving/k8s_validation.go @@ -129,6 +129,10 @@ func validateVolume(ctx context.Context, volume corev1.Volume) *apis.FieldError errs = errs.Also(&apis.FieldError{Message: fmt.Sprintf("HostPath volume support is disabled, "+ "but found HostPath volume %s", volume.Name)}) } + if volume.CSI != nil && features.PodSpecVolumesCSI != config.Enabled { + errs = errs.Also(&apis.FieldError{Message: fmt.Sprintf("CSI volume support is disabled, "+ + "but found CSI volume %s", volume.Name)}) + } errs = errs.Also(apis.CheckDisallowedFields(volume, *VolumeMask(ctx, &volume))) if volume.Name == "" { errs = apis.ErrMissingField("name") @@ -169,6 +173,10 @@ func validateVolume(ctx context.Context, volume corev1.Volume) *apis.FieldError specified = append(specified, "hostPath") } + if vs.CSI != nil { + specified = append(specified, "csi") + } + if len(specified) == 0 { fieldPaths := []string{"secret", "configMap", "projected"} cfg := config.FromContextOrDefaults(ctx) @@ -181,6 +189,9 @@ func validateVolume(ctx context.Context, volume corev1.Volume) *apis.FieldError if cfg.Features.PodSpecVolumesHostPath == config.Enabled { fieldPaths = append(fieldPaths, "hostPath") } + if cfg.Features.PodSpecVolumesCSI == config.Enabled { + fieldPaths = append(fieldPaths, "csi") + } errs = errs.Also(apis.ErrMissingOneOf(fieldPaths...)) } else if len(specified) > 1 { errs = errs.Also(apis.ErrMultipleOneOf(specified...)) diff --git a/vendor/modules.txt b/vendor/modules.txt index e3596f05fe..c4e01c922f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1432,7 +1432,7 @@ k8s.io/utils/trace ## explicit; go 1.23.0 knative.dev/caching/pkg/apis/caching knative.dev/caching/pkg/apis/caching/v1alpha1 -# knative.dev/eventing v0.44.1-0.20250414180812-5f466ad3711a +# knative.dev/eventing v0.44.1-0.20250417160803-a7b2f1c9f66f ## explicit; go 1.23.0 knative.dev/eventing/cmd/heartbeats knative.dev/eventing/pkg/apis @@ -1525,7 +1525,7 @@ knative.dev/eventing/test/upgrade/prober/wathola/sender # knative.dev/hack v0.0.0-20250331013814-c577ed9f7775 ## explicit; go 1.21 knative.dev/hack -# knative.dev/networking v0.0.0-20250411212114-f1b08e6cfc7f +# knative.dev/networking v0.0.0-20250415164913-6268d931d247 ## explicit; go 1.23.0 knative.dev/networking/pkg knative.dev/networking/pkg/apis/networking @@ -1659,7 +1659,7 @@ knative.dev/reconciler-test/pkg/resources/service knative.dev/reconciler-test/pkg/resources/serviceaccount knative.dev/reconciler-test/pkg/state knative.dev/reconciler-test/resources/certificate -# knative.dev/serving v0.44.1-0.20250415122313-c7e30759e276 +# knative.dev/serving v0.44.1-0.20250418122003-880ea71a0c15 ## explicit; go 1.23.0 knative.dev/serving/pkg/apis/autoscaling knative.dev/serving/pkg/apis/autoscaling/v1alpha1