guard

package
v0.0.0-...-e158d5a Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGuardController

func NewGuardController(
	targetNamespace string,
	operandPodLabelSelector labels.Selector,
	podResourcePrefix string,
	operatorName string,
	readyzPort string,
	readyzEndpoint string,
	pdbUnhealthyPodEvictionPolicy *v1.UnhealthyPodEvictionPolicyType,
	kubeInformersForTargetNamespace informers.SharedInformerFactory,
	kubeInformersClusterScoped informers.SharedInformerFactory,
	operatorClient operatorv1helpers.StaticPodOperatorClient,
	podGetter corev1client.PodsGetter,
	pdbGetter policyclientv1.PodDisruptionBudgetsGetter,
	eventRecorder events.Recorder,
	createConditionalFunc func() (bool, bool, error),
) (factory.Controller, error)

Types

type GuardController

type GuardController struct {
	// contains filtered or unexported fields
}

GuardController is a controller that watches amount of static pods on master nodes and renders guard pods with a pdb to keep maxUnavailable to be at most 1

Jump to

Keyboard shortcuts

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