Documentation ¶
Overview ¶
Package webhooks contains external webhook implementations for some of our API types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Client client.Reader ClusterCacheTrackerReader ClusterCacheTrackerReader }
Cluster implements a validating and defaulting webhook for Cluster.
func (*Cluster) DefaultAndValidateVariables ¶ added in v1.7.0
func (webhook *Cluster) DefaultAndValidateVariables(ctx context.Context, cluster, oldCluster *clusterv1.Cluster, clusterClass *clusterv1.ClusterClass) field.ErrorList
DefaultAndValidateVariables can be used to default and validate variables of a Cluster based on the corresponding ClusterClass. Before it can be used, all fields of the webhooks.Cluster have to be set and SetupWithManager has to be called. This method can be used when testing the behavior of the desired state computation of the Cluster topology controller (because variables are always defaulted and validated before the desired state is computed).
type ClusterCacheTrackerReader ¶ added in v1.6.4
type ClusterCacheTrackerReader = webhooks.ClusterCacheTrackerReader
ClusterCacheTrackerReader is a read-only ClusterCacheTracker useful to gather information for MachinePool nodes for workload clusters.
type ClusterClass ¶
ClusterClass implements a validation and defaulting webhook for ClusterClass.
func (*ClusterClass) SetupWebhookWithManager ¶
func (webhook *ClusterClass) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up ClusterClass webhooks.
type Machine ¶ added in v1.6.0
type Machine struct{}
Machine implements a validating and defaulting webhook for Machine.
type MachineDeployment ¶ added in v1.6.0
type MachineDeployment struct{}
MachineDeployment implements a validating and defaulting webhook for MachineDeployment.
func (*MachineDeployment) SetupWebhookWithManager ¶ added in v1.6.0
func (webhook *MachineDeployment) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up MachineDeployment webhooks.
type MachineHealthCheck ¶ added in v1.6.0
type MachineHealthCheck struct{}
MachineHealthCheck implements a validating and defaulting webhook for MachineHealthCheck.
func (*MachineHealthCheck) SetupWebhookWithManager ¶ added in v1.6.0
func (webhook *MachineHealthCheck) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up MachineHealthCheck webhooks.
type MachineSet ¶ added in v1.6.0
type MachineSet struct{}
MachineSet implements a validating and defaulting webhook for MachineSet.
func (*MachineSet) SetupWebhookWithManager ¶ added in v1.6.0
func (webhook *MachineSet) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up MachineSet webhooks.