Merge pull request #4181 from fluxcd/cmd-events-err-fix

cmd/events: handle error value
pull/4182/head
Hidde Beydals 1 year ago committed by GitHub
commit 8801031f06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,6 +127,9 @@ func eventsCmdRun(cmd *cobra.Command, args []string) error {
}
rows, err := getRows(ctx, kubeclient, clientListOpts, refListOpts, showNamespace)
if err != nil {
return err
}
if len(rows) == 0 {
if eventArgs.allNamespaces {
logger.Failuref("No events found.")

Loading…
Cancel
Save