From 51d50399eaf54f925f8cc5f1b44859cfe34967fe Mon Sep 17 00:00:00 2001 From: Oksana Grishchenko Date: Thu, 19 Oct 2023 12:13:19 +0200 Subject: [PATCH] exclude everest-operator --- pkg/kubernetes/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubernetes/client/client.go b/pkg/kubernetes/client/client.go index d9054461..5c84bf39 100644 --- a/pkg/kubernetes/client/client.go +++ b/pkg/kubernetes/client/client.go @@ -1106,7 +1106,7 @@ func (c *Client) CreateSubscriptionForCatalog(ctx context.Context, namespace, na Subscriptions(namespace). Create(ctx, subscription, metav1.CreateOptions{}) if err != nil { - if apierrors.IsAlreadyExists(err) { + if apierrors.IsAlreadyExists(err) && name != "everest-operator" { bytes, mErr := json.Marshal(subscription) if mErr != nil { return nil, err