File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # cd /home/aneesh/repos/confluentic/cc-kafka-platform-manager
4
- # git pull
5
3
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"
7
8
read config_name
8
9
echo " Enter environment ex: prod/devel/stag"
9
10
read environment
@@ -13,14 +14,14 @@ echo "Enter config value"
13
14
read flag_value
14
15
15
16
16
- clusters=" $( cat /Users/amasingh/cc-kafka-platform-manager/src/main/resources/rollouts/kafka/canaries-devel.json ) "
17
+ clusters=" $( cat $cluster_list_path ) "
17
18
18
19
19
20
internal_canaries=" $( echo $clusters | jq ' .clusters.internal_canaries' | awk ' {printf("%s",$0)} END { printf "\n" }' ) "
20
21
external_canaries=" $( echo $clusters | jq ' .clusters.external_canaries' | awk ' {printf("%s",$0)} END { printf "\n" }' ) "
21
22
phase_n_canaries=" $( echo $clusters | jq ' .clusters.phase_n_canaries' | awk ' {printf("%s",$0)} END { printf "\n" }' ) "
22
23
23
- echo " Fecthing config details"
24
+ echo " Fecthing config details ${external_canaries} "
24
25
flag_details=" $( curl -X GET ' https://app.launchdarkly.com/api/v2/flags/default/' ${config_name} -H ' Authorization: ' ${authorization_key} | jq) "
25
26
26
27
echo " Sucessfully got the config details"
You can’t perform that action at this time.
0 commit comments