Skip to content

Commit

Permalink
Fixed metallb#2173
Browse files Browse the repository at this point in the history
  • Loading branch information
shimritproj committed Dec 6, 2023
1 parent a335630 commit cab2fba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/config/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,14 @@ func (v *validator) Validate(resources ...client.ObjectList) error {
if errors.As(err, &TransientError{}) { // we do not want to make assumption on ordering in webhooks.
return nil
}

return err
}

func NewValidator(validate Validate) apivalidate.ClusterObjects {
return &validator{validate: validate}
}

func existString (c string, community []metallbv1beta1.Community ) bool {
func existString(c string, community []metallbv1beta1.Community ) bool {
for i := range community {
if c == community[i].Name {
return true
Expand Down

0 comments on commit cab2fba

Please sign in to comment.