-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
chore: upgrade kube-openapi Fixes #9149 #9235
Conversation
v3
Outdated
@@ -0,0 +1 @@ | |||
. |
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.
Could you remove this file?
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.
hi @terrytangyuan, the v3 file came from the output of the make pre-commit -B
command the pull request instructions said to run first. I can remove though 👍
f850486
to
a22c31a
Compare
test/util/shared_index_informer.go
Outdated
@@ -26,3 +27,4 @@ func (s *SharedIndexInformer) LastSyncResourceVersion() string | |||
func (s *SharedIndexInformer) AddIndexers(cache.Indexers) error { return nil } | |||
func (s *SharedIndexInformer) GetIndexer() cache.Indexer { return s.Indexer } | |||
func (s *SharedIndexInformer) SetWatchErrorHandler(handler cache.WatchErrorHandler) error { return nil } | |||
func (s *SharedIndexInformer) SetTransform(handler cache.TransformFunc) error { panic("implement me") } |
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.
this was a new function added to the SharedIndexInformer
interface in k8s client-go v0.24.3
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.
maybe return nil?
391d567
to
12f55a6
Compare
@terrytangyuan can I get some help on how to resolve the Codegen issue? I attempted to run the command in the pull request template |
When you ran the command, did you see any errors? |
I didn't realize it the first time but it looks like there are some, although I'm not sure what the fix should be. Here's the full log:
|
also when I check out the code according to that warning above into the folder
|
.github/workflows/ci-build.yaml
Outdated
@@ -17,7 +17,7 @@ jobs: | |||
tests: | |||
name: Unit Tests | |||
runs-on: ubuntu-latest | |||
timeout-minutes: 8 |
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.
Sync with the master. Master has unittest improvement
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.
Hi @sarabala1979, my PR is already based on the latest master:
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.
apologies, there was a new commit as of 4 hours ago I did not have, but I don't think this should affect the unittests. Rebased 👍
mcgrawia@b44981f
12f55a6
to
0e54312
Compare
|
@terrytangyuan when I run that command, no output occurs, so I think it's already installed: go install github.com/gogo/protobuf/[email protected] I can see the binary in my ls ~/go/bin
client-gen deepcopy-gen diagram go-to-protobuf goimports informer-gen jsonschema kind openapi-gen protoc-gen-gogofast protoc-gen-swagger
controller-gen defaulter-gen generator go1.18.4 hack jose-util jwk-keygen lister-gen protoc-gen-gogo protoc-gen-grpc-gateway swagger |
I wiped my Go installation and reinstalled everything and added
Is there documentation about how to run this process? It seems like I'm missing some basic setup |
The errors indicate that your |
hi @terrytangyuan , thanks or the help. Unfortunately after deleting the vendor folder and re-running I still see the following error:
if it helps, my GO env variables look like this: echo $GO111MODULE $GOROOT $GOPATH
on /usr/local/go /Users/ianmcgraw/go |
@terrytangyuan would it be possible for someone on the Argo side to attempt this command and if it succeeds push the generated files to this branch? I imagine someone on the team likely already has this working so it might be easier than having me sink more hours into troubleshooting on my end. |
I just pushed the generated files. |
thank you @terrytangyuan ! I'll see if I can get the final tests passing and hopefully we can get this merged |
The build failures may not be related to your changes. I am observing similar failures in simple PRs like #9249 |
@terrytangyuan ok thank you for the heads up, I'll wait to hear from you for next steps |
a626f2d
to
f47c5b6
Compare
@terrytangyuan it looks like all of the tests are now passing, let me know if there's anything else I can do before we can merge this, thanks! Also I wanted to ask, is there anything else I can do to help get this released ASAP? Is there a branch I should back-port this patch to? Not sure what would be required to release a v3.3.9. |
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.
LGTM. I'd defer to @sarabala1979 @alexec regarding back-porting this.
test/util/shared_index_informer.go
Outdated
@@ -26,3 +27,4 @@ func (s *SharedIndexInformer) LastSyncResourceVersion() string | |||
func (s *SharedIndexInformer) AddIndexers(cache.Indexers) error { return nil } | |||
func (s *SharedIndexInformer) GetIndexer() cache.Indexer { return s.Indexer } | |||
func (s *SharedIndexInformer) SetWatchErrorHandler(handler cache.WatchErrorHandler) error { return nil } | |||
func (s *SharedIndexInformer) SetTransform(handler cache.TransformFunc) error { panic("implement me") } |
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.
maybe return nil?
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Yuan Tang <[email protected]> Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
Signed-off-by: Ian McGraw <[email protected]>
51d4220
to
bdd7dbc
Compare
Signed-off-by: Ian McGraw <[email protected]>
thanks @alexec, changed! Will merge once CICD finishes. Any suggestions how I can help get this patched into a |
Signed-off-by: Ian McGraw <[email protected]>
also @alexec @terrytangyuan @sarabala1979 I think everything should be good to go on this PR when one of you is available to merge. Thanks for the help 👍 |
Thank you! @sarabala1979 Do you think we can backport this to 3.3.9 release? |
Good morning @sarabala1979, please let me know if there's anything I can help with to get a 3.3.9 release with this patch. This vulnerability is preventing us from releasing to our customers so would appreciate if we can get this out quickly. Thank you |
amazing, thanks @terrytangyuan ! will follow along there 👍 |
Signed-off-by: Yuan Tang [email protected]
Signed-off-by: juchao <[email protected]>
Signed-off-by: Reddy <[email protected]>
Signed-off-by: Ian McGraw [email protected]
Fixes #9149 CVE-2022-1996