Skip to content

Commit

Permalink
fix reconciling of shoot
Browse files Browse the repository at this point in the history
  • Loading branch information
ostempel committed Nov 15, 2024
1 parent c40d048 commit 7cc4401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/csi-driver-lvm/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ func (a *actuator) Reconcile(ctx context.Context, log logr.Logger, ex *extension
objects = append(objects, controllerObjects...)
objects = append(objects, pluginObjects...)

seedResources, err := managedresources.NewRegistry(kubernetes.SeedScheme, kubernetes.SeedCodec, kubernetes.SeedSerializer).AddAllAndSerialize(objects...)
shootResources, err := managedresources.NewRegistry(kubernetes.ShootScheme, kubernetes.SeedCodec, kubernetes.SeedSerializer).AddAllAndSerialize(objects...)
if err != nil {
return err
}

err = managedresources.CreateForSeed(ctx, a.client, namespace, v1alpha1.ShootCsiDriverLvmResourceName, false, seedResources)
err = managedresources.CreateForShoot(ctx, a.client, namespace, v1alpha1.ShootCsiDriverLvmResourceName, "csi-driver-lvm-extension", false, shootResources)

if err != nil {
return nil
Expand Down

0 comments on commit 7cc4401

Please sign in to comment.