Skip to content

Commit

Permalink
Removed cloud costs --quiet option (#852)
Browse files Browse the repository at this point in the history
* Removed gcloud auth

* Removed quiet option

* Removed quiet option
  • Loading branch information
jdesouza authored Dec 11, 2023
1 parent 51597bd commit fd25106
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions plugins/cloud-costs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.1.7
* Removing --quiet option

## 0.1.6
* Removing gcloud auth

Expand Down
2 changes: 1 addition & 1 deletion plugins/cloud-costs/cloud-costs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ if [[ "$provider" == "gcp" ]]; then
echo "Google bigquey is running......"

sql="SELECT main.* FROM \`$table\` AS main LEFT JOIN UNNEST(labels) as labels WHERE labels.key = '$tagkey' AND labels.value = '$tagvalue' and usage_start_time >= '$initial_date_time' AND usage_start_time < '$final_date_time' order by usage_start_time desc"
bq --quiet --format=prettyjson query --max_rows=10000000 --nouse_legacy_sql "$sql" > /output/cloudcosts-tmp.json
bq --format=prettyjson query --max_rows=10000000 --nouse_legacy_sql "$sql" > /output/cloudcosts-tmp.json
echo "Google bigquey finished......"

awk '$0 == "[" {p=1} p' < /output/cloudcosts-tmp.json > /output/cloudcosts-tmp-clean.json
Expand Down
2 changes: 1 addition & 1 deletion plugins/cloud-costs/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.6
0.1.7

0 comments on commit fd25106

Please sign in to comment.