Documentation ¶
Overview ¶
Package controller contains logic for watching and synchronizing replicationControllers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodControlInterface ¶
type PodControlInterface interface {
// contains filtered or unexported methods
}
PodControlInterface is an interface that knows how to add or delete pods created as an interface to allow testing.
type RealPodControl ¶
type RealPodControl struct {
// contains filtered or unexported fields
}
RealPodControl is the default implementation of PodControllerInterface.
type ReplicationManager ¶
type ReplicationManager struct {
// contains filtered or unexported fields
}
ReplicationManager is responsible for synchronizing ReplicationController objects stored in etcd with actual running pods. TODO: Remove the etcd dependency and re-factor in terms of a generic watch interface
func MakeReplicationManager ¶
func MakeReplicationManager(etcdClient tools.EtcdClient, kubeClient client.Interface) *ReplicationManager
MakeReplicationManager craetes a new ReplicationManager.
func (*ReplicationManager) Run ¶
func (rm *ReplicationManager) Run(period time.Duration)
Run begins watching and syncing.
Click to show internal directories.
Click to hide internal directories.