-
Notifications
You must be signed in to change notification settings - Fork 4.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
Update debug #20257
Update debug #20257
Conversation
/retest |
last commit is fine, the rest was already tagged. /lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
dac2b1d
to
209fb5b
Compare
pkg/oc/cli/cmd/debug.go
Outdated
@@ -269,7 +269,8 @@ func (o *DebugOptions) Complete(cmd *cobra.Command, f kcmdutil.Factory, args []s | |||
|
|||
// TODO: below should be turned into a method on PrintFlags | |||
if (o.PrintFlags.OutputFormat != nil && len(*o.PrintFlags.OutputFormat) > 0) || | |||
(o.PrintFlags.TemplatePrinterFlags != nil && o.PrintFlags.TemplatePrinterFlags.TemplateArgument != nil) { | |||
(o.PrintFlags.TemplatePrinterFlags != nil && o.PrintFlags.TemplatePrinterFlags.TemplateArgument != nil && | |||
len(*o.PrintFlags.TemplatePrinterFlags.TemplateArgument) > 0) { |
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.
@deads2k Updated this to also take into account when a template arg has been specified. Was making debug.sh fail
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.
@deads2k Updated this to also take into account when a template arg has been specified. Was making debug.sh fail
break these apart into bool assignments so I can read them here without the nesting.
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.
Done
260e610
to
882d059
Compare
/test cmd |
pkg/oc/cli/cmd/debug.go
Outdated
// TODO: below should be turned into a method on PrintFlags | ||
if (o.PrintFlags.OutputFormat != nil && len(*o.PrintFlags.OutputFormat) > 0) || | ||
(o.PrintFlags.TemplatePrinterFlags != nil && o.PrintFlags.TemplatePrinterFlags.TemplateArgument != nil) { | ||
if outputFormatSpecified || templateArgSpecified { |
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.
what a bizarre command.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, juanvallejo 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 |
/test cross |
/test verify |
882d059
to
629a383
Compare
New changes are detected. LGTM label has been removed. |
@deads2k had to rebase to get completions updated / test verify passing |
/retest Please review the full test history for this PR and help us cut down flakes. |
/assign deads2k
Pick of #20215 on latest master.