Skip to content

Commit

Permalink
Do not reference the postgres secret for sidecars (but use the existi…
Browse files Browse the repository at this point in the history
…ng environment variable instead) (#404)
  • Loading branch information
eberlep authored Oct 18, 2023
1 parent 3bfebed commit cf654c6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions api/v1/postgres_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,16 +752,6 @@ func (p *Postgres) buildSidecars(c *corev1.ConfigMap) []zalando.Sidecar {
return nil
}

// Deal with dynamically assigned name
for i := range sidecars {
for j := range sidecars[i].Env {
if sidecars[i].Env[j].ValueFrom != nil && sidecars[i].Env[j].ValueFrom.SecretKeyRef != nil {
sidecars[i].Env[j].ValueFrom.SecretKeyRef.Name = "postgres." + p.ToPeripheralResourceName() + ".credentials"
break
}
}
}

return sidecars
}

Expand Down

0 comments on commit cf654c6

Please sign in to comment.