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

Function PGBackRestContainerImage

internal/config/config.go:31–35  ·  view source on GitHub ↗

Red Hat Marketplace requires operators to use environment variables be used for any image other than the operator itself. Those variables must start with "RELATED_IMAGE_" so that OSBS can transform their tag values into digests for a "disconnected" OLM CSV. - https://redhat-connect.gitbook.io/certif

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

29
30// PGBackRestContainerImage returns the container image to use for pgBackRest.
31func PGBackRestContainerImage(cluster *v1beta1.PostgresCluster) string {
32 image := cluster.Spec.Backups.PGBackRest.Image
33
34 return defaultFromEnv(image, "RELATED_IMAGE_PGBACKREST")
35}
36
37// PGAdminContainerImage returns the container image to use for pgAdmin.
38func PGAdminContainerImage(cluster *v1beta1.PostgresCluster) string {

Callers 9

reconcileMoveRepoDirMethod · 0.92
reconcileRestoreJobMethod · 0.92
MakePGBackrestLogDirFunction · 0.92
VerifyImageValuesFunction · 0.85

Calls 1

defaultFromEnvFunction · 0.70

Tested by 1