Skip to content

Commit b0cae12

Browse files
committed
address review comments
1 parent f10763c commit b0cae12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/apis/pxc/v1/pxc_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ func (cr *PerconaXtraDBCluster) CheckNSetDefaults(serverVersion *version.ServerV
819819
c.ProxySQL.ImagePullPolicy = corev1.PullAlways
820820
}
821821

822-
if cr.CompareVersionWith("1.12.0") >= 0 && len(c.ProxySQL.PXCHandler) == 0 {
822+
if cr.CompareVersionWith("1.13.0") >= 0 && len(c.ProxySQL.PXCHandler) == 0 {
823823
c.ProxySQL.PXCHandler = "internal"
824824
}
825825

pkg/pxc/app/statefulset/proxysql.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (c *Proxy) AppContainer(spec *api.PodSpec, secrets string, cr *api.PerconaX
147147
}
148148
}
149149

150-
if cr.CompareVersionWith("1.12.0") >= 0 {
150+
if cr.CompareVersionWith("1.13.0") >= 0 {
151151
appc.Env = append(appc.Env, corev1.EnvVar{
152152
Name: "PXC_HANDLER",
153153
Value: cr.Spec.ProxySQL.PXCHandler,
@@ -244,7 +244,7 @@ func (c *Proxy) SidecarContainers(spec *api.PodSpec, secrets string, cr *api.Per
244244
},
245245
}
246246

247-
if cr.CompareVersionWith("1.12.0") >= 0 {
247+
if cr.CompareVersionWith("1.13.0") >= 0 {
248248
pxcMonit.Env = append(pxcMonit.Env, corev1.EnvVar{
249249
Name: "PXC_HANDLER",
250250
Value: cr.Spec.ProxySQL.PXCHandler,

0 commit comments

Comments
 (0)