Skip to content

Commit 49e72ea

Browse files
committed
fix: wrong context
1 parent 31a16c3 commit 49e72ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/subroutine/worksapce_authorization.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type workspaceAuthSubroutine struct {
2525
cfg config.Config
2626
}
2727

28-
func NewWorkspaceAuthConfigurationSubroutine(client client.Client, runtimeClient client.Client, cfg config.Config) *workspaceAuthSubroutine {
28+
func NewWorkspaceAuthConfigurationSubroutine(client, runtimeClient client.Client, cfg config.Config) *workspaceAuthSubroutine {
2929
return &workspaceAuthSubroutine{
3030
client: client,
3131
runtimeClient: runtimeClient,
@@ -64,7 +64,7 @@ func (r *workspaceAuthSubroutine) Process(ctx context.Context, instance lifecycl
6464
}
6565

6666
obj := &kcptenancyv1alphav1.WorkspaceAuthenticationConfiguration{ObjectMeta: metav1.ObjectMeta{Name: workspaceName}}
67-
_, err := controllerutil.CreateOrUpdate(ctx, r.client, obj, func() error {
67+
_, err := controllerutil.CreateOrUpdate(ctxWithTimeout, r.client, obj, func() error {
6868
obj.Spec = kcptenancyv1alphav1.WorkspaceAuthenticationConfigurationSpec{
6969
JWT: []kcptenancyv1alphav1.JWTAuthenticator{
7070
{

0 commit comments

Comments
 (0)