-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Update ObjectTyper for GroupVersion #17796
Conversation
Labelling this PR as size/XL |
GCE e2e test build/test passed for commit 496b7b166c212bfaf50340c00506d1a3ad4e7ff7. |
496b7b1
to
e8b3b9d
Compare
GCE e2e test build/test passed for commit e8b3b9d19c9257f9cd7cc57405b84f259b838328. |
@@ -57,6 +57,9 @@ func fuzzInternalObject(t *testing.T, forVersion string, item runtime.Object, se | |||
func roundTrip(t *testing.T, codec runtime.Codec, item runtime.Object) { | |||
printer := spew.ConfigState{DisableMethods: true} | |||
|
|||
gvk, err := api.Scheme.ObjectKind(item) | |||
t.Logf("fqKind for %v is %v with codec %v", reflect.TypeOf(item), gvk, codec) |
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.
not sure if fqKind is used elsewhere, but prefer "fully qualified kind"
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.
not sure if fqKind is used elsewhere, but prefer "fully qualified kind"
As the message or as the variable name? fullyQualifiedKind
seems a bit long, I was hoping for fqKind
as a compromise
@k8s-bot unit test this please |
@eparis is the permanent yellow a bot bug or is it intentional? |
} | ||
// if we don't recognize the type, then we'll never be able to round trip it | ||
if !api.Scheme.Recognizes(gv.WithKind(gvk.Kind)) { | ||
return |
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.
no error in this case?
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.
no error in this case?
This matches the set
check below. Basically, they run the same unit tests multiple times and switch group,versions each time, so the test can be run sometimes and not others. This is the correct form. Refactoring its location doesn't work out cleaner because it makes the structure mix and match.
@liggitt - is not feeling well. I will take over reviewing this PR in his absence. |
e8b3b9d
to
2d68506
Compare
GCE e2e test build/test passed for commit 2d6850688c74b481d61b78f0f9848f137a4c3185. |
LGTM |
Travis continuous integration appears to have missed, closing and re-opening to trigger it |
@k8s-bot test this Tests are more than 48 hours old. Re-running tests. |
GCE e2e build/test failed for commit 2d6850688c74b481d61b78f0f9848f137a4c3185. |
2d68506
to
f764e00
Compare
PR changed after LGTM, removing LGTM. |
GCE e2e build/test failed for commit f764e00. |
@k8s-bot test this please |
GCE e2e build/test failed for commit f764e00. |
out of disk @k8s-bot test this please |
GCE e2e test build/test passed for commit f764e00. |
@k8s-bot unit test this please |
@k8s-bot test this |
failure to checkout @k8s-bot unit test this |
GCE e2e test build/test passed for commit f764e00. |
timeout (worked before) @k8s-bot unit test this |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit f764e00. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
// if err := s.SetVersionAndKind(outVersion, outKind.Kind, out); err != nil { | ||
// return nil, err | ||
// } | ||
// ======= |
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.
??? what's this stuff
Makes
ObjectTyper
useGroupVersionKind
.ref #17216
@liggitt @caesarxuchao