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" )
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 ¶
AddToManager adds Handler to the given manager.
Click to show internal directories.
Click to hide internal directories.