Skip to content

Commit ef8947e

Browse files
matzewPatryk-Stefanski
authored andcommitted
bug: fix OpenShift deploy script CatalogSource and CSV wait
The CatalogSource referenced a non-existent "latest" image tag, causing ImagePullBackOff. The CI publishes the catalog image with the git ref name (e.g., "main"), so use that tag instead. The CSV wait loop used items[0] which matched the first CSV alphabetically (e.g., authorino-operator) rather than mcp-gateway, causing the script to proceed before CRDs were established. Use OLM's operator label selector to target the correct CSV. Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
1 parent 3a2b297 commit ef8947e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/deploy/olm/catalogsource.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: mcp-gateway-catalog
55
spec:
66
sourceType: grpc
7-
image: ghcr.io/kuadrant/mcp-controller-catalog:v0.5.1-rc1
7+
image: ghcr.io/kuadrant/mcp-controller-catalog:main
88
displayName: MCP Gateway
99
grpcPodConfig:
1010
securityContextConfig: restricted

config/openshift/deploy_openshift.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ kubectl apply -f /tmp/mcp-subscription.yaml -n $MCP_GATEWAY_NAMESPACE
7070

7171
echo "Waiting for controller CSV to succeed..."
7272
retries=0
73-
until kubectl get csv -n $MCP_GATEWAY_NAMESPACE -o jsonpath='{.items[0].status.phase}' 2>/dev/null | grep -q "Succeeded"; do
73+
until kubectl get csv -n $MCP_GATEWAY_NAMESPACE -l operators.coreos.com/mcp-gateway.$MCP_GATEWAY_NAMESPACE="" -o jsonpath='{.items[0].status.phase}' 2>/dev/null | grep -q "Succeeded"; do
7474
retries=$((retries + 1))
7575
if [ $retries -ge 60 ]; then
7676
echo "Timed out waiting for controller CSV to succeed"

0 commit comments

Comments
 (0)