Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dist/openshift/cincinnati-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ objects:
name: openshift-update-service
annotations:
olm.providedAPIs: ''
spec: {}
spec:
targetNamespaces:
- "${NAMESPACE}"
- apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
Expand All @@ -36,6 +38,8 @@ objects:
releases: quay.io/openshift-release-dev/ocp-release
replicas: ${{REPLICAS}}
parameters:
- name: NAMESPACE
value: "openshift-update-service"
- name: IMAGE
value: "quay.io/app-sre/cincinnati"
displayName: cincinnati image
Expand Down
3 changes: 2 additions & 1 deletion hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ echo "GRAPHDATA_IMAGE=${GRAPH_SOURCE}"

# Render the template and apply subscription/operand
oc process -f dist/openshift/cincinnati-e2e.yaml \
-p NAMESPACE="openshift-update-service" \
-p IMAGE="${IMAGE}" \
-p IMAGE_TAG="${IMAGE_TAG}" \
-p GRAPHDATA_IMAGE="${GRAPH_SOURCE}" \
Expand All @@ -126,7 +127,7 @@ backoff oc -n openshift-update-service wait --for=condition=Ready pod -l app=e2e
}

# Expose services
PE_URL=$(oc get route e2e-policy-engine-route -o jsonpath='{.spec.host}')
PE_URL=$(oc get route e2e-route -o jsonpath='{.spec.host}')
export GRAPH_URL="https://${PE_URL}/api/upgrades_info/graph"

# Wait for route to become available
Expand Down