upgrade to latest dependencies (#1386)

bumping knative.dev/pkg 6ce976c...6eb8f18:
  > 6eb8f18 Update community files (# 2626)
  > 5cbee02 Filter reactor FieldErrors on validation to only error-level alerts. (# 2611)
  > 198b463 Cleanup: Turn multiple warnings into multiple warnings. (# 2619)
  > 728dfd8 Add FieldError#WrappedErrors to allow dependent code to have access (readonly) (# 2618)
bumping knative.dev/serving b44de34...c737bb1:
  > c737bb1 Update net-certmanager nightly (# 13425)
  > 21fc2b2 upgrade to latest dependencies (# 13424)
  > 81ebd47 upgrade to latest dependencies (# 13423)
bumping knative.dev/hack 9d2ae47...566898d:
  > 566898d Update community files (# 242)
bumping knative.dev/networking 0f6a54a...cb26aa7:
  > cb26aa7 upgrade to latest dependencies (# 726)
bumping knative.dev/eventing cdb52cc...6ea012a:
  > 6ea012a Update community files (# 6588)
  > ecf7a29 upgrade to latest dependencies (# 6585)

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-31 15:27:12 +00:00 committed by GitHub
parent c9fabb424a
commit 5c64dcb1ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 44 deletions

10
go.mod
View File

@ -47,10 +47,10 @@ require (
k8s.io/client-go v1.5.2
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
knative.dev/client v0.34.1-0.20221024014916-4a545d07fb1f
knative.dev/eventing v0.35.1-0.20221026043157-cdb52cc9f8cc
knative.dev/hack v0.0.0-20221024013916-9d2ae47c16b2
knative.dev/pkg v0.0.0-20221025200856-6ce976ce9255
knative.dev/serving v0.35.1-0.20221027131706-b44de340e7c3
knative.dev/eventing v0.35.1-0.20221031132216-6ea012a83781
knative.dev/hack v0.0.0-20221031132314-566898d800e9
knative.dev/pkg v0.0.0-20221031132215-6eb8f1845a9d
knative.dev/serving v0.35.1-0.20221031132512-c737bb132b1e
)
require github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
@ -232,7 +232,7 @@ require (
k8s.io/cli-runtime v0.25.2 // indirect
k8s.io/klog/v2 v2.70.2-0.20220707122935-0990e81f1a8f // indirect
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect
knative.dev/networking v0.0.0-20221026111258-0f6a54a6271f // indirect
knative.dev/networking v0.0.0-20221028034507-cb26aa7e2527 // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
sigs.k8s.io/kustomize/api v0.12.1 // indirect
sigs.k8s.io/kustomize/kyaml v0.13.9 // indirect

20
go.sum
View File

@ -2866,16 +2866,16 @@ k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed h1:jAne/RjBTyawwAy0utX5eqigAwz/l
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
knative.dev/client v0.34.1-0.20221024014916-4a545d07fb1f h1:rLGxHmz14X/f/2tYEyVza5+zdyXwR6CKdHYX2wGfD8Y=
knative.dev/client v0.34.1-0.20221024014916-4a545d07fb1f/go.mod h1:Zj9uPmVhfi6Y1k+5izhMHG27Ch99sqEveXBRR1+606c=
knative.dev/eventing v0.35.1-0.20221026043157-cdb52cc9f8cc h1:fQhgpjkmoK68fjhmoN5vAdLgiQhP8OugGIjyJWO8nZI=
knative.dev/eventing v0.35.1-0.20221026043157-cdb52cc9f8cc/go.mod h1:LSFzontzT4XMFI+lSPcwzDNPQY3N0DItan+xEGd/0Ww=
knative.dev/hack v0.0.0-20221024013916-9d2ae47c16b2 h1:DvWcy2c6wvjDo+rPRWe9Rn5QEH8fiq/j4QWOka0wMvQ=
knative.dev/hack v0.0.0-20221024013916-9d2ae47c16b2/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/networking v0.0.0-20221026111258-0f6a54a6271f h1:9kxkIxTbaVyPnDiDoowNnbFoRRS4FJc+4CaFxDdrg24=
knative.dev/networking v0.0.0-20221026111258-0f6a54a6271f/go.mod h1:HC871j+H7G68hQ5ng4k8JgmAQMwmB08n01+nL+4zDkM=
knative.dev/pkg v0.0.0-20221025200856-6ce976ce9255 h1:zTqomdMAkcKojViE1zh7AYhmJRaL9GYzMhmXhFPZxA8=
knative.dev/pkg v0.0.0-20221025200856-6ce976ce9255/go.mod h1:j5kO7gKmWGj2DJpefCEiPbItToiYf+2bCtI+A6REkQo=
knative.dev/serving v0.35.1-0.20221027131706-b44de340e7c3 h1:ET3ieUAMWeX88A6CjFyVQpQ+Ao/oU9hTjylHgBzAdfk=
knative.dev/serving v0.35.1-0.20221027131706-b44de340e7c3/go.mod h1:ukvU2feRHq7pkLUonG/jCyWcLhxj2j/tQeeWjQrB8uk=
knative.dev/eventing v0.35.1-0.20221031132216-6ea012a83781 h1:8H57JEY4StE03iVOQNE5ZMsBbTVmuQiekgi+qptEZHs=
knative.dev/eventing v0.35.1-0.20221031132216-6ea012a83781/go.mod h1:LRcPcuemoX4bKzktYZlmZfV4CMLC6Ef9PH5/eVyOSqE=
knative.dev/hack v0.0.0-20221031132314-566898d800e9 h1:TkrNe/pYuNu5PUyIfFAIUxgcmivItCspde1hCAC+fgw=
knative.dev/hack v0.0.0-20221031132314-566898d800e9/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/networking v0.0.0-20221028034507-cb26aa7e2527 h1:PetC6RsjrVr0uGxrQIIhOWUv8f1gLn0zjfHFSlQ58Dw=
knative.dev/networking v0.0.0-20221028034507-cb26aa7e2527/go.mod h1:+QSyRHXTjRWLEL47r6EgPhGCturTFxXCVvbOO0JwYOE=
knative.dev/pkg v0.0.0-20221031132215-6eb8f1845a9d h1:BRSonjQw4u63gaWeoE5i2724FF3K7teFf8DcmwjGdAQ=
knative.dev/pkg v0.0.0-20221031132215-6eb8f1845a9d/go.mod h1:j5kO7gKmWGj2DJpefCEiPbItToiYf+2bCtI+A6REkQo=
knative.dev/serving v0.35.1-0.20221031132512-c737bb132b1e h1:Pdr3tMmcyy8onZprz5N8I/wCx9YSsSjdfMncN+W9chw=
knative.dev/serving v0.35.1-0.20221031132512-c737bb132b1e/go.mod h1:n6D2OsLwN3j2HrAMhM8wCbOZuD5ayKbaIldN4NsXd7U=
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=

View File

@ -83,11 +83,12 @@ var _ error = (*FieldError)(nil)
// ViaField is used to propagate a validation error along a field access.
// For example, if a type recursively validates its "spec" via:
// if err := foo.Spec.Validate(); err != nil {
// // Augment any field paths with the context that they were accessed
// // via "spec".
// return err.ViaField("spec")
// }
//
// if err := foo.Spec.Validate(); err != nil {
// // Augment any field paths with the context that they were accessed
// // via "spec".
// return err.ViaField("spec")
// }
func (fe *FieldError) ViaField(prefix ...string) *FieldError {
if fe == nil {
return nil
@ -114,11 +115,12 @@ func (fe *FieldError) ViaField(prefix ...string) *FieldError {
// ViaIndex is used to attach an index to the next ViaField provided.
// For example, if a type recursively validates a parameter that has a collection:
// for i, c := range spec.Collection {
// if err := doValidation(c); err != nil {
// return err.ViaIndex(i).ViaField("collection")
// }
// }
//
// for i, c := range spec.Collection {
// if err := doValidation(c); err != nil {
// return err.ViaIndex(i).ViaField("collection")
// }
// }
func (fe *FieldError) ViaIndex(index int) *FieldError {
return fe.ViaField(asIndex(index))
}
@ -130,11 +132,12 @@ func (fe *FieldError) ViaFieldIndex(field string, index int) *FieldError {
// ViaKey is used to attach a key to the next ViaField provided.
// For example, if a type recursively validates a parameter that has a collection:
// for k, v := range spec.Bag {
// if err := doValidation(v); err != nil {
// return err.ViaKey(k).ViaField("bag")
// }
// }
//
// for k, v := range spec.Bag {
// if err := doValidation(v); err != nil {
// return err.ViaKey(k).ViaField("bag")
// }
// }
func (fe *FieldError) ViaKey(key string) *FieldError {
return fe.ViaField(asKey(key))
}
@ -145,7 +148,8 @@ func (fe *FieldError) ViaFieldKey(field, key string) *FieldError {
}
// At is a way to alter the level of the diagnostics held in this FieldError.
// ErrMissingField("foo").At(WarningLevel)
//
// ErrMissingField("foo").At(WarningLevel)
func (fe *FieldError) At(l DiagnosticLevel) *FieldError {
if fe == nil {
return nil
@ -166,9 +170,10 @@ func (fe *FieldError) At(l DiagnosticLevel) *FieldError {
}
// Filter is a way to access the set of diagnostics having a particular level.
// if err := x.Validate(ctx).Filter(ErrorLevel); err != nil {
// return err
// }
//
// if err := x.Validate(ctx).Filter(ErrorLevel); err != nil {
// return err
// }
func (fe *FieldError) Filter(l DiagnosticLevel) *FieldError {
if fe == nil {
return nil
@ -251,10 +256,15 @@ func (fe *FieldError) normalized() []*FieldError {
return errors
}
// WrappedErrors returns the value of the errors after normalizing and deduping using merge().
func (fe *FieldError) WrappedErrors() []*FieldError {
return merge(fe.normalized())
}
// Error implements error
func (fe *FieldError) Error() string {
// Get the list of errors as a flat merged list.
normedErrors := merge(fe.normalized())
normedErrors := fe.WrappedErrors()
errs := make([]string, 0, len(normedErrors))
for _, e := range normedErrors {
if e.Details == "" {
@ -282,10 +292,11 @@ func asKey(key string) string {
// flatten takes in a array of path components and looks for chances to flatten
// objects that have index prefixes, examples:
// err([0]).ViaField(bar).ViaField(foo) -> foo.bar.[0] converts to foo.bar[0]
// err(bar).ViaIndex(0).ViaField(foo) -> foo.[0].bar converts to foo[0].bar
// err(bar).ViaField(foo).ViaIndex(0) -> [0].foo.bar converts to [0].foo.bar
// err(bar).ViaIndex(0).ViaIndex(1).ViaField(foo) -> foo.[1].[0].bar converts to foo[1][0].bar
//
// err([0]).ViaField(bar).ViaField(foo) -> foo.bar.[0] converts to foo.bar[0]
// err(bar).ViaIndex(0).ViaField(foo) -> foo.[0].bar converts to foo[0].bar
// err(bar).ViaField(foo).ViaIndex(0) -> [0].foo.bar converts to [0].foo.bar
// err(bar).ViaIndex(0).ViaIndex(1).ViaField(foo) -> foo.[1].[0].bar converts to foo[1][0].bar
func flatten(path []string) string {
var newPath []string
for _, part := range path {

10
vendor/modules.txt vendored
View File

@ -1667,7 +1667,7 @@ knative.dev/client/pkg/serving/v1
knative.dev/client/pkg/util
knative.dev/client/pkg/util/mock
knative.dev/client/pkg/wait
# knative.dev/eventing v0.35.1-0.20221026043157-cdb52cc9f8cc
# knative.dev/eventing v0.35.1-0.20221031132216-6ea012a83781
## explicit; go 1.18
knative.dev/eventing/pkg/apis/config
knative.dev/eventing/pkg/apis/duck
@ -1687,10 +1687,10 @@ knative.dev/eventing/pkg/apis/sources/v1
knative.dev/eventing/pkg/apis/sources/v1beta2
knative.dev/eventing/pkg/client/clientset/versioned/scheme
knative.dev/eventing/pkg/client/clientset/versioned/typed/eventing/v1
# knative.dev/hack v0.0.0-20221024013916-9d2ae47c16b2
# knative.dev/hack v0.0.0-20221031132314-566898d800e9
## explicit; go 1.18
knative.dev/hack
# knative.dev/networking v0.0.0-20221026111258-0f6a54a6271f
# knative.dev/networking v0.0.0-20221028034507-cb26aa7e2527
## explicit; go 1.18
knative.dev/networking/pkg
knative.dev/networking/pkg/apis/networking
@ -1702,7 +1702,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-20221025200856-6ce976ce9255
# knative.dev/pkg v0.0.0-20221031132215-6eb8f1845a9d
## explicit; go 1.18
knative.dev/pkg/apis
knative.dev/pkg/apis/duck
@ -1744,7 +1744,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.35.1-0.20221027131706-b44de340e7c3
# knative.dev/serving v0.35.1-0.20221031132512-c737bb132b1e
## explicit; go 1.18
knative.dev/serving/pkg/apis/autoscaling
knative.dev/serving/pkg/apis/autoscaling/v1alpha1