Skip to content

Commit 35f1acf

Browse files
committed
remove unnecessary vars
1 parent 43153e7 commit 35f1acf

1 file changed

Lines changed: 0 additions & 58 deletions

File tree

install-bundler/bundler/install.sh

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -103,27 +103,6 @@ if [[ -z "${GCP_SECRET_CONFIG_VALUE}" ]] ; then
103103
exit 1
104104
fi
105105

106-
echo ""
107-
echo "Getting secret config data stored in ${GCP_PLAINTEXT_CONFIG_SECRET}"
108-
BUNDLER_SIMULATION_DATA_JSON=$(grep BUNDLER_SIMULATION_DATA_JSON <<< "${GCP_SECRET_CONFIG_VALUE}" \
109-
| sed 's/BUNDLER_SIMULATION_DATA_JSON=//g')
110-
BUNDLER_TOKEN_PRICE_JSON=$(grep BUNDLER_TOKEN_PRICE_JSON <<< "${GCP_SECRET_CONFIG_VALUE}" \
111-
| sed 's/BUNDLER_TOKEN_PRICE_JSON=//g')
112-
BUNDLER_SLACK_JSON=$(grep BUNDLER_SLACK_JSON <<< "${GCP_SECRET_CONFIG_VALUE}" \
113-
| sed 's/BUNDLER_SLACK_JSON=//g')
114-
BUNDLER_PROVIDER_JSON=$(grep BUNDLER_PROVIDER_JSON <<< "${GCP_SECRET_CONFIG_VALUE}" \
115-
| sed 's/BUNDLER_PROVIDER_JSON=//g')
116-
BUNDLER_DATASOURCES_JSON=$(grep BUNDLER_DATASOURCES_JSON <<< "${GCP_SECRET_CONFIG_VALUE}" \
117-
| sed 's/BUNDLER_DATASOURCES_JSON=//g')
118-
BUNDLER_SOCKET_SERVICE_JSON=$(grep BUNDLER_SOCKET_SERVICE_JSON <<< "${GCP_SECRET_CONFIG_VALUE}" \
119-
| sed 's/BUNDLER_SOCKET_SERVICE_JSON=//g')
120-
BUNDLER_QUEUE_URL=$(grep BUNDLER_QUEUE_URL <<< "${GCP_SECRET_CONFIG_VALUE}" \
121-
| sed 's/BUNDLER_QUEUE_URL=//g')
122-
BUNDLER_IS_TRUSTWALLET_SETUP=$(grep BUNDLER_IS_TRUSTWALLET_SETUP <<< "${GCP_SECRET_CONFIG_VALUE}" \
123-
| sed 's/BUNDLER_IS_TRUSTWALLET_SETUP=//g')
124-
BUNDLER_FALLBACK=$(grep BUNDLER_FALLBACK_PROVIDER_JSON <<< "${GCP_SECRET_CONFIG_VALUE}" \
125-
| sed 's/BUNDLER_FALLBACK_PROVIDER_JSON=//g')
126-
127106
if ! kubectl get namespace "${NAMESPACE}"; then
128107
echo "Error: ${NAMESPACE} doesnt exists, creating it now"
129108
kubectl create ns "${NAMESPACE}"
@@ -151,10 +130,6 @@ source "${GIT_ROOT}/install-bundler/configs/chains/$CHAINS_CFG_FILENAME"
151130
# [chainId]="80001"
152131
# [autoScalingThreshholdHTTPRequestsPerMinute]=10000
153132
# [autoScalingThreshholdCPU]=2500m
154-
# [minRelayerCount]="200"
155-
# [maxRelayerCount]="220"
156-
# [fundingBalanceThreshold]="1"
157-
# [fundingRelayerAmount]="2"
158133
# [minReplica]=8
159134
# [maxReplica]=8
160135
# )
@@ -176,14 +151,6 @@ for array_name in $array_names; do
176151
eval "MIN_REPLICA=\${$array_name[minReplica]}"
177152
# shellcheck disable=SC1087
178153
eval "MAX_REPLICA=\${$array_name[maxReplica]}"
179-
# shellcheck disable=SC1087
180-
eval "MIN_RELAYER_COUNT=\${$array_name[minRelayerCount]}"
181-
# shellcheck disable=SC1087
182-
eval "MAX_RELAYER_COUNT=\${$array_name[maxRelayerCount]}"
183-
# shellcheck disable=SC1087
184-
eval "FUNDING_BALANCE_THRESHOLD=\${$array_name[fundingBalanceThreshold]}"
185-
# shellcheck disable=SC1087
186-
eval "FUNDING_RELAYER_AMOUNT=\${$array_name[fundingRelayerAmount]}"
187154

