-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump k8s deps to v0.30.3 #3084
bump k8s deps to v0.30.3 #3084
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
Copyright 2016 The Kubernetes Authors. | ||
Check failure on line 2 in codegen/cmd/injection-gen/generators/namer.go GitHub Actions / style / Golang / Boilerplate Check (go)
|
||
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. | ||
*/ | ||
|
||
package generators | ||
|
||
import ( | ||
"k8s.io/gengo/namer" | ||
"k8s.io/gengo/types" | ||
) | ||
|
||
// TagOverrideNamer is a namer which pulls names from a given tag, if specified, | ||
// and otherwise falls back to a different namer. | ||
type tagOverrideNamer struct { | ||
tagName string | ||
fallback namer.Namer | ||
} | ||
|
||
// Name returns the tag value if it exists. It no tag was found the fallback namer will be used | ||
func (n *tagOverrideNamer) Name(t *types.Type) string { | ||
if nameOverride := extractTag(n.tagName, append(t.SecondClosestCommentLines, t.CommentLines...)); nameOverride != "" { | ||
return nameOverride | ||
} | ||
|
||
return n.fallback.Name(t) | ||
} | ||
|
||
// NewTagOverrideNamer creates a namer.Namer which uses the contents of the given tag as | ||
// the name, or falls back to another Namer if the tag is not present. | ||
func newTagOverrideNamer(tagName string, fallback namer.Namer) namer.Namer { | ||
return &tagOverrideNamer{ | ||
tagName: tagName, | ||
fallback: fallback, | ||
} | ||
} | ||
|
||
// extractTag gets the comment-tags for the key. If the tag did not exist, it | ||
// returns the empty string. | ||
func extractTag(key string, lines []string) string { | ||
val, present := types.ExtractCommentTags("+", lines)[key] | ||
if !present || len(val) < 1 { | ||
return "" | ||
} | ||
|
||
return val[0] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module knative.dev/pkg | ||
|
||
go 1.22 | ||
go 1.22.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dprotaso is there any specific reason for the go patch version in [1] https://github.com/knative-extensions/knobots/actions/runs/10352426965/job/28653073330#step:6:430 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dsimansk the go toolchain was forcing it - I couldn't figure out how to let it remain 1.22 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, it's being forced through I guess, we won't be able to get rid off for a while. https://github.com/kubernetes/kubernetes/blob/release-1.30/staging/src/k8s.io/client-go/go.mod#L5 |
||
|
||
require ( | ||
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d | ||
|
@@ -24,42 +24,42 @@ require ( | |
go.opencensus.io v0.24.0 | ||
go.uber.org/automaxprocs v1.5.3 | ||
go.uber.org/zap v1.27.0 | ||
golang.org/x/net v0.27.0 | ||
golang.org/x/net v0.28.0 | ||
golang.org/x/sync v0.8.0 | ||
golang.org/x/tools v0.23.0 | ||
golang.org/x/tools v0.24.0 | ||
gomodules.xyz/jsonpatch/v2 v2.4.0 | ||
google.golang.org/grpc v1.65.0 | ||
google.golang.org/protobuf v1.34.2 | ||
gopkg.in/yaml.v3 v3.0.1 | ||
k8s.io/api v0.29.2 | ||
k8s.io/apiextensions-apiserver v0.29.2 | ||
k8s.io/apimachinery v0.29.2 | ||
k8s.io/client-go v0.29.2 | ||
k8s.io/code-generator v0.29.2 | ||
k8s.io/gengo v0.0.0-20240129211411-f967bbeff4b4 | ||
k8s.io/klog/v2 v2.120.1 | ||
k8s.io/utils v0.0.0-20240102154912-e7106e64919e | ||
k8s.io/api v0.30.3 | ||
k8s.io/apiextensions-apiserver v0.30.3 | ||
k8s.io/apimachinery v0.30.3 | ||
k8s.io/client-go v0.30.3 | ||
k8s.io/code-generator v0.30.3 | ||
k8s.io/gengo v0.0.0-20240404160639-a0386bf69313 | ||
k8s.io/klog/v2 v2.130.1 | ||
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 | ||
knative.dev/hack v0.0.0-20240801232131-441a19fc9ead | ||
sigs.k8s.io/yaml v1.4.0 | ||
) | ||
|
||
require ( | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.3.0 // indirect | ||
github.com/emicklei/go-restful/v3 v3.11.0 // indirect | ||
github.com/evanphx/json-patch v4.12.0+incompatible // indirect | ||
github.com/emicklei/go-restful/v3 v3.12.1 // indirect | ||
github.com/evanphx/json-patch v5.9.0+incompatible // indirect | ||
github.com/go-kit/log v0.2.1 // indirect | ||
github.com/go-logfmt/logfmt v0.5.1 // indirect | ||
github.com/go-logr/logr v1.4.1 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.6 // indirect | ||
github.com/go-openapi/jsonreference v0.20.2 // indirect | ||
github.com/go-openapi/swag v0.22.3 // indirect | ||
github.com/go-logr/logr v1.4.2 // indirect | ||
github.com/go-openapi/jsonpointer v0.21.0 // indirect | ||
github.com/go-openapi/jsonreference v0.21.0 // indirect | ||
github.com/go-openapi/swag v0.23.0 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
github.com/google/gnostic-models v0.6.8 // indirect | ||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect | ||
github.com/imdario/mergo v0.3.6 // indirect | ||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.21.0 // indirect | ||
github.com/imdario/mergo v0.3.16 // indirect | ||
github.com/influxdata/tdigest v0.0.1 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
|
@@ -73,20 +73,23 @@ require ( | |
github.com/prometheus/common v0.55.0 // indirect | ||
github.com/prometheus/procfs v0.15.1 // indirect | ||
github.com/prometheus/statsd_exporter v0.22.7 // indirect | ||
github.com/rogpeppe/go-internal v1.12.0 // indirect | ||
github.com/rs/dnscache v0.0.0-20230804202142-fc85eb664529 // indirect | ||
go.uber.org/multierr v1.11.0 // indirect | ||
golang.org/x/mod v0.19.0 // indirect | ||
golang.org/x/oauth2 v0.21.0 // indirect | ||
golang.org/x/sys v0.22.0 // indirect | ||
golang.org/x/term v0.22.0 // indirect | ||
golang.org/x/text v0.16.0 // indirect | ||
golang.org/x/time v0.5.0 // indirect | ||
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa // indirect | ||
golang.org/x/mod v0.20.0 // indirect | ||
golang.org/x/oauth2 v0.22.0 // indirect | ||
golang.org/x/sys v0.24.0 // indirect | ||
golang.org/x/term v0.23.0 // indirect | ||
golang.org/x/text v0.17.0 // indirect | ||
golang.org/x/time v0.6.0 // indirect | ||
google.golang.org/api v0.183.0 // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20240808171019-573a1156607a // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240808171019-573a1156607a // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect | ||
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect | ||
k8s.io/kube-openapi v0.0.0-20240808142205-8e686545bdb8 // indirect | ||
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't want to change this boilerplate cause I copied it from
k8s.io/code-generator
repo