Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HandlerName is the name of the webhook handler. HandlerName = "high-availability-config" // WebhookPath is the path at which the handler should be registered. WebhookPath = "/webhooks/high-availability-config" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Logger logr.Logger TargetClient client.Reader Config config.HighAvailabilityConfigWebhookConfig Decoder *admission.Decoder }
Handler handles admission requests and sets the following fields based on the failure tolerance type and the component type: - `.spec.replicas` - `.spec.template.spec.affinity` - `.spec.template.spec.topologySpreadConstraints`
func (*Handler) AddToManager ¶
AddToManager adds Handler to the given manager.
Click to show internal directories.
Click to hide internal directories.