replicaclusterswitch

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package replicaclusterswitch contains the logic needed to turn on the replica cluster feature on an existing cluster

Index

Constants

View Source
const (

	// ConditionReplicaClusterSwitch is a consumer facing condition and should not be used to decide actions
	// inside the code
	ConditionReplicaClusterSwitch = "ReplicaClusterSwitch"
)

Variables

This section is empty.

Functions

func IsDesignatedPrimaryTransitionRequested

func IsDesignatedPrimaryTransitionRequested(cluster *apiv1.Cluster) bool

IsDesignatedPrimaryTransitionRequested returns a boolean indicating if the instance primary should transition to designated primary

func Reconcile

func Reconcile(
	ctx context.Context,
	cli client.Client,
	cluster *apiv1.Cluster,
	instances postgres.PostgresqlStatusList,
) (*ctrl.Result, error)

Reconcile reconciles the cluster replica cluster switching.

func SetDesignatedPrimaryTransitionCompleted

func SetDesignatedPrimaryTransitionCompleted(cluster *apiv1.Cluster)

SetDesignatedPrimaryTransitionCompleted creates the condition

Types

This section is empty.

Jump to

Keyboard shortcuts

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