Documentation ¶
Index ¶
- Constants
- func NewActuator(mgr manager.Manager, providerName string, ...) (controlplane.Actuator, error)
- func ShootWebhookNamespaceSelector(providerType string) map[string]string
- type NoopValuesProvider
- func (vp NoopValuesProvider) GetConfigChartValues(context.Context, *extensionsv1alpha1.ControlPlane, ...) (map[string]any, error)
- func (vp NoopValuesProvider) GetControlPlaneChartValues(context.Context, *extensionsv1alpha1.ControlPlane, ...) (map[string]any, error)
- func (vp NoopValuesProvider) GetControlPlaneExposureChartValues(context.Context, *extensionsv1alpha1.ControlPlane, ...) (map[string]any, error)
- func (vp NoopValuesProvider) GetControlPlaneShootCRDsChartValues(context.Context, *extensionsv1alpha1.ControlPlane, ...) (map[string]any, error)
- func (vp NoopValuesProvider) GetControlPlaneShootChartValues(context.Context, *extensionsv1alpha1.ControlPlane, ...) (map[string]any, error)
- func (vp NoopValuesProvider) GetStorageClassesChartValues(context.Context, *extensionsv1alpha1.ControlPlane, ...) (map[string]any, error)
- type ValuesProvider
Constants ¶
const ( // ControlPlaneShootChartResourceName is the name of the managed resource for the control plane ControlPlaneShootChartResourceName = "extension-controlplane-shoot" // ControlPlaneShootCRDsChartResourceName is the name of the managed resource for the extension control plane shoot CRDs ControlPlaneShootCRDsChartResourceName = "extension-controlplane-shoot-crds" // StorageClassesChartResourceName is the name of the managed resource for the extension control plane storageclasses StorageClassesChartResourceName = "extension-controlplane-storageclasses" // ShootWebhooksResourceName is the name of the managed resource for the extension control plane webhooks ShootWebhooksResourceName = "extension-controlplane-shoot-webhooks" )
Variables ¶
This section is empty.
Functions ¶
func NewActuator ¶
func NewActuator( mgr manager.Manager, providerName string, secretConfigs func(namespace string) []extensionssecretsmanager.SecretConfigWithOptions, shootAccessSecrets func(namespace string) []*gardenerutils.AccessSecret, exposureSecretConfigs func(namespace string) []extensionssecretsmanager.SecretConfigWithOptions, exposureShootAccessSecrets func(namespace string) []*gardenerutils.AccessSecret, configChart, controlPlaneChart, controlPlaneShootChart, controlPlaneShootCRDsChart, storageClassesChart, controlPlaneExposureChart chart.Interface, vp ValuesProvider, chartRendererFactory extensionscontroller.ChartRendererFactory, imageVector imagevector.ImageVector, configName string, atomicShootWebhookConfig *atomic.Value, webhookServerNamespace string, ) ( controlplane.Actuator, error, )
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.
func ShootWebhookNamespaceSelector ¶ added in v1.48.0
ShootWebhookNamespaceSelector returns a namespace selector for shoot webhooks relevant to provider extensions.
Types ¶
type NoopValuesProvider ¶
type NoopValuesProvider struct{}
NoopValuesProvider provides no-op implementation of ValuesProvider. This can be anonymously composed by actual ValuesProviders for convenience.
func (NoopValuesProvider) GetConfigChartValues ¶
func (vp NoopValuesProvider) GetConfigChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster) (map[string]any, error)
GetConfigChartValues returns the values for the config chart applied by this actuator.
func (NoopValuesProvider) GetControlPlaneChartValues ¶
func (vp NoopValuesProvider) GetControlPlaneChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster, secretsmanager.Reader, map[string]string, bool) (map[string]any, error)
GetControlPlaneChartValues returns the values for the control plane chart applied by this actuator.
func (NoopValuesProvider) GetControlPlaneExposureChartValues ¶
func (vp NoopValuesProvider) GetControlPlaneExposureChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster, secretsmanager.Reader, map[string]string) (map[string]any, error)
GetControlPlaneExposureChartValues returns the values for the control plane exposure chart applied by this actuator.
func (NoopValuesProvider) GetControlPlaneShootCRDsChartValues ¶ added in v1.19.2
func (vp NoopValuesProvider) GetControlPlaneShootCRDsChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster) (map[string]any, error)
GetControlPlaneShootCRDsChartValues returns the values for the control plane shoot CRDs chart applied by this actuator.
func (NoopValuesProvider) GetControlPlaneShootChartValues ¶
func (vp NoopValuesProvider) GetControlPlaneShootChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster, secretsmanager.Reader, map[string]string) (map[string]any, error)
GetControlPlaneShootChartValues returns the values for the control plane shoot chart applied by this actuator.
func (NoopValuesProvider) GetStorageClassesChartValues ¶
func (vp NoopValuesProvider) GetStorageClassesChartValues(context.Context, *extensionsv1alpha1.ControlPlane, *extensionscontroller.Cluster) (map[string]any, error)
GetStorageClassesChartValues returns the values for the storage classes chart applied by this actuator.
type ValuesProvider ¶
type ValuesProvider interface { // GetConfigChartValues returns the values for the config chart applied by this actuator. GetConfigChartValues(ctx context.Context, cp *extensionsv1alpha1.ControlPlane, cluster *extensionscontroller.Cluster) (map[string]any, error) // GetControlPlaneChartValues returns the values for the control plane chart applied by this actuator. GetControlPlaneChartValues(ctx context.Context, cp *extensionsv1alpha1.ControlPlane, cluster *extensionscontroller.Cluster, secretsReader secretsmanager.Reader, checksums map[string]string, scaledDown bool) (map[string]any, error) // GetControlPlaneShootChartValues returns the values for the control plane shoot chart applied by this actuator. GetControlPlaneShootChartValues(ctx context.Context, cp *extensionsv1alpha1.ControlPlane, cluster *extensionscontroller.Cluster, secretsReader secretsmanager.Reader, checksums map[string]string) (map[string]any, error) // GetControlPlaneShootCRDsChartValues returns the values for the control plane shoot CRDs chart applied by this actuator. GetControlPlaneShootCRDsChartValues(ctx context.Context, cp *extensionsv1alpha1.ControlPlane, cluster *extensionscontroller.Cluster) (map[string]any, error) // GetStorageClassesChartValues returns the values for the storage classes chart applied by this actuator. GetStorageClassesChartValues(ctx context.Context, cp *extensionsv1alpha1.ControlPlane, cluster *extensionscontroller.Cluster) (map[string]any, error) // GetControlPlaneExposureChartValues returns the values for the control plane exposure chart applied by this actuator. GetControlPlaneExposureChartValues(ctx context.Context, cp *extensionsv1alpha1.ControlPlane, cluster *extensionscontroller.Cluster, secretsReader secretsmanager.Reader, checksums map[string]string) (map[string]any, error) }
ValuesProvider provides values for the 2 charts applied by this actuator.