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

Adds production kubernetes cluster to release #4927

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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: 8 additions & 1 deletion scripts/update_gcs_feature_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,17 @@ compare_staging_production() {
# Function to restart the Kubernetes deployment
restart_kubernetes_deployment() {
local environment="$1"

# Sanitize environment input: Change "production" to "prod"
if [[ "$environment" == "production" ]]; then
environment="prod"
fi

gcloud config set project "datcom-website-${environment}"
gcloud container clusters get-credentials website-us-west1 --region us-west1 --project "datcom-website-${environment}"
gcloud container clusters get-credentials website-us-central1 --region us-central1 --project "datcom-website-${environment}"
kubectl rollout restart deployment website-app -n website
echo "Kubernetes deployment restarted."
echo "Kubernetes deployment restarted in environment: ${environment}."
}

# Main script
Expand Down