From eb480d190da78df7fcccf5383ccb249123d97155 Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Thu, 20 Jun 2024 10:26:55 +0200 Subject: [PATCH] fix(clickhouseuser): ignore already exists --- controllers/clickhouseuser_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/clickhouseuser_controller.go b/controllers/clickhouseuser_controller.go index 884ea9c2..2fad74d4 100644 --- a/controllers/clickhouseuser_controller.go +++ b/controllers/clickhouseuser_controller.go @@ -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 }