Skip to content
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

Merged
merged 1 commit into from
Jun 25, 2016

Conversation

metral
Copy link
Contributor

@metral metral commented May 3, 2016

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

@k8s-bot
Copy link

k8s-bot commented May 3, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in hack/jenkins/job-configs/kubernetes-jenkins-pull/ instead.)

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
@k8s-bot
Copy link

k8s-bot commented May 3, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in hack/jenkins/job-configs/kubernetes-jenkins-pull/ instead.)

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
Copy link

k8s-bot commented May 3, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in hack/jenkins/job-configs/kubernetes-jenkins-pull/ instead.)

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-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels May 3, 2016
@metral
Copy link
Contributor Author

metral commented May 3, 2016

@janetkuo can this PR get an "ok to test"?

@janetkuo
Copy link
Member

janetkuo commented May 4, 2016

@k8s-bot ok to test

@janetkuo janetkuo added release-note Denotes a PR that will be considered when it comes time to generate release notes. area/kubectl and removed release-note-label-needed labels May 4, 2016
@janetkuo
Copy link
Member

janetkuo commented May 4, 2016

@kubernetes/kubectl

@metral
Copy link
Contributor Author

metral commented May 6, 2016

@janetkuo anything else missing from this PR?

@metral
Copy link
Contributor Author

metral commented May 10, 2016

@janetkuo Do you happen to have an estimate as to when you can get to this PR? Thanks!

@janetkuo
Copy link
Member

@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 {
Copy link
Member

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?

Copy link
Contributor Author

@metral metral May 11, 2016

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

@janetkuo
Copy link
Member

cc @Kargakis who's also familiar with edit

@metral
Copy link
Contributor Author

metral commented May 12, 2016

the e2e test seems to be having issues with one of its images not being able to be deleted on GCE: log details

@metral metral closed this May 12, 2016
@metral metral reopened this May 12, 2016
@metral metral closed this May 12, 2016
@metral metral reopened this May 12, 2016
@k8s-bot
Copy link

k8s-bot commented May 12, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.

@metral
Copy link
Contributor Author

metral commented May 19, 2016

@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 --recursive feature request per #19767?

@deads2k
Copy link
Contributor

deads2k commented May 19, 2016

@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.

@metral
Copy link
Contributor Author

metral commented May 19, 2016

@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 kubectl subcommands that already support it because their PR's were merged.

I'll just follow your lead on #20918, as its a dep of this PR

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 22, 2016
@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 22, 2016
@metral
Copy link
Contributor Author

metral commented May 22, 2016

@Kargakis I've gone ahead and rebased on top of #20918

Just need an LGTM, thanks!

@0xmichalis 0xmichalis assigned 0xmichalis and unassigned janetkuo May 22, 2016
@k8s-bot
Copy link

k8s-bot commented May 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.

@0xmichalis
Copy link
Contributor

@k8s-bot test this issue: #IGNORE

@metral
Copy link
Contributor Author

metral commented May 25, 2016

@Kargakis Is there anything else missing?

Also, ?w=1 is your friend here: https://github.com/kubernetes/kubernetes/pull/25085/files?w=1

@0xmichalis
Copy link
Contributor

LGTM, thanks!

@0xmichalis 0xmichalis added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 25, 2016
@k8s-bot
Copy link

k8s-bot commented May 27, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.

@0xmichalis
Copy link
Contributor

@k8s-bot test this issue #IGNORE

@k8s-bot
Copy link

k8s-bot commented Jun 15, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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
@k8s-bot
Copy link

k8s-bot commented Jun 15, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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
Copy link

k8s-bot commented Jun 21, 2016

GCE e2e build/test passed for commit 4913481.

@k8s-bot
Copy link

k8s-bot commented Jun 25, 2016

GCE e2e build/test passed for commit 4913481.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Jun 25, 2016

GCE e2e build/test passed for commit 4913481.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 7c355e1 into kubernetes:master Jun 25, 2016
@metral metral deleted the recursive-edit branch June 25, 2016 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubectl lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants