imagepath should have prefix 'crunchydata/' in Pgcluster CR
the operator seems to be adding a crunchydata/ image prefix automatically when creating the Pods from the Pgcluster CR. e.g. repository: crunchy-postgres
What we need is to define the imagepath with the crunchydata/ image prefix in pgcluster CR. this way, we can also use it to pull image in our installer code. e.g. repository: crunchydata/crunchy-postgres
thanks for reporting this one, we'll add the image prefix into the CR.
@jmccormick2001
In our use case, we upload all the images to a private repository and will not have access to the internet. Hence the operator should be able to read the image name, tag, and secret associated with it from the CR and download the images.
@jmccormick2001 as a workaround we could consider overriding the default files from this folder https://github.com/CrunchyData/postgres-operator/tree/master/conf/postgres-operator through a pgo-config configmap, but it would help if we could selectively override files (in this case we just need to set the Cluster.CCPImagePrefix in pgo.yaml) instead of having to provide all the files as the code seems to expect here https://github.com/CrunchyData/postgres-operator/blob/7fb5f61381314e0f7886709a6ffb27c027571050/config/pgoconfig.go#L718-L734
FYI did some research, going to try and get CCPImagePrefix added to the CR so it works like ccpimage and ccpimagetag in 4.1.