Skip to content

Commit 5e06659

Browse files
AlinsRandspo
authored andcommitted
fix: config not provided should not be retried (#2454)
(cherry picked from commit 7e0be1e)
1 parent 82b402e commit 5e06659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/adc/adc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ func (d *adcClient) sync(ctx context.Context, task Task) error {
360360
log.Debugw("syncing resources", zap.Any("task", task))
361361

362362
if len(task.configs) == 0 {
363-
log.Errorw("no adc configs provided", zap.Any("task", task))
364-
return errors.New("no adc configs provided")
363+
log.Warnw("no adc configs provided", zap.Any("task", task))
364+
return nil
365365
}
366366

367367
// for global rules, we need to list all global rules and set it to the task resources

0 commit comments

Comments
 (0)