Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Demchuk <[email protected]>
  • Loading branch information
NikolayDemchuk committed Oct 17, 2024
1 parent 92c9505 commit 2dbb679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/webhooks/src/handlers/nscValidator.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func NSCValidate(ctx context.Context, arReview *model.AdmissionReview, obj metav
klog.Fatalf("Error patching object: %s", err.Error())
}
} else if !v3presents && v3enabled {
klog.Fatalf("NFS v3 is not enabled, enable it first")
return &kwhvalidating.ValidatorResult{Valid: false}, err
klog.Info("NFS v3 is not enabled, enable it first")
return &kwhvalidating.ValidatorResult{Valid: false}, nil
}

return &kwhvalidating.ValidatorResult{Valid: true},
Expand Down

0 comments on commit 2dbb679

Please sign in to comment.