highavailabilityconfig

package
v1.61.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 27 Imported by: 0

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
	TargetVersionGreaterEqual123 bool
	// contains filtered or unexported fields
}

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

func (h *Handler) AddToManager(mgr manager.Manager) error

AddToManager adds Handler to the given manager.

func (*Handler) Handle

Handle defaults the high availability settings of the provided resource.

func (*Handler) InjectDecoder

func (h *Handler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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