MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / PGAdminContainerImage

Function PGAdminContainerImage

internal/config/config.go:38–46  ·  view source on GitHub ↗

PGAdminContainerImage returns the container image to use for pgAdmin.

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

36
37// PGAdminContainerImage returns the container image to use for pgAdmin.
38func 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.
49func StandalonePGAdminContainerImage(pgadmin *v1beta1.PGAdmin) string {

Callers 4

PodFunction · 0.92
VerifyImageValuesFunction · 0.85

Calls 1

defaultFromEnvFunction · 0.70

Tested by 1