rollout

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package rollout contains the rollout manager, allowing CloudNative-PG to spread Pod rollouts depending on the passed configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is the rollout manager. It is safe to use concurrently

func New

func New(clusterRolloutDelay, instancesRolloutDelay time.Duration) *Manager

New creates a new rollout manager with the passed configuration

func (*Manager) CoordinateRollout

func (manager *Manager) CoordinateRollout(
	cluster client.ObjectKey,
	instanceName string,
) Result

CoordinateRollout is called to check whether this rollout is allowed or not by the manager

type Result

type Result struct {
	// This is true when the Pod can be rolled out immediately
	RolloutAllowed bool

	// This is set with the amount of time the operator need
	// to wait to rollout that Pod
	TimeToWait time.Duration
}

Result is the output of the rollout manager, telling the operator how much time we need to wait to rollout a Pod

Jump to

Keyboard shortcuts

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