replicaset

package
v1.6.5-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package replicaset contains logic for watching and synchronizing ReplicaSets.

Index

Constants

View Source
const (
	// Realistic value of the burstReplica field for the replica set manager based off
	// performance requirements for kubernetes 1.0.
	BurstReplicas = 500
)

Variables

This section is empty.

Functions

func GetCondition added in v1.5.1

GetCondition returns a replica set condition with the provided type if it exists.

func NewReplicaSetCondition added in v1.5.1

func NewReplicaSetCondition(condType extensions.ReplicaSetConditionType, status v1.ConditionStatus, reason, msg string) extensions.ReplicaSetCondition

NewReplicaSetCondition creates a new replica set condition.

func RemoveCondition added in v1.5.1

func RemoveCondition(status *extensions.ReplicaSetStatus, condType extensions.ReplicaSetConditionType)

RemoveCondition removes the condition with the provided type from the replica set status.

func SetCondition added in v1.5.1

func SetCondition(status *extensions.ReplicaSetStatus, condition extensions.ReplicaSetCondition)

SetCondition adds/replaces the given condition in the replica set status. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.

Types

type ReplicaSetController

type ReplicaSetController struct {
	// contains filtered or unexported fields
}

ReplicaSetController is responsible for synchronizing ReplicaSet objects stored in the system with actual running pods.

func NewReplicaSetController

func NewReplicaSetController(rsInformer extensionsinformers.ReplicaSetInformer, podInformer coreinformers.PodInformer, kubeClient clientset.Interface, burstReplicas int) *ReplicaSetController

NewReplicaSetController configures a replica set controller with the specified event recorder

func (*ReplicaSetController) Run

func (rsc *ReplicaSetController) Run(workers int, stopCh <-chan struct{})

Run begins watching and syncing.

func (*ReplicaSetController) SetEventRecorder

func (rsc *ReplicaSetController) SetEventRecorder(recorder record.EventRecorder)

SetEventRecorder replaces the event recorder used by the ReplicaSetController with the given recorder. Only used for testing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL