Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update update-ingress-objects.sh #823

Closed
wants to merge 2 commits into from
Closed
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
9 changes: 9 additions & 0 deletions src/harness/scripts/update-ingress-objects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ if [[ $(echo "$MAJOR_MINOR_VERSION >= 0.21" | bc) -eq 1 ]]; then
read -p "Enter Helm Release Name (You can check release name by running 'helm ls -n $NAMESPACE'): " RELEASE_NAME
fi

# Re-check Upgrade version
read -p "Updating Ingress objects for upgrade to Harness version: $VERSION. Continue? (Yes | No): " CONFIRM_RESPONSE
CONFIRM_RESPONSE=$(echo "$CONFIRM_RESPONSE" | tr '[:upper:]' '[:lower:]')

if [[ "${CONFIRM_RESPONSE}" != "yes" ]]; then
echo "Exiting.. "
exit 1
fi

# Perform actions based on the version
if [[ "$VERSION" == "0.24."* ]]; then
OLD_INGRESS_NAMES=("log-service" "pipeline-service-smp-v1-apis" "access-control" "ci-manager" "template-service" "ssca-manager" "ssca-manager-smp-v1-apis" "ng-ce-ui" "chaos-manager" "migrator-api" "next-gen-ui" "ng-dashboard-aggregator" "chaos-k8s-ifs" "verification-svc" "ssca-ui" "ng-auth-ui" "nextgen-ce" "service-discovery-manager" "${RELEASE_NAME}-gitops" "${RELEASE_NAME}-sto-manager" "cv-nextgen" "cv-nextgen-smp-v1-apis" "gateway" "${RELEASE_NAME}-policy-mgmt" "ng-custom-dashboards" "telescopes" "cloud-info" "debezium-service" "event-service-api" "queue-service" "srm-ui")
Expand Down