webhooks

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

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(cluster *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).

func (*Cluster) SetupWebhookWithManager

func (webhook *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up Cluster webhooks.

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

type ClusterClass struct {
	Client client.Reader
}

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.

func (*Machine) SetupWebhookWithManager added in v1.6.0

func (webhook *Machine) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up Machine webhooks.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL