File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ trap "cleanup" EXIT SIGINT
18
18
bash " ${CODEGEN_PKG} /generate-groups.sh" all \
19
19
" ${OPERATOR_PACKAGE_ROOT} /pkg/generated" " ${OPERATOR_PACKAGE_ROOT} /pkg/apis" \
20
20
" acid.zalan.do:v1 zalando.org:v1" \
21
- --go-header-file " ${SCRIPT_ROOT} " /hack/custom-boilerplate.go.txt
21
+ --go-header-file " ${SCRIPT_ROOT} " /hack/custom-boilerplate.go.txt \
22
+ -o ./
22
23
23
24
cp -r " ${OPERATOR_PACKAGE_ROOT} " /pkg/* " ${TARGET_CODE_DIR} "
24
25
Original file line number Diff line number Diff line change @@ -324,7 +324,6 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) (
324
324
Protocol : v1 .ProtocolTCP ,
325
325
},
326
326
},
327
- Env : envVars ,
328
327
ReadinessProbe : & v1.Probe {
329
328
ProbeHandler : v1.ProbeHandler {
330
329
TCPSocket : & v1.TCPSocketAction {
@@ -341,7 +340,7 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) (
341
340
// 1. Add environment variables to tell pgBouncer where to find the TLS certificates
342
341
// 2. Reference the secret in a volume
343
342
// 3. Mount the volume to the container at /tls
344
- poolerVolumes := []v1.Volume {}
343
+ var poolerVolumes []v1.Volume
345
344
if spec .TLS != nil && spec .TLS .SecretName != "" {
346
345
// Env vars
347
346
crtFile := spec .TLS .CertificateFile
@@ -383,6 +382,7 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) (
383
382
}}
384
383
}
385
384
385
+ poolerContainer .Env = envVars
386
386
tolerationsSpec := tolerations (& spec .Tolerations , c .OpConfig .PodToleration )
387
387
388
388
podTemplate := & v1.PodTemplateSpec {
You can’t perform that action at this time.
0 commit comments