package controller
import "k8s.io/kubernetes/pkg/controller"
Package controller contains logic for watching and synchronizing replicationControllers.
Index ¶
- func FilterActivePods(pods []api.Pod) []api.Pod
- type PodControlInterface
- type RealPodControl
- type ReplicationManager
Functions ¶
func FilterActivePods ¶
Helper function. Also used in pkg/registry/controller, for now.
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 the system with actual running pods.
func NewReplicationManager ¶
func NewReplicationManager(kubeClient client.Interface) *ReplicationManager
NewReplicationManager creates a new ReplicationManager.
func (*ReplicationManager) Run ¶
func (rm *ReplicationManager) Run(period time.Duration)
Run begins watching and syncing.
Source Files ¶
doc.go replication_controller.go
- Version
- v0.9.3
- Published
- Jan 30, 2015
- Platform
- windows/amd64
- Imports
- 9 packages
- Last checked
- 17 seconds ago –
Tools for package owners.