Skip to content

Commit cf654c6

Browse files
authored
Do not reference the postgres secret for sidecars (but use the existing environment variable instead) (#404)
1 parent 3bfebed commit cf654c6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

api/v1/postgres_types.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -752,16 +752,6 @@ func (p *Postgres) buildSidecars(c *corev1.ConfigMap) []zalando.Sidecar {
752752
return nil
753753
}
754754

755-
// Deal with dynamically assigned name
756-
for i := range sidecars {
757-
for j := range sidecars[i].Env {
758-
if sidecars[i].Env[j].ValueFrom != nil && sidecars[i].Env[j].ValueFrom.SecretKeyRef != nil {
759-
sidecars[i].Env[j].ValueFrom.SecretKeyRef.Name = "postgres." + p.ToPeripheralResourceName() + ".credentials"
760-
break
761-
}
762-
}
763-
}
764-
765755
return sidecars
766756
}
767757

0 commit comments

Comments
 (0)