@@ -167,7 +167,7 @@ function install_operator() {
167
167
168
168
prompt_for_telemetry
169
169
170
- echo " Installing the Cortex operator ..."
170
+ echo -e " \nInstalling the Cortex operator ..."
171
171
172
172
setup_namespace
173
173
setup_configmap
@@ -252,29 +252,28 @@ function get_endpoints() {
252
252
# ################
253
253
254
254
function setup_bucket() {
255
- echo
256
255
if ! aws s3api head-bucket --bucket $CORTEX_BUCKET --output json 2> /dev/null; then
257
256
if aws s3 ls " s3://$CORTEX_BUCKET " --output json 2>&1 | grep -q ' NoSuchBucket' ; then
258
- echo -e " Creating S3 bucket: $CORTEX_BUCKET \n "
257
+ echo -e " \nCreating S3 bucket: $CORTEX_BUCKET "
259
258
aws s3api create-bucket --bucket $CORTEX_BUCKET \
260
259
--region $CORTEX_REGION \
261
260
--create-bucket-configuration LocationConstraint=$CORTEX_REGION \
262
261
> /dev/null
263
262
else
264
- echo " A bucket named \" ${CORTEX_BUCKET} \" already exists, but you do not have access to it"
263
+ echo -e " \nA bucket named \" ${CORTEX_BUCKET} \" already exists, but you do not have access to it"
265
264
exit 1
266
265
fi
267
266
else
268
- echo -e " Using existing S3 bucket: $CORTEX_BUCKET \n "
267
+ echo -e " \nUsing existing S3 bucket: $CORTEX_BUCKET "
269
268
fi
270
269
}
271
270
272
271
function setup_cloudwatch_logs() {
273
272
if ! aws logs list-tags-log-group --log-group-name $CORTEX_LOG_GROUP --region $CORTEX_REGION --output json 2>&1 | grep -q " \" tags\" :" ; then
274
- echo -e " Creating CloudWatch log group: $CORTEX_LOG_GROUP \n "
273
+ echo -e " \nCreating CloudWatch log group: $CORTEX_LOG_GROUP "
275
274
aws logs create-log-group --log-group-name $CORTEX_LOG_GROUP --region $CORTEX_REGION
276
275
else
277
- echo -e " Using existing CloudWatch log group: $CORTEX_LOG_GROUP \n "
276
+ echo -e " \nUsing existing CloudWatch log group: $CORTEX_LOG_GROUP "
278
277
fi
279
278
}
280
279
0 commit comments