From e0732969927cad13625bcf0701690321a66f79c6 Mon Sep 17 00:00:00 2001 From: Gabriel Mechali Date: Mon, 3 Feb 2025 13:21:15 -0800 Subject: [PATCH 1/2] Updating flags for release --- server/config/feature_flag_configs/production.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/config/feature_flag_configs/production.json b/server/config/feature_flag_configs/production.json index 5e05d4b787..8eebe29133 100644 --- a/server/config/feature_flag_configs/production.json +++ b/server/config/feature_flag_configs/production.json @@ -1,12 +1,12 @@ [{ "name": "autocomplete", - "enabled": false, + "enabled": true, "owner": "gmechali", "description": "Feature flag to enable place autocomplete." }, { "name": "dev_place_experiment", - "enabled": false, + "enabled": true, "owner": "gmechali", "description": "Feature flag to enable the V2 place page only for the experiment places." }, @@ -18,7 +18,7 @@ }, { "name": "scroll_to_top_button", - "enabled": false, + "enabled": true, "owner": "gmechali", "description": "Feature flag to enable the scroll to top button on the explore and place pages." }] \ No newline at end of file From 00764fc74d9ca95369d0c910de8dfef7e7708e5b Mon Sep 17 00:00:00 2001 From: Gabriel Mechali Date: Mon, 3 Feb 2025 14:23:13 -0800 Subject: [PATCH 2/2] Update GCS script to update both kubernetes pods --- scripts/update_gcs_feature_flags.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/update_gcs_feature_flags.sh b/scripts/update_gcs_feature_flags.sh index 49dc3bc87c..952c71bc72 100755 --- a/scripts/update_gcs_feature_flags.sh +++ b/scripts/update_gcs_feature_flags.sh @@ -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