Skip to content

Commit

Permalink
chore: Add GCP provider to floorist
Browse files Browse the repository at this point in the history
  • Loading branch information
avitova committed Oct 13, 2023
1 parent c0b85a0 commit 94d630b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,27 @@ objects:
join azure_reservation_details d on r.id = d.reservation_id
join accounts a on r.account_id = a.id
where provider = provider_type_azure()
order by r.created_at)
union all
(select 'gcp' as provider,
r.id,
r.created_at,
r.finished_at,
r.success,
r.status || ' (' || r.step || '/' || r.steps || ')' as status,
a.account_number,
a.org_id,
d.source_id,
d.image_id,
d.detail -> 'machine_type' as type,
d.detail -> 'amount' as amount,
d.detail -> 'launch_template_id' is not null as template
from reservations r
join gcp_reservation_details d on r.id = d.reservation_id
join accounts a on r.account_id = a.id
where provider = provider_type_gcp()
order by r.created_at);
Expand Down

0 comments on commit 94d630b

Please sign in to comment.