Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
  • Loading branch information
ulucinar committed Jun 6, 2024
1 parent 7ab5e20 commit 022043e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ func (ac *APICallbacks) callbackFn(name, op string) terraform.CallbackFn {
if ac.enableStatusUpdates {
tr.SetConditions(resource.AsyncOperationFinishedCondition())
}
uErr := errors.Wrapf(ac.kube.Status().Update(ctx, tr), errUpdateStatusFmt, tr.GetObjectKind().GroupVersionKind().String(), name, op)
o := tr.DeepCopyObject().(client.Object)
uErr := errors.Wrapf(ac.kube.Status().Update(ctx, o), errUpdateStatusFmt, tr.GetObjectKind().GroupVersionKind().String(), name, op)
if ac.eventHandler != nil {
rateLimiter := handler.NoRateLimiter
switch {
Expand Down

0 comments on commit 022043e

Please sign in to comment.