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)
  • Loading branch information
eberlep committed Aug 9, 2022
1 parent c66136e commit 35666e4
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 @@ -721,16 +721,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 35666e4

Please sign in to comment.