Skip to content

Commit

Permalink
chore(ci) remove duplicate install block
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jul 16, 2024
1 parent 59d5d58 commit 1edf3f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
32 changes: 0 additions & 32 deletions scripts/test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,38 +126,6 @@ metadata:

fi

TAG_MESSAGE=""
if [[ "${TAG}" != "default" ]]
then
TAG_MESSAGE="with controller tag ${TAG} "
ADDITIONAL_FLAGS+=("--set ingressController.deployment.pod.container.image.tag=${TAG} ");
fi

# Configure values for all tests
# Enable Gateway API
ADDITIONAL_FLAGS+=("--set ingressController.deployment.pod.container.env.feature_gates=GatewayAlpha=true")
# Tests should not show up in reporting
ADDITIONAL_FLAGS+=("--set ingressController.deployment.pod.container.env.anonymous_reports=false")

if [[ -n "${KONG_VERSION-}" ]]
then
ADDITIONAL_FLAGS+=("--set image.tag=${KONG_VERSION}")
fi

if [[ -n "${KIC_VERSION-}" ]]
then
ADDITIONAL_FLAGS+=("--set ingressController.deployment.pod.container.image.tag=${KIC_VERSION}")
fi

echo "INFO: installing chart as release ${RELEASE_NAME} ${TAG_MESSAGE}to namespace ${RELEASE_NAMESPACE}"
set -x
# shellcheck disable=SC2048,SC2086
helm install --namespace "${RELEASE_NAMESPACE}" "${RELEASE_NAME}" \
--set deployment.test.enabled=true \
${ADDITIONAL_FLAGS[*]} \
"charts/${CHART_NAME}"
set +x

# ------------------------------------------------------------------------------
# Test Chart
# ------------------------------------------------------------------------------
Expand Down
7 changes: 0 additions & 7 deletions scripts/test-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ else
set +x
fi

set -x
# shellcheck disable=SC2048,SC2086
helm install --create-namespace --namespace "${RELEASE_NAMESPACE}" "${RELEASE_NAME}" \
--set ingressController.deployment.pod.container.env.anonymous_reports="false" \
--set deployment.test.enabled=true ${ADDITIONAL_FLAGS[*]} \
"charts/${CHART_NAME}"
set +x
# ------------------------------------------------------------------------------
# Test Chart
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 1edf3f7

Please sign in to comment.