Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Fix UpdateStatus() by setting namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
thcyron committed Oct 27, 2020
1 parent f2f59eb commit 4dc4b70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion skop/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ func (op *Operator) UpdateStatus(ctx context.Context, res Resource) error {
if err != nil {
return err
}
_, err = client.Resource(op.resource).UpdateStatus(ctx, obj, metav1.UpdateOptions{})
_, err = client.
Resource(op.resource).
Namespace(res.GetNamespace()).
UpdateStatus(ctx, obj, metav1.UpdateOptions{})
return err
}

0 comments on commit 4dc4b70

Please sign in to comment.