Skip to content

Commit 30cded3

Browse files
committed
Add catalogd to code coverage
Signed-off-by: Todd Short <[email protected]>
1 parent f33bdea commit 30cded3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hack/test/e2e-coverage.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ COVERAGE_OUTPUT="${COVERAGE_OUTPUT:-${ROOT_DIR}/coverage/e2e.out}"
66

77
OPERATOR_CONTROLLER_NAMESPACE="olmv1-system"
88
OPERATOR_CONTROLLER_MANAGER_DEPLOYMENT_NAME="operator-controller-controller-manager"
9+
10+
CATALOGD_NAMESPACE="olmv1-system"
11+
CATALOGD_MANAGER_DEPLOYMENT_NAME="catalogd-controller-manager"
12+
913
COPY_POD_NAME="e2e-coverage-copy-pod"
1014

1115
# Create a temporary directory for coverage
@@ -15,6 +19,7 @@ rm -rf ${COVERAGE_DIR} && mkdir -p ${COVERAGE_DIR}
1519
# Coverage-instrumented binary produces coverage on termination,
1620
# so we scale down the manager before gathering the coverage
1721
kubectl -n "$OPERATOR_CONTROLLER_NAMESPACE" scale deployment/"$OPERATOR_CONTROLLER_MANAGER_DEPLOYMENT_NAME" --replicas=0
22+
kubectl -n "$CATALOGD_NAMESPACE" scale deployment/"$CATALOGD_MANAGER_DEPLOYMENT_NAME" --replicas=0
1823

1924
# Wait for the copy pod to be ready
2025
kubectl -n "$OPERATOR_CONTROLLER_NAMESPACE" wait --for=condition=ready pod "$COPY_POD_NAME"

0 commit comments

Comments
 (0)