Skip to content

Commit 3c88e66

Browse files
committed
update ex path and config name
1 parent 681dcd2 commit 3c88e66

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

luanchdarkly.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
22

3-
# cd /home/aneesh/repos/confluentic/cc-kafka-platform-manager
4-
# git pull
53

6-
echo "Enter config name ex: kafka.config.enable.produce.consume.metric.logging"
4+
5+
echo "Enter complete path for cluster list ex: users/user/canaries-devel.json"
6+
read cluster_list_path
7+
echo "Enter config name ex: test.config.enable"
78
read config_name
89
echo "Enter environment ex: prod/devel/stag"
910
read environment
@@ -13,14 +14,14 @@ echo "Enter config value"
1314
read flag_value
1415

1516

16-
clusters="$(cat /Users/amasingh/cc-kafka-platform-manager/src/main/resources/rollouts/kafka/canaries-devel.json)"
17+
clusters="$(cat $cluster_list_path)"
1718

1819

1920
internal_canaries="$(echo $clusters | jq '.clusters.internal_canaries' | awk '{printf("%s",$0)} END { printf "\n" }')"
2021
external_canaries="$(echo $clusters | jq '.clusters.external_canaries' | awk '{printf("%s",$0)} END { printf "\n" }')"
2122
phase_n_canaries="$(echo $clusters | jq '.clusters.phase_n_canaries' | awk '{printf("%s",$0)} END { printf "\n" }')"
2223

23-
echo "Fecthing config details"
24+
echo "Fecthing config details ${external_canaries}"
2425
flag_details="$(curl -X GET 'https://app.launchdarkly.com/api/v2/flags/default/'${config_name} -H 'Authorization: '${authorization_key} | jq)"
2526

2627
echo "Sucessfully got the config details"

0 commit comments

Comments
 (0)