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
Click to show internal directories.
Click to hide internal directories.