Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPodInformerFactory ¶ added in v0.39.0
func NewPodInformerFactory(kubeClient kubernetes.Interface, namespace string) informers.SharedInformerFactory
NewPodInformerFactory returns the shared pod informer factory. Both the rollout controller and the ZPDB eviction controller need a full view of the pods in the namespace, so they are given the same factory: one each would mean two watches and two in-memory copies of every pod, which on a large cell is thousands of objects held twice.
Types ¶
type RolloutController ¶
type RolloutController struct {
// contains filtered or unexported fields
}
func NewRolloutController ¶
func NewRolloutController(kubeClient kubernetes.Interface, discoveryClient discovery.DiscoveryInterface, restMapper meta.RESTMapper, scaleClient scale.ScalesGetter, dynamic dynamic.Interface, clusterDomain string, namespace string, podsFactory informers.SharedInformerFactory, podHTTPClient *instrumentation.PodHTTPClient, reconcileInterval time.Duration, reg prometheus.Registerer, logger log.Logger, zpdbController ZPDBEvictionController) *RolloutController
func (*RolloutController) AllowMissingCRDs ¶ added in v0.42.0
func (c *RolloutController) AllowMissingCRDs()
AllowMissingCRDs lets Init return before the ReplicaTemplate informer syncs. When discovery first finds the CRD, it enqueues a reconcile. Call before Init.
func (*RolloutController) Run ¶
func (c *RolloutController) Run()
Run runs the controller and blocks until Stop() is called.
func (*RolloutController) Snapshot ¶ added in v0.41.0
Snapshot builds a read-only rollout status view from informer caches.
func (*RolloutController) WatchReplicaTemplates ¶ added in v0.41.0
func (c *RolloutController) WatchReplicaTemplates()
WatchReplicaTemplates enables prompt reconciliation of desired replica changes. Call before Init with list/watch permissions; the informer retries until the CRD is available.