mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 01:27:49 +02:00
minor change
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user