Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Kwasniewski <[email protected]>
  • Loading branch information
Kwasniewski committed Oct 1, 2023
1 parent c494f7e commit a5460ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,11 +734,11 @@ func (c *Controller) runBlueGreen(canary *flaggerv1.Canary, canaryController can
}

func (c *Controller) runAnalysisWebhooks(canary *flaggerv1.Canary, canaryController canary.Controller) string {
// run external checks
var retry bool
var failure bool
for _, webhook := range canary.GetAnalysis().Webhooks {
if webhook.Type == "" || webhook.Type == flaggerv1.RolloutHook {
c.recordEventInfof(canary, "Executing %s.%s analysis webhook %s", canary.Spec.TargetRef.Name, canary.Namespace, webhook.Name)
err := CallWebhook(canary.Name, canary.Namespace, flaggerv1.CanaryPhaseProgressing, webhook)
if err != nil {
if webhook.Retries > 0 && canary.Status.Webhooks[webhook.Name].Retries < webhook.Retries {
Expand Down

0 comments on commit a5460ed

Please sign in to comment.