@@ -107,7 +107,7 @@ func InstancePod(ctx context.Context,
107107 container .Command = []string {"patroni" , configDirectory }
108108 // K8SPG-708 introduces a new entrypoint script in the percona-docker repository.
109109 if inCluster .CompareVersion ("2.7.0" ) >= 0 {
110- container .Command = []string {"/usr/local /bin/entrypoint.sh" , "patroni" , configDirectory }
110+ container .Command = []string {"/opt/crunchy /bin/postgres- entrypoint.sh" , "patroni" , configDirectory }
111111 }
112112
113113 container .Env = append (container .Env ,
@@ -178,7 +178,7 @@ func livenessProbe(cluster *v1beta1.PostgresCluster) corev1.ProbeHandler {
178178 if cluster .CompareVersion ("2.7.0" ) >= 0 {
179179 return corev1.ProbeHandler {
180180 Exec : & corev1.ExecAction {
181- Command : []string {"bash" , "-c" , "/usr/local /bin/postgres-liveness-check.sh" },
181+ Command : []string {"bash" , "-c" , "/opt/crunchy /bin/postgres-liveness-check.sh" },
182182 },
183183 }
184184 }
@@ -199,7 +199,7 @@ func readinessProbe(cluster *v1beta1.PostgresCluster) corev1.ProbeHandler {
199199 if cluster .CompareVersion ("2.7.0" ) >= 0 {
200200 return corev1.ProbeHandler {
201201 Exec : & corev1.ExecAction {
202- Command : []string {"bash" , "-c" , "/usr/local /bin/postgres-readiness-check.sh" },
202+ Command : []string {"bash" , "-c" , "/opt/crunchy /bin/postgres-readiness-check.sh" },
203203 },
204204 }
205205 }
0 commit comments