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 ¶
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 ¶
SetDesignatedPrimaryTransitionCompleted creates the condition
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.