From f7474f15f72cd045bb58a3f9d2a1d813de92878a Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Mon, 4 Sep 2023 10:02:27 +0200 Subject: [PATCH] Address comments Signed-off-by: Dr. Stefan Schimanski --- pkg/resource/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/resource/api.go b/pkg/resource/api.go index 0d7b66e29..2cde0c7dd 100644 --- a/pkg/resource/api.go +++ b/pkg/resource/api.go @@ -80,6 +80,7 @@ func (a *APIPatchingApplicator) Apply(ctx context.Context, obj client.Object, ao err := a.client.Get(ctx, types.NamespacedName{Name: obj.GetName(), Namespace: obj.GetNamespace()}, current) if kerrors.IsNotFound(err) { // TODO(negz): Apply ApplyOptions here too? + log.Info("creating object") return a.client.Create(ctx, obj) } if err != nil { @@ -205,6 +206,7 @@ func (a *APIUpdatingApplicator) Apply(ctx context.Context, obj client.Object, ao err := a.client.Get(ctx, types.NamespacedName{Name: obj.GetName(), Namespace: obj.GetNamespace()}, current) if kerrors.IsNotFound(err) { // TODO(negz): Apply ApplyOptions here too? + log.Info("creating object") return a.client.Create(ctx, obj) } if err != nil {