Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
  • Loading branch information
duckhawk committed Mar 22, 2024
1 parent 19b8f5f commit bca0fb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions images/webhooks/src/validators/storageClassUpdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func StorageClassUpdate(ctx context.Context, _ *model.AdmissionReview, obj metav
}

if thickExists == true && thinExists == true {
return &kwhvalidating.ValidatorResult{Valid: false}, errors.New("there must be only thin or thick pools simultaneously")
return &kwhvalidating.ValidatorResult{Valid: false},
errors.New("there must be only thin or thick pools simultaneously")
} else {
return &kwhvalidating.ValidatorResult{Valid: true},
nil
}

return &kwhvalidating.ValidatorResult{
Valid: true,
}, nil
}

0 comments on commit bca0fb1

Please sign in to comment.