fix --local panic in set commands#65636
Conversation
098122a to
e1cbe7f
Compare
de28d7d to
c821f1d
Compare
pkg/kubectl/cmd/set/set_env.go
Outdated
There was a problem hiding this comment.
kind is not the same as resource... this changes the output here
There was a problem hiding this comment.
Since we were panicing on --local before (hence no output to change under that code path), I can go ahead and leave info.Mapping.Resource as it was, and only output kind under --local. wdyt?
There was a problem hiding this comment.
That's a reasonable middle ground, eventually we can entirely skip that part of the message with --local
There was a problem hiding this comment.
I guess we can do the same thing we do for -o name without resource info... lower(<kind>[.<group>])
There was a problem hiding this comment.
Thanks, PR updated
|
/hold |
c821f1d to
40df4e5
Compare
|
/test pull-kubernetes-e2e-gce |
|
/test pull-kubernetes-e2e-kops-aws |
|
@liggitt friendly ping |
pkg/kubectl/cmd/util/helpers.go
Outdated
There was a problem hiding this comment.
any reason not to make this a method on resource.Info, similar to it's existing String() method?
There was a problem hiding this comment.
I'll open a followup to address that.
|
@juanvallejo please address Jordan's comments. |
|
/sig cli |
Sorry about my delay here. Will find some time to wrap this PR up this week |
|
@juanvallejo friendly ping |
a4fc40a to
099f987
Compare
|
/test pull-kubernetes-integration |
pkg/kubectl/cmd/util/helpers.go
Outdated
There was a problem hiding this comment.
I'll open a followup to address that.
74e3d9c to
bded018
Compare
bded018 to
e8df247
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: juanvallejo, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Review the full test history for this PR. Silence the bot with an |
Release note:
In progress - identifying other commands with this issuecc @soltysh