github.com/ironcore-dev/gardener-extension-provider-ironcore@v0.3.2-0.20240314231816-8336447fb9a0/pkg/controller/infrastructure/actuator.go (about)

     1  // SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and IronCore contributors
     2  // SPDX-License-Identifier: Apache-2.0
     3  
     4  package infrastructure
     5  
     6  import (
     7  	"github.com/gardener/gardener/extensions/pkg/controller/infrastructure"
     8  	"sigs.k8s.io/controller-runtime/pkg/client"
     9  	"sigs.k8s.io/controller-runtime/pkg/manager"
    10  )
    11  
    12  type actuator struct {
    13  	client client.Client
    14  }
    15  
    16  // NewActuator creates a new infrastructure.Actuator.
    17  func NewActuator(mgr manager.Manager) infrastructure.Actuator {
    18  	return &actuator{
    19  		client: mgr.GetClient(),
    20  	}
    21  }