Help us shape the future of Go! Take the 2026 Go Developer Survey

systemcomponentsconfig

package
v1.153.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of this webhook handler.
	HandlerName = "system-components-config"
	// WebhookPath is the path at which the handler should be registered.
	WebhookPath = "/webhooks/system-components-config"
)
View Source
const (
	// ToBeDeletedByClusterAutoscaler is a taint used to make a Node unschedulable.
	// It denotes that the cluster-autoscaler will scale down the corresponding Node.
	ToBeDeletedByClusterAutoscaler = "ToBeDeletedByClusterAutoscaler"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger       logr.Logger
	TargetClient client.Client

	// NodeSelector is the selector used to retrieve nodes considered when calculating the tolerations.
	NodeSelector map[string]string
	// PodNodeSelector are the key-value pairs that should be added to each pod.
	PodNodeSelector map[string]string
	// PodTolerations are the tolerations that should be added to each pod.
	PodTolerations []corev1.Toleration
}

Handler contains required nodeSelector and tolerations information.

func (*Handler) AddToManager

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

AddToManager adds Handler to the given manager.

func (*Handler) Default

func (h *Handler) Default(ctx context.Context, obj runtime.Object) error

Default sets the spec.nodeSelector and spec.Tolerations fields the podTemplate.

Jump to

Keyboard shortcuts

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