Skip to content

Commit f1c89bc

Browse files
pskrbasuclaude
authored andcommitted
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: okd-project/okd#2337 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 088006a commit f1c89bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/postgresql-ephemeral-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"name": "${DATABASE_SERVICE_NAME}",
7373
"annotations": {
7474
"template.alpha.openshift.io/wait-for-ready": "true",
75-
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
75+
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\",\"namespace\":\"${NAMESPACE}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
7676
}
7777
},
7878
"spec": {

examples/postgresql-persistent-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"name": "${DATABASE_SERVICE_NAME}",
9090
"annotations": {
9191
"template.alpha.openshift.io/wait-for-ready": "true",
92-
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
92+
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\",\"namespace\":\"${NAMESPACE}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
9393
}
9494
},
9595
"spec": {

0 commit comments

Comments
 (0)