controller

package
v0.0.0-...-1711f34 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisruptionWindowSchedKey      = "k8s.adsrvr.net/disruption-window-schedule"
	DisruptionWindowDurationKey   = "k8s.adsrvr.net/disruption-window-duration"
	DisruptionBlockedEventReason  = "DisruptionBlocked"
	DisruptionBlockedEventMessage = "Cannot disrupt Node: state node is marked for deletion"
	DisruptionBlockedEventKind    = "Node"
)

Variables

This section is empty.

Functions

func IsDisruptionWindowActive

func IsDisruptionWindowActive(ctx context.Context, podNamespace, podName string, disruptionWindowSched, disruptionWindowDuration string) bool

IsDisruptionWindowActive checks if the current time is within the disruption window.

Types

type DeprovisionController

type DeprovisionController struct {
	Client client.Client
}

func (*DeprovisionController) HandleBlockingPods

func (c *DeprovisionController) HandleBlockingPods(ctx context.Context, pods []corev1.Pod, nodeName string)

func (*DeprovisionController) Reconcile

func (*DeprovisionController) Register

Jump to

Keyboard shortcuts

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