Skip to content

Commit f2f111e

Browse files
author
Jonathan S. Katz
committed
Run recovery command for standby promotion on nonstandard port
The fix for an issue relating to running PostgreSQL commands on nonstandard PostgreSQL ports did not fully fix it for the case of running the recovery check command on a promoted standby. This ensures the command is actually run.
1 parent 4dc7582 commit f2f111e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/pod/promotionhandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func waitForStandbyPromotion(restConfig *rest.Config, clientset *kubernetes.Clie
143143
cmd = append(cmd, cluster.Spec.Port)
144144

145145
isInRecoveryStr, _, _ := kubeapi.ExecToPodThroughAPI(restConfig, clientset,
146-
isInRecoveryCMD, newPod.Spec.Containers[0].Name, newPod.Name,
146+
cmd, newPod.Spec.Containers[0].Name, newPod.Name,
147147
newPod.Namespace, nil)
148148
if strings.Contains(isInRecoveryStr, "f") {
149149
recoveryDisabled = true

0 commit comments

Comments
 (0)