188155
ADJ_AUTOSCALING_THRESHHOLD_HTTP_REQUESTS=$(bc -l <<< "$AUTOSCALING_THRESHHOLD_HTTP_REQUESTS_PER_MINUTE/60*1000" | cut -d'.' -f1)m
189156

@@ -193,20 +160,8 @@ for array_name in $array_names; do
193160
print_green "AUTOSCALING_THRESHHOLD_CPU=$AUTOSCALING_THRESHHOLD_CPU"
194161
print_green "MIN_REPLICA=$MIN_REPLICA"
195162
print_green "MAX_REPLICA=$MAX_REPLICA"
196-
print_green "MIN_RELAYER_COUNT=$MIN_RELAYER_COUNT"
197-
print_green "MAX_RELAYER_COUNT=$MAX_RELAYER_COUNT"
198-
print_green "FUNDING_BALANCE_THRESHOLD=$FUNDING_BALANCE_THRESHOLD"
199-
print_green "FUNDING_RELAYER_AMOUNT=$FUNDING_RELAYER_AMOUNT"
200163
print_green "ADJ_AUTOSCALING_THRESHHOLD_HTTP_REQUESTS=${ADJ_AUTOSCALING_THRESHHOLD_HTTP_REQUESTS}"
201164

202-
ENCODED_BUNDLER_SIMULATION_DATA_JSON=$(echo -n "$BUNDLER_SIMULATION_DATA_JSON" | base64)
203-
ENCODED_BUNDLER_TOKEN_PRICE_JSON=$(echo -n "$BUNDLER_TOKEN_PRICE_JSON" | base64)
204-
ENCODED_BUNDLER_SLACK_JSON=$(echo -n "$BUNDLER_SLACK_JSON" | base64)
205-
ENCODED_BUNDLER_PROVIDER_JSON=$(echo -n "$BUNDLER_PROVIDER_JSON" | base64)
206-
ENCODED_BUNDLER_DATASOURCES_JSON=$(echo -n "$BUNDLER_DATASOURCES_JSON" | base64)
207-
ENCODED_BUNDLER_SOCKET_SERVICE_JSON=$(echo -n "$BUNDLER_SOCKET_SERVICE_JSON" | base64)
208-
ENCODED_BUNDLER_IS_TRUSTWALLET_SETUP=$(echo -n "$BUNDLER_IS_TRUSTWALLET_SETUP" | base64)
209-
ENCODED_BUNDLER_FALLBACK_PROVIDER_JSON=$(echo -n "$BUNDLER_FALLBACK" | base64)
210165
echo ""
211166
echo "Deploying HELM chart for $NAME $CHAIN_ID"
212167

@@ -227,19 +182,6 @@ for array_name in $array_names; do
227182
--set hpa.average_cpu_hpa="$AUTOSCALING_THRESHHOLD_CPU" \
228183
--set-string image.name="$IMAGE" \
229184
--set-string image.tag="$IMAGE_TAG" \
230-
--set-string minRelayerCount="$MIN_RELAYER_COUNT" \
231-
--set-string maxRelayerCount="$MAX_RELAYER_COUNT" \
232-
--set-string fundingBalanceThreshold="$FUNDING_BALANCE_THRESHOLD" \
233-
--set-string fundingRelayerAmount="$FUNDING_RELAYER_AMOUNT" \
234-
--set-string encodedBundlerSimulationDataJson="$ENCODED_BUNDLER_SIMULATION_DATA_JSON" \
235-
--set-string encodedBundlerTokenPriceJson="$ENCODED_BUNDLER_TOKEN_PRICE_JSON" \
236-
--set-string encodedBundlerSlackJson="$ENCODED_BUNDLER_SLACK_JSON" \
237-
--set-string encodedBundlerProviderJson="$ENCODED_BUNDLER_PROVIDER_JSON" \
238-
--set-string encodedBundlerDatasourcesJson="$ENCODED_BUNDLER_DATASOURCES_JSON" \
239-
--set-string encodedBundlerSocketServiceJson="$ENCODED_BUNDLER_SOCKET_SERVICE_JSON" \
240-
--set-string bundlerQueueUrl="$BUNDLER_QUEUE_URL" \
241-
--set-string encodedBundlerIsTrustWalletSetup="$ENCODED_BUNDLER_IS_TRUSTWALLET_SETUP" \
242-
--set-string encodedBundlerFallbackProviderJson="$ENCODED_BUNDLER_FALLBACK_PROVIDER_JSON" \
243185
--set-string gcpSecretManagerName="$GCP_SECRETS_MANAGER_NAME" \
244186
--set-string hpa.minReplicas="$MIN_REPLICA" \
245187
--set-string hpa.maxReplicas="$MAX_REPLICA" \

0 commit comments

Comments
 (0)