@@ -723,7 +723,7 @@ func (c *Cluster) generatePodTemplate(
723723 spiloContainer * v1.Container ,
724724 initContainers []v1.Container ,
725725 sidecarContainers []v1.Container ,
726- sharePGSocketWithSidecars * bool ,
726+ sharePgSocketWithSidecars * bool ,
727727 tolerationsSpec * []v1.Toleration ,
728728 spiloRunAsUser * int64 ,
729729 spiloRunAsGroup * int64 ,
@@ -792,7 +792,7 @@ func (c *Cluster) generatePodTemplate(
792792 podSpec .PriorityClassName = priorityClassName
793793 }
794794
795- if sharePGSocketWithSidecars != nil && * sharePGSocketWithSidecars {
795+ if sharePgSocketWithSidecars != nil && * sharePgSocketWithSidecars {
796796 addVarRunVolume (& podSpec )
797797 }
798798
@@ -1378,7 +1378,7 @@ func (c *Cluster) generateStatefulSet(spec *acidv1.PostgresSpec) (*appsv1.Statef
13781378 spiloContainer ,
13791379 initContainers ,
13801380 sidecarContainers ,
1381- c .OpConfig .SharePGSocketWithSidecars ,
1381+ c .OpConfig .SharePgSocketWithSidecars ,
13821382 & tolerationSpec ,
13831383 effectiveRunAsUser ,
13841384 effectiveRunAsGroup ,
@@ -1586,8 +1586,8 @@ func addVarRunVolume(podSpec *v1.PodSpec) {
15861586 for i := range podSpec .Containers {
15871587 mounts := append (podSpec .Containers [i ].VolumeMounts ,
15881588 v1.VolumeMount {
1589- Name : "postgresql-run" ,
1590- MountPath : "/var/run/postgresql" ,
1589+ Name : constants . RunVolumeName ,
1590+ MountPath : constants . RunVolumePath ,
15911591 })
15921592 podSpec .Containers [i ].VolumeMounts = mounts
15931593 }
0 commit comments