-
Notifications
You must be signed in to change notification settings - Fork 40k
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
enable recursive processing in kubectl edit #25085
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
2 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@janetkuo can this PR get an "ok to test"? |
@k8s-bot ok to test |
@kubernetes/kubectl |
@janetkuo anything else missing from this PR? |
@janetkuo Do you happen to have an estimate as to when you can get to this PR? Thanks! |
@metral sorry for the late reply, reviewing this now. |
clientConfig, err := f.ClientConfig() | ||
infos := []*resource.Info{} | ||
allErrs := []error{} | ||
err = r.Visit(func(info *resource.Info, err error) error { |
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.
Why not use r.Infos()
here?
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.
Good catch - I was being creative on a previous attempt at getting things to work and I didn't realize I left the code to basically recreate r.Infos()
, rather than enhancing it through a direct usage of Visit()
like I've done with other portions of the recursive feature.
I'll update it to use r.Infos()
. Thanks
cc @Kargakis who's also familiar with |
the e2e test seems to be having issues with one of its images not being able to be deleted on GCE: log details |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@Kargakis I cherry-picked #20918 and refactored my changes on top of it, but #20918 is stuck in the queue as its been having trouble, so it merging into master to then push my changes out has been a waiting game. What do you recommend I do to ensure this gets into v1.3 as its the last piece of the original |
@metral I haven't tagged #20918 as 1.3 because I could find a reference that someone thought it was required for 1.3. The issue you linked was a candidate, but not explicitly 1.3. If you have something that indicates this is a 1.3 requirement I can mark a milestone on the other edit pull since it's a logical prereq. |
@deads2k That makes sense. I don't have an indication that this PR is a requirement other than me wanting to get it merged into v1.3 for the sake of completeness wrt the rest of the I'll just follow your lead on #20918, as its a dep of this PR |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@k8s-bot test this issue: #IGNORE |
@Kargakis Is there anything else missing? Also, |
LGTM, thanks! |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@k8s-bot test this issue #IGNORE |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
1 similar comment
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
GCE e2e build/test passed for commit 4913481. |
GCE e2e build/test passed for commit 4913481. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 4913481. |
Automatic merge from submit-queue |
This PR was split out of #23673 per @deads2k's suggestion: #23673 (comment)
It makes use of the recursive processing of a directory in
kubectl edit