Skip to content

Commit

Permalink
Update status during creation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kovacs authored and mhmxs committed Sep 6, 2023
1 parent 9ce50ab commit afe456e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/bucket/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (c *external) Create(ctx context.Context, mg resource.Managed) (managed.Ext
}
bucketToUpdate.Status.AtProvider.BackendStatuses[beName] = v1alpha1.BackendReadyStatus

if err := c.kubeClient.Update(ctx, bucketToUpdate); err != nil {
if err := c.kubeClient.Status().Update(ctx, bucketToUpdate); err != nil {
c.log.Info("Failed to update bucket", "backend name", beName, "bucket_name", bucketToUpdate.Name)

errChan <- err
Expand Down

0 comments on commit afe456e

Please sign in to comment.