Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewActuator ¶
func NewActuator( secrets util.Secrets, configChart, controlPlaneChart, controlPlaneShootChart util.Chart, vp ValuesProvider, shootClientsFactory ShootClientsFactory, imageVector imagevector.ImageVector, configName string, logger logr.Logger, ) controlplane.Actuator
NewActuator creates a new Actuator that acts upon and updates the status of ControlPlane resources. It creates / deletes the given secrets and applies / deletes the given charts, using the given image vector and the values provided by the given values provider.
Types ¶
type ShootClientsFactory ¶
type ShootClientsFactory interface { // NewClientsForShoot creates a new set of clients for the given shoot namespace. NewClientsForShoot(context.Context, client.Client, string, client.Options) (util.ShootClients, error) }
ShootClientsFactory creates ShootClients to be used by this actuator.
type ShootClientsFactoryFunc ¶
type ShootClientsFactoryFunc func(context.Context, client.Client, string, client.Options) (util.ShootClients, error)
ShootClientsFactoryFunc is a function that satisfies ShootClientsFactory.
func (ShootClientsFactoryFunc) NewClientsForShoot ¶
func (f ShootClientsFactoryFunc) NewClientsForShoot(ctx context.Context, c client.Client, namespace string, opts client.Options) (util.ShootClients, error)
NewClientsForShoot creates a new set of clients for the given shoot namespace.
type ValuesProvider ¶
type ValuesProvider interface { // GetConfigChartValues returns the values for the config chart applied by this actuator. GetConfigChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster) (map[string]interface{}, error) // GetControlPlaneChartValues returns the values for the control plane chart applied by this actuator. GetControlPlaneChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster, map[string]string) (map[string]interface{}, error) // GetControlPlaneShootChartValues returns the values for the control plane shoot chart applied by this actuator. GetControlPlaneShootChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster) (map[string]interface{}, error) }
ValuesProvider provides values for the 2 charts applied by this actuator.
Click to show internal directories.
Click to hide internal directories.