From 9e7691b3611483c89244ee48c1c5d5f252afa106 Mon Sep 17 00:00:00 2001 From: Puskar Basu Date: Tue, 23 Jun 2026 09:48:49 +0530 Subject: [PATCH] OKD-380: Add missing namespace to image trigger annotations The image.openshift.io/triggers annotation on database Deployments is missing the namespace field in the ImageStreamTag reference. Without it, the image trigger controller looks for ImageStreams in the user's namespace instead of 'openshift', causing image resolution to fail. Add "namespace":"${NAMESPACE}" to the trigger from object in both postgresql-persistent and postgresql-ephemeral templates. Related: https://github.com/okd-project/okd/issues/2337 Co-Authored-By: Claude Opus 4.6 --- examples/postgresql-ephemeral-template.json | 2 +- examples/postgresql-persistent-template.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/postgresql-ephemeral-template.json b/examples/postgresql-ephemeral-template.json index d8e4d842..5a698c03 100644 --- a/examples/postgresql-ephemeral-template.json +++ b/examples/postgresql-ephemeral-template.json @@ -72,7 +72,7 @@ "name": "${DATABASE_SERVICE_NAME}", "annotations": { "template.alpha.openshift.io/wait-for-ready": "true", - "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" + "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\",\"namespace\":\"${NAMESPACE}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" } }, "spec": { diff --git a/examples/postgresql-persistent-template.json b/examples/postgresql-persistent-template.json index fe686d67..834d3a1d 100644 --- a/examples/postgresql-persistent-template.json +++ b/examples/postgresql-persistent-template.json @@ -89,7 +89,7 @@ "name": "${DATABASE_SERVICE_NAME}", "annotations": { "template.alpha.openshift.io/wait-for-ready": "true", - "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" + "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\",\"namespace\":\"${NAMESPACE}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" } }, "spec": {