Skip to content

Commit 19ef533

Browse files
authored
fix namespace (#1405)
1 parent fead40b commit 19ef533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/controlplane/actuator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (a *actuator) forceDeleteShootRemedyControllerResources(ctx context.Context
207207
return nil
208208
}
209209

210-
_, shootClient, err := util.NewClientForShoot(ctx, a.client, cluster.Shoot.GetName(), client.Options{}, extensionsconfigv1alpha1.RESTOptions{})
210+
_, shootClient, err := util.NewClientForShoot(ctx, a.client, namespace, client.Options{}, extensionsconfigv1alpha1.RESTOptions{})
211211
if err != nil {
212212
// No need to report the error as this is anyway only best effort. Some scenarios, e.g. self hosted shoot clusters,
213213
// might not have the gardener secret and hence cannot construct the shoot client here.

0 commit comments

Comments
 (0)