-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing metav1.ObjectMeta to NetworkPolicyEvaluation API type (#6675
) It seems that omitting the field was a mistake when defining the API. New versions of the K8s code generators (client-gen specifically) will not work with types missing this field. See kubernetes/code-generator@688a73a This is preventing us from updating to a more recent version of the K8s libraries and of the code generators. Note that I believe that this API was modeled after the upstream TokenReview API (which like this one only supports the "create" verb, and returns a response immediately). The TokenReview type does include a metav1.ObjectMeta field. Unfortunately, for backwards-compatibility, we need to use Protobuf field number 3 for the metadata field, while K8s always uses 1. This is a bit surprising, but it should only affect the wire format, and nothing else. Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
b180c65
commit cf16884
Showing
8 changed files
with
270 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.