Documentation ¶
Index ¶
Constants ¶
View Source
const ( FedReplicaSetPreferencesAnnotation = "federation.kubernetes.io/replica-set-preferences" UserAgentName = "Federation-replicaset-Controller" )
View Source
const ( // TODO: make it configurable UnschedulableThreshold = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func AnalysePods ¶
func AnalysePods(replicaSet *v1beta1.ReplicaSet, allPods []util.FederatedObject, currentTime time.Time) (map[string]PodAnalysisResult, error)
A function that calculates how many pods from the list are in one of the meaningful (from the replica set perspective) states. This function is a temporary workaround against the current lack of ownerRef in pods.
Types ¶
type PodAnalysisResult ¶
type ReplicaSetController ¶
type ReplicaSetController struct {
// contains filtered or unexported fields
}
func NewReplicaSetController ¶
func NewReplicaSetController(federationClient fedclientset.Interface) *ReplicaSetController
NewclusterController returns a new cluster controller
func (*ReplicaSetController) Run ¶
func (frsc *ReplicaSetController) Run(workers int, stopCh <-chan struct{})
Click to show internal directories.
Click to hide internal directories.