minor change

This commit is contained in:
Felix Kunde 2021-05-28 11:40:56 +02:00
parent ee165537f1
commit 45d236988e
1 changed files with 1 additions and 3 deletions

View File

@ -227,9 +227,7 @@ func (c *Cluster) logServiceChanges(role PostgresRole, old, new *v1.Service, isU
}
}
func getPostgresContainer(podSpec *v1.PodSpec) v1.Container {
var pgContainer v1.Container
func getPostgresContainer(podSpec *v1.PodSpec) (pgContainer v1.Container) {
for _, container := range podSpec.Containers {
if container.Name == constants.PostgresContainerName {
pgContainer = container