Skip to content

Commit

Permalink
fix: forward context in Space reconciler (#915)
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ilario <[email protected]>
Co-authored-by: Alexey Kazakov <[email protected]>
  • Loading branch information
filariow and alexeykazakov authored Nov 4, 2023
1 parent 442875e commit faf855a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/space/space_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func (r *Reconciler) manageNSTemplateSet(ctx context.Context, space *toolchainv1
}
getSpaceFunc := func(spaceName string) (*toolchainv1alpha1.Space, error) {
spaceFound := &toolchainv1alpha1.Space{}
err := r.Client.Get(context.TODO(), types.NamespacedName{
err := r.Client.Get(ctx, types.NamespacedName{
Namespace: r.Namespace,
Name: spaceName,
}, spaceFound)
Expand Down

0 comments on commit faf855a

Please sign in to comment.