replication

package
v1.30.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 30 Imported by: 207

Documentation

Overview

Package replication contains logic for watching and synchronizing replication controllers.

Index

Constants

View Source
const (
	BurstReplicas = replicaset.BurstReplicas
)

Variables

This section is empty.

Functions

func GetCondition added in v1.5.0

GetCondition returns a replication controller condition with the provided type if it exists.

func RemoveCondition added in v1.5.0

func RemoveCondition(status *v1.ReplicationControllerStatus, condType v1.ReplicationControllerConditionType)

RemoveCondition removes the condition with the provided type from the replication controller status.

func SetCondition added in v1.5.0

func SetCondition(status *v1.ReplicationControllerStatus, condition v1.ReplicationControllerCondition)

SetCondition adds/replaces the given condition in the replication controller status.

Types

type ReplicationManager

type ReplicationManager struct {
	replicaset.ReplicaSetController
}

ReplicationManager is responsible for synchronizing ReplicationController objects stored in the system with actual running pods. It is actually just a wrapper around ReplicaSetController.

func NewReplicationManager

func NewReplicationManager(logger klog.Logger, podInformer coreinformers.PodInformer, rcInformer coreinformers.ReplicationControllerInformer, kubeClient clientset.Interface, burstReplicas int) *ReplicationManager

NewReplicationManager configures a replication manager with the specified event recorder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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