Skip to content

Commit 3b1dc0c

Browse files
authored
Add *-operator-crds to exclude list for tests (#801)
1 parent 3ca7421 commit 3b1dc0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ jobs:
5050
run: |
5151
echo "Base branch is $GITHUB_BASE_REF"
5252
excluded_charts=("everest")
53+
# Exclude -operator-crds; they are installed in the next step with --take-ownership
54+
while IFS= read -r crd; do [[ -n "$crd" ]] && excluded_charts+=("$crd"); done <<< "$(ct list-changed --config .github/ct.yaml | sed 's:^charts/::' | grep '\-operator-crds$' || true)"
5355
OPERATOR_INSTALL=$(ct list-changed --config .github/ct.yaml | sed -E 's:charts/::' | awk '/(-db|-operator)$/ { sub(/-db$/, "-operator"); print }' | sort -u)
56+
echo "The charts to install: $OPERATOR_INSTALL"
5457
5558
if [ -n "$OPERATOR_INSTALL" ]; then
5659
for operator in $OPERATOR_INSTALL; do
@@ -65,6 +68,7 @@ jobs:
6568
)
6669
echo "${HELM_ARGS[@]}"
6770
fi
71+
echo "Installing $operator with Helm args: ${HELM_ARGS[@]}"
6872
helm install --namespace default $operator charts/$operator/. --wait --debug "${HELM_ARGS[@]}"
6973
excluded_charts+=($operator)
7074
done

0 commit comments

Comments
 (0)