Skip to content
Snippets Groups Projects
Commit 45d23698 authored by Felix Kunde's avatar Felix Kunde
Browse files

minor change

parent ee165537
No related branches found
No related tags found
No related merge requests found
...@@ -227,9 +227,7 @@ func (c *Cluster) logServiceChanges(role PostgresRole, old, new *v1.Service, isU ...@@ -227,9 +227,7 @@ func (c *Cluster) logServiceChanges(role PostgresRole, old, new *v1.Service, isU
} }
} }
func getPostgresContainer(podSpec *v1.PodSpec) v1.Container { func getPostgresContainer(podSpec *v1.PodSpec) (pgContainer v1.Container) {
var pgContainer v1.Container
for _, container := range podSpec.Containers { for _, container := range podSpec.Containers {
if container.Name == constants.PostgresContainerName { if container.Name == constants.PostgresContainerName {
pgContainer = container pgContainer = container
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment