Skip to content

Commit

Permalink
fix(clickhouseuser): ignore already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Jun 20, 2024
1 parent 16d77ca commit eb480d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/clickhouseuser_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (h *clickhouseUserHandler) createOrUpdate(ctx context.Context, avn *aiven.C
}

r, err := avn.ClickhouseUser.Create(ctx, user.Spec.Project, user.Spec.ServiceName, user.Name)
if err != nil {
if err != nil && !isAlreadyExists(err) {
return err
}

Expand Down

0 comments on commit eb480d1

Please sign in to comment.