Skip to content

Commit

Permalink
feat(controller): show invalid spec on cronwf res
Browse files Browse the repository at this point in the history
Fixes: argoproj#6781

Signed-off-by: Carlos Rodriguez-Fernandez <[email protected]>
  • Loading branch information
carlosrodfern committed Nov 22, 2024
1 parent 497f338 commit 0111e6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workflow/cron/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (cc *Controller) processNextCronItem(ctx context.Context) bool {

err = cronWorkflowOperationCtx.validateCronWorkflow(ctx)
if err != nil {
cc.eventRecorderManager.Get(un.GetNamespace()).Event(un, apiv1.EventTypeWarning, "Invalid", err.Error())
logCtx.WithError(err).Error("invalid cron workflow")
return true
}
Expand Down

0 comments on commit 0111e6b

Please sign in to comment.