Skip to content

Commit

Permalink
Fix linting errors and address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Thapar <[email protected]>
  • Loading branch information
vthapar authored and mangelajo committed Mar 17, 2021
1 parent 148f091 commit ca7f7ab
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkg/subctl/cmd/gather.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ func gatherConnectivity(status *cli.Status, dataType string) error {
status.QueueWarningMessage("Gather Connectivity Logs not implemented yet")
case Resources:
status.QueueWarningMessage("Gather Connectivity Resources not implemented yet")
default:
return fmt.Errorf("unsupported data type %s", dataType)
}
return nil
}
Expand All @@ -111,13 +113,20 @@ func gatherDiscovery(status *cli.Status, dataType string) error {
status.QueueWarningMessage("Gather ServiceDiscovery Logs not implemented yet")
case Resources:
status.QueueWarningMessage("Gather ServiceDiscovery Resources not implemented yet")
default:
return fmt.Errorf("unsupported data type %s", dataType)
}
return nil
}

func gatherBroker(status *cli.Status, dataType string) error {
if dataType == Resources {
switch dataType {
case Logs:
status.QueueSuccessMessage("No logs to gather on Broker")
case Resources:
status.QueueWarningMessage("Gather Broker Resources not implemented yet")
default:
return fmt.Errorf("unsupported data type %s", dataType)
}
return nil
}
Expand All @@ -128,6 +137,8 @@ func gatherOperator(status *cli.Status, dataType string) error {
status.QueueWarningMessage("Gather Operator Logs not implemented yet")
case Resources:
status.QueueWarningMessage("Gather Operator Resources not implemented yet")
default:
return fmt.Errorf("unsupported data type %s", dataType)
}
return nil
}
Expand Down

0 comments on commit ca7f7ab

Please sign in to comment.