-
Notifications
You must be signed in to change notification settings - Fork 468
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
breakout envoyinit #10499
breakout envoyinit #10499
Changes from 4 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 |
---|---|---|
|
@@ -10,23 +10,26 @@ | |
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
//go:generate sh -c "echo '// Licensed under the Apache License, Version 2.0 (the \"License\");' > filter_types.gen.go" | ||
//go:generate sh -c "echo '// you may not use this file except in compliance with the License.' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// You may obtain a copy of the License at' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '//' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// http://www.apache.org/licenses/LICENSE-2.0' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '//' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// Unless required by applicable law or agreed to in writing, software' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// distributed under the License is distributed on an \"AS IS\" BASIS,' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// See the License for the specific language governing permissions and' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// limitations under the License.\n' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '// GENERATED FILE -- DO NOT EDIT\n' >> filter_types.gen.go" | ||
//go:generate sh -c "echo 'package filter_types\n\nimport (' >> filter_types.gen.go" | ||
//go:generate sh -c "go list github.com/envoyproxy/go-control-plane/... | grep 'v[3-9]' | xargs -n1 -I{} echo '\t_ \"{}\"' >> filter_types.gen.go" | ||
//go:generate sh -c "echo '\n\t// gloo filter types' >> filter_types.gen.go" | ||
//go:generate sh -c "go list github.com/solo-io/gloo/projects/gloo/pkg/api/external/envoy/... | xargs -n1 -I{} echo '\t_ \"{}\"' >> filter_types.gen.go" | ||
//go:generate sh -c "echo ')' >> filter_types.gen.go" | ||
// TODO: commenting out go generate for now, it can't exist until we figure out how to get the types from within | ||
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. i tried doing this locally and it seemed to work.. what are you seeing? 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. @yuval-k and I spent some time on this and was seeing the same behavior. I think we'll need to move forward with this hack until we properly fix envoyinit |
||
// the correct version of go-control-plane; see: https://github.com/kgateway-dev/kgateway/issues/10491 | ||
|
||
//xo:generate sh -c "echo '// Licensed under the Apache License, Version 2.0 (the \"License\");' > filter_types.gen.go" | ||
//xo:generate sh -c "echo '// you may not use this file except in compliance with the License.' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// You may obtain a copy of the License at' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '//' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// http://www.apache.org/licenses/LICENSE-2.0' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '//' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// Unless required by applicable law or agreed to in writing, software' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// distributed under the License is distributed on an \"AS IS\" BASIS,' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// See the License for the specific language governing permissions and' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// limitations under the License.\n' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '// GENERATED FILE -- DO NOT EDIT\n' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo 'package filter_types\n\nimport (' >> filter_types.gen.go" | ||
//xo:generate sh -c "go list github.com/envoyproxy/go-control-plane/... | grep 'v[3-9]' | xargs -n1 -I{} echo '\t_ \"{}\"' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo '\n\t// gloo filter types' >> filter_types.gen.go" | ||
//xo:generate sh -c "go list github.com/solo-io/envoy-gloo/go/... | xargs -n1 -I{} echo '\t_ \"{}\"' >> filter_types.gen.go" | ||
//xo:generate sh -c "echo ')' >> filter_types.gen.go" | ||
|
||
package filter_types | ||
|
||
|
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.
Does this still need to be exported? I don't see any other references in the diff.
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.
leftover from copy/paste; fixed