Skip to content

Commit f2f998e

Browse files
committed
verify image update
1 parent 4a4c5d6 commit f2f998e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

internal/config/config.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,9 @@ func VerifyImageValues(cluster *v1beta1.PostgresCluster) error {
154154
cluster.Spec.Monitoring.PGMonitor.Exporter != nil {
155155
images = append(images, "crunchy-postgres-exporter")
156156
}
157-
if PGExporterContainerImage(cluster) == "" &&
158-
cluster.Spec.Monitoring != nil &&
159-
cluster.Spec.Monitoring.PGMonitor != nil &&
160-
cluster.Spec.Monitoring.PGMonitor.Exporter != nil {
161-
images = append(images, "crunchy-postgres-exporter")
157+
if CollectorContainerImage(cluster.Spec.Instrumentation) == "" &&
158+
cluster.Spec.Instrumentation != nil {
159+
images = append(images, "crunchy-collector")
162160
}
163161
if PostgresContainerImage(cluster) == "" {
164162
if cluster.Spec.PostGISVersion != "" {

0 commit comments

Comments
 (0)