-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
JSON decoder fixup #105702
JSON decoder fixup #105702
Conversation
typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, | ||
expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, | ||
errFn: func(err error) bool { | ||
return strings.Contains(err.Error(), "found unknown field") |
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 erroring on the unknown field apiVersion
, not the untagged field Other
typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, | ||
expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, | ||
errFn: func(err error) bool { | ||
return strings.Contains(err.Error(), "found unknown field") |
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 erroring on the unknown field apiVersion
, not the untagged field Other
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
31c16c6
to
ffb2d12
Compare
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
@@ -30,11 +31,12 @@ import ( | |||
) | |||
|
|||
type testDecodable struct { | |||
metav1.TypeMeta `json:",inline"` |
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.
heh, I just found this golang/go#6213, what is this inline
tag used for in kubernetes?
comments says is a noop
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.
huh... I... don't know... tracked it back to #79
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.
🙃
/triage accepted |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Fixes two issues with the json decoding, ahead of #105030
items
json tag to the internal unstructured list type/cc @deads2k
/sig api-machinery