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

Update debug #20215

Closed
wants to merge 5 commits into from
Closed

Update debug #20215

wants to merge 5 commits into from

Conversation

soltysh
Copy link
Contributor

@soltysh soltysh commented Jul 5, 2018

/assign @juanvallejo

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 5, 2018
@soltysh
Copy link
Contributor Author

soltysh commented Jul 5, 2018

Fixed unit failures.

@soltysh soltysh force-pushed the the_new_oc_3 branch 2 times, most recently from 4ca9173 to 67fd0ff Compare July 6, 2018 11:44
@soltysh
Copy link
Contributor Author

soltysh commented Jul 6, 2018

Adding approved label manually, since this is bringing in some upstream patches that the bot does not pick me as approver.

@soltysh soltysh added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 6, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@juanvallejo
Copy link
Contributor

/test gcp

fmt.Fprintf(o.Attach.ErrOut, "Defaulting container name to %s.\n", pod.Spec.Containers[0].Name)
fmt.Fprintf(o.Attach.ErrOut, "Use '%s describe pod/%s -n %s' to see all of the containers in this pod.\n", fullCmdName, pod.Name, pod.Namespace)
fmt.Fprintf(o.Attach.ErrOut, "\n")
if o.PrintFlags.OutputFormat != nil && len(*o.PrintFlags.OutputFormat) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we are printing --template w/o specifying --output ?

return err
}
if !one {
return fmt.Errorf("you must identify a resource with a pod template to debug")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/identify/specify/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be fixed in followup, I didn't change the original strings.

names := containerNames(o.Attach.Pod)
if len(names) == 0 {
return fmt.Errorf("the provided pod must have at least one container")
}
if (o.AsRoot || o.AsNonRoot) && o.AsUser > 0 {
return fmt.Errorf("you may not specify --as-root and --as-user=%d at the same time", o.AsUser)
}
if len(o.Attach.ContainerName) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could these be moved to Validate as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to deal with the original flow so I left is as is, for now.

@juanvallejo
Copy link
Contributor

juanvallejo commented Jul 6, 2018

@soltysh One comment in debug regarding --template printing. Rest are nits and can be addressed in a followup. Otherwise lgtm

@soltysh
Copy link
Contributor Author

soltysh commented Jul 6, 2018

Comment addressed applying the label.

@soltysh soltysh added the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2018
@juanvallejo
Copy link
Contributor

/test gcp

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

18 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@deads2k
Copy link
Contributor

deads2k commented Jul 9, 2018

/retest

@openshift-ci-robot
Copy link

@soltysh: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/cmd 1009aca link /test cmd

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@deads2k
Copy link
Contributor

deads2k commented Jul 9, 2018

@juanvallejo this no longer builds. Please pick it up and rebase it.

@juanvallejo
Copy link
Contributor

@deads2k

this no longer builds. Please pick it up and rebase it.

On it

@juanvallejo juanvallejo mentioned this pull request Jul 9, 2018
@stevekuznetsov
Copy link
Contributor

/lgtm cancel

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2018
@deads2k
Copy link
Contributor

deads2k commented Jul 9, 2018

replaced by #20257

@deads2k deads2k closed this Jul 9, 2018
@soltysh soltysh deleted the the_new_oc_3 branch July 23, 2018 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants