From e495aac9a7afeb054d2754dc7bd43277a0ca5839 Mon Sep 17 00:00:00 2001 From: Eric Lipe Date: Thu, 19 Sep 2024 09:47:38 -0400 Subject: [PATCH] - add quotes --- scripts/deploy-backend.sh | 4 ++-- scripts/deploy-frontend.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deploy-backend.sh b/scripts/deploy-backend.sh index 1deaea75d..e473a5440 100755 --- a/scripts/deploy-backend.sh +++ b/scripts/deploy-backend.sh @@ -104,8 +104,8 @@ update_kibana() prepare_promtail() { pushd tdrs-backend/plg/promtail CONFIG=config.yml - yq eval -i ".scrape_configs[0].job_name = system-$backend_app_name" $CONFIG - yq eval -i ".scrape_configs[1].job_name = backend-$backend_app_name" $CONFIG + yq eval -i ".scrape_configs[0].job_name = \"system-$backend_app_name\"" $CONFIG + yq eval -i ".scrape_configs[1].job_name = \"backend-$backend_app_name\"" $CONFIG popd } diff --git a/scripts/deploy-frontend.sh b/scripts/deploy-frontend.sh index cf952ff22..0d994c5ab 100755 --- a/scripts/deploy-frontend.sh +++ b/scripts/deploy-frontend.sh @@ -21,8 +21,8 @@ KIBANA_BASE_URL="${CGAPPNAME_KIBANA}-${env}.apps.internal" prepare_promtail() { pushd tdrs-frontend CONFIG=promtail.config.yml - yq eval -i ".scrape_configs[0].job_name = system-$frontend_app_name" $CONFIG - yq eval -i ".scrape_configs[1].job_name = frontend-$frontend_app_name" $CONFIG + yq eval -i ".scrape_configs[0].job_name = \"system-$backend_app_name\"" $CONFIG + yq eval -i ".scrape_configs[1].job_name = \"backend-$backend_app_name\"" $CONFIG popd }