Skip to content

Commit f7474f1

Browse files
committed
Address comments
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
1 parent 74b3726 commit f7474f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/resource/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func (a *APIPatchingApplicator) Apply(ctx context.Context, obj client.Object, ao
8080
err := a.client.Get(ctx, types.NamespacedName{Name: obj.GetName(), Namespace: obj.GetNamespace()}, current)
8181
if kerrors.IsNotFound(err) {
8282
// TODO(negz): Apply ApplyOptions here too?
83+
log.Info("creating object")
8384
return a.client.Create(ctx, obj)
8485
}
8586
if err != nil {
@@ -205,6 +206,7 @@ func (a *APIUpdatingApplicator) Apply(ctx context.Context, obj client.Object, ao
205206
err := a.client.Get(ctx, types.NamespacedName{Name: obj.GetName(), Namespace: obj.GetNamespace()}, current)
206207
if kerrors.IsNotFound(err) {
207208
// TODO(negz): Apply ApplyOptions here too?
209+
log.Info("creating object")
208210
return a.client.Create(ctx, obj)
209211
}
210212
if err != nil {

0 commit comments

Comments
 (0)