From ecb2c5f4ebb8bc00d41d730120c7a7e00ed5f77c Mon Sep 17 00:00:00 2001 From: Puskar Basu Date: Tue, 23 Jun 2026 13:48:34 +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 cakephp-mysql and cakephp-mysql-persistent templates. Related: https://github.com/okd-project/okd/issues/2337 Co-Authored-By: Claude Opus 4.6 --- openshift/templates/cakephp-mysql-persistent.json | 2 +- openshift/templates/cakephp-mysql.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openshift/templates/cakephp-mysql-persistent.json b/openshift/templates/cakephp-mysql-persistent.json index cb6519b52..58ac2c365 100644 --- a/openshift/templates/cakephp-mysql-persistent.json +++ b/openshift/templates/cakephp-mysql-persistent.json @@ -327,7 +327,7 @@ "annotations": { "description": "Defines how to deploy the database", "template.alpha.openshift.io/wait-for-ready": "true", - "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"mysql:${MYSQL_VERSION}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" + "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"mysql:${MYSQL_VERSION}\",\"namespace\":\"${NAMESPACE}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" } }, "spec": { diff --git a/openshift/templates/cakephp-mysql.json b/openshift/templates/cakephp-mysql.json index 0cade8526..03f04b99b 100644 --- a/openshift/templates/cakephp-mysql.json +++ b/openshift/templates/cakephp-mysql.json @@ -311,7 +311,7 @@ "annotations": { "description": "Defines how to deploy the database", "template.alpha.openshift.io/wait-for-ready": "true", - "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"mysql:${MYSQL_VERSION}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" + "image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"mysql:${MYSQL_VERSION}\",\"namespace\":\"${NAMESPACE}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]" } }, "spec": {