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

Function PostgresContainerImage

internal/config/config.go:94–103  ·  view source on GitHub ↗

PostgresContainerImage returns the container image to use for PostgreSQL.

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

92
93// PostgresContainerImage returns the container image to use for PostgreSQL.
94func PostgresContainerImage(cluster *v1beta1.PostgresCluster) string {
95 image := cluster.Spec.Image
96 key := "RELATED_IMAGE_POSTGRES_" + fmt.Sprint(cluster.Spec.PostgresVersion)
97
98 if version := cluster.Spec.PostGISVersion; version != "" {
99 key += "_GIS_" + version
100 }
101
102 return defaultFromEnv(image, key)
103}
104
105// PGONamespace returns the namespace where the PGO is running,
106// based on the env var from the DownwardAPI

Callers 7

reconcileMoveWALDirMethod · 0.92
reconcileInstanceMethod · 0.92
InstancePodFunction · 0.92
VerifyImageValuesFunction · 0.85

Calls 1

defaultFromEnvFunction · 0.70

Tested by 1