Skip to content

Commit

Permalink
lower log level for AdmissionController.Admit validation failures
Browse files Browse the repository at this point in the history
Signed-off-by: pingjiang <xiangpingjiang1998@gmail.com>
  • Loading branch information
xiangpingjiang committed Nov 28, 2023
1 parent ea6ea84 commit 0d149e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook/resourcesemantics/validation/validation_admit.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func validate(ctx context.Context, resource resourcesemantics.GenericCRD, req *a
}

if result := resource.Validate(ctx); result != nil {
logger.Errorw("Failed the resource specific validation", zap.Error(err))
logger.Infow("Failed the resource specific validation", zap.Error(result))
// While we have the strong typing of apis.FieldError, partition the
// returned error into the error-level diagnostics and warning-level
// diagnostics, so that the admission response can embed things into
Expand Down

0 comments on commit 0d149e5

Please sign in to comment.