-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Add missing VisitArbitrary methods in kubectl explain #74029
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: soltysh 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 |
pkg/kubectl/explain/field_lookup.go
Outdated
@@ -89,6 +89,12 @@ func (f *fieldLookup) VisitKind(k *proto.Kind) { | |||
subSchema.Accept(f) | |||
} | |||
|
|||
func (f *fieldLookup) VisitArbitrary(a *proto.Arbitrary) { | |||
if f.SaveLeafSchema(a) { |
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.
f.Schema = a
would be more accurate (note that the condition is pointless).
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.
Make sense.
lgtm after nit, thanks @soltysh ! |
10d2f10
to
22a3f6d
Compare
Updated, @apelisse ptal |
Thank you! |
What type of PR is this?
/kind bug
/priority important-longterm
/sig cli
What this PR does / why we need it:
This is alternative approach to #73817 and I think is a better one.
Which issue(s) this PR fixes:
This was noticed in #71192
Special notes for your reviewer:
/assign @liggitt @sttts @roycaihw @apelisse
Does this PR introduce a user-facing change?: