PGAdminContainerImage returns the container image to use for pgAdmin.
(cluster *v1beta1.PostgresCluster)
| 36 | |
| 37 | // PGAdminContainerImage returns the container image to use for pgAdmin. |
| 38 | func PGAdminContainerImage(cluster *v1beta1.PostgresCluster) string { |
| 39 | var image string |
| 40 | if cluster.Spec.UserInterface != nil && |
| 41 | cluster.Spec.UserInterface.PGAdmin != nil { |
| 42 | image = cluster.Spec.UserInterface.PGAdmin.Image |
| 43 | } |
| 44 | |
| 45 | return defaultFromEnv(image, "RELATED_IMAGE_PGADMIN") |
| 46 | } |
| 47 | |
| 48 | // StandalonePGAdminContainerImage returns the container image to use for pgAdmin. |
| 49 | func StandalonePGAdminContainerImage(pgadmin *v1beta1.PGAdmin) string { |