Skip to content

Commit bcf774d

Browse files
committed
fix: delete test resources
1 parent ba40c5a commit bcf774d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

k8s/test.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ __safe_migration_rollout() {
8989

9090
upgrade_alembic_migrations() {
9191
echo "::group::Upgrade alembic migrations for test"
92-
if [ $KUBERNETES_DEPLOYMENT_NAME != "refinery-gateway" ] && [ $KUBERNETES_DEPLOYMENT_NAME != "gates-gateway" ] && [ $KUBERNETES_DEPLOYMENT_NAME != "hosted-inference-api" ]; then
92+
if [ $KUBERNETES_DEPLOYMENT_NAME != "refinery-gateway" ] && [ $KUBERNETES_DEPLOYMENT_NAME != "hosted-inference-api" ]; then
9393
kubectl apply --kustomize apps/${REFINERY_DEPLOYMENT_NAME}/test
9494
__safe_migration_rollout test-${REFINERY_DEPLOYMENT_NAME}
9595
echo "Applied test-${REFINERY_DEPLOYMENT_NAME} deployment"
@@ -170,7 +170,10 @@ if [ "$ENABLE_ALEMBIC_MIGRATIONS" = "true" ]; then
170170
fi
171171

172172
echo "::group::Delete Test Infrastructure"
173-
kubectl delete --kustomize apps/${KUBERNETES_DEPLOYMENT_NAME}/test
173+
# skip deleting resources deployed by test-refinery-gatway
174+
if [ $KUBERNETES_DEPLOYMENT_NAME != "refinery-config" ] && [ $KUBERNETES_DEPLOYMENT_NAME != "refinery-websocket" ]; then
175+
kubectl delete --kustomize apps/${KUBERNETES_DEPLOYMENT_NAME}/test
176+
fi
174177
kubectl delete --kustomize infrastructure/test
175178
echo "::endgroup::"
176179

0 commit comments

Comments
 (0)