package
0.21.4
Repository: https://github.com/minchaow/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package framework implements all the grunt work involved in running a simple controller.

# Functions

NewRCExpectations returns a store for PodExpectations.
NewReplicationManager creates a new ReplicationManager.

# Constants

Realistic value of the burstReplica field for the replication manager based off performance requirements for kubernetes 1.0.
No description provided by the author
If a watch drops a delete event for a pod, it'll take this long before a dormant rc waiting for those packets is woken up anyway.
We'll attempt to recompute the required replicas of all replication controllers the have fulfilled their expectations at least this often.
If a watch misdelivers info about a pod, it'll take at least this long to rectify the number of replicas.
We must avoid counting pods until the pod store has synced.

# Structs

PodExpectations track pod creates/deletes.
RCExpectations is a ttl cache mapping rcs to what they expect to see before being woken up for a sync.
RealPodControl is the default implementation of PodControllerInterface.
ReplicationManager is responsible for synchronizing ReplicationController objects stored in the system with actual running pods.

# Interfaces

Expectations are either fulfilled, or expire naturally.
PodControlInterface is an interface that knows how to add or delete pods created as an interface to allow testing.
RCExpectationsManager is an interface that allows users to set and wait on expectations.