Skip to content

Commit c535914

Browse files
committed
Update install check mark spacing
1 parent ecef996 commit c535914

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

manager/install.sh

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function ensure_eks() {
113113
if [[ -n $asg_spot_name ]]; then
114114
aws autoscaling update-auto-scaling-group --region $CORTEX_REGION --auto-scaling-group-name $asg_spot_name --min-size=$CORTEX_MIN_INSTANCES
115115
fi
116-
echo " "
116+
echo ""
117117
fi
118118

119119
if [ "$asg_max_size" != "$CORTEX_MAX_INSTANCES" ]; then
@@ -124,7 +124,7 @@ function ensure_eks() {
124124
if [[ -n $asg_spot_name ]]; then
125125
aws autoscaling update-auto-scaling-group --region $CORTEX_REGION --auto-scaling-group-name $asg_spot_name --max-size=$CORTEX_MAX_INSTANCES
126126
fi
127-
echo " "
127+
echo ""
128128
fi
129129
}
130130

@@ -147,7 +147,7 @@ function main() {
147147
echo -n "○ updating cluster configuration "
148148
setup_configmap
149149
setup_secrets
150-
echo " "
150+
echo ""
151151

152152
echo -n "○ configuring networking "
153153
setup_istio
@@ -157,47 +157,50 @@ function main() {
157157
echo -n "○ configuring autoscaling "
158158
python render_template.py $CORTEX_CLUSTER_CONFIG_FILE manifests/cluster-autoscaler.yaml.j2 > $CORTEX_CLUSTER_WORKSPACE/cluster-autoscaler.yaml
159159
kubectl apply -f $CORTEX_CLUSTER_WORKSPACE/cluster-autoscaler.yaml >/dev/null
160-
echo " "
160+
echo ""
161161

162162
echo -n "○ configuring logging "
163163
envsubst < manifests/fluentd.yaml | kubectl apply -f - >/dev/null
164-
echo " "
164+
echo ""
165165

166166
echo -n "○ configuring metrics "
167167
envsubst < manifests/metrics-server.yaml | kubectl apply -f - >/dev/null
168168
envsubst < manifests/statsd.yaml | kubectl apply -f - >/dev/null
169-
echo " "
169+
echo ""
170170

171171
if [[ "$CORTEX_INSTANCE_TYPE" == p* ]] || [[ "$CORTEX_INSTANCE_TYPE" == g* ]]; then
172172
echo -n "○ configuring gpu support "
173173
envsubst < manifests/nvidia.yaml | kubectl apply -f - >/dev/null
174-
echo " "
174+
echo ""
175175
fi
176176

177177
echo -n "○ starting operator "
178178
kubectl -n=default delete --ignore-not-found=true --grace-period=10 deployment operator >/dev/null 2>&1
179-
until [ "$(kubectl -n=default get pods -l workloadID=operator -o json | jq -j '.items | length')" -eq "0" ]; do echo -n "."; sleep 2; done
179+
printed_dot="false"
180+
until [ "$(kubectl -n=default get pods -l workloadID=operator -o json | jq -j '.items | length')" -eq "0" ]; do echo -n "."; printed_dot="true"; sleep 2; done
180181
envsubst < manifests/operator.yaml | kubectl apply -f - >/dev/null
181-
echo ""
182+
if [ "$printed_dot" == "true" ]; then echo ""; else echo ""; fi
182183

183184
validate_cortex
184185

185186
if kubectl get daemonset image-downloader -n=default &>/dev/null; then
186187
echo -n "○ downloading docker images "
188+
printed_dot="false"
187189
i=0
188190
until [ "$(kubectl get daemonset image-downloader -n=default -o 'jsonpath={.status.numberReady}')" == "$(kubectl get daemonset image-downloader -n=default -o 'jsonpath={.status.desiredNumberScheduled}')" ]; do
189191
if [ $i -eq 100 ]; then break; fi # give up after 5 minutes
190192
echo -n "."
193+
printed_dot="true"
191194
((i=i+1))
192195
sleep 3
193196
done
194197
kubectl -n=default delete --ignore-not-found=true daemonset image-downloader &>/dev/null
195-
echo ""
198+
if [ "$printed_dot" == "true" ]; then echo ""; else echo ""; fi
196199
fi
197200

198201
echo -n "○ configuring cli "
199202
python update_cli_config.py "/.cortex/cli.yaml" "$CORTEX_ENV_NAME" "$operator_endpoint" "$CORTEX_AWS_ACCESS_KEY_ID" "$CORTEX_AWS_SECRET_ACCESS_KEY"
200-
echo " "
203+
echo ""
201204

202205
echo -e "\ncortex is ready!"
203206
}

0 commit comments

Comments
 (0)