Commit graph

12 commits

Author SHA1 Message Date
Samuel Beaulieu
a4c730df7b
fix rubocop and spec tests 2021-12-29 12:02:55 -06:00
Samuel Beaulieu
daa55fe5b8
Adding the cloud DNS API library and related methods
we setup DNS when a VM is created and tear it down when a VM is deleted
the DNS zone should exist already and is referenced by a provider setting
the dns zone is also set in order to use it for vm_ready? instead of the global
domain
instances have a label that identifies which project they belong to, so
it can be used for FW rules
2021-12-29 08:21:51 -06:00
Samuel Beaulieu
5c67073dad
rubocop fixes 2021-12-09 18:43:36 -06:00
Samuel Beaulieu
662f965c0f
refactor the connection and add debug logs 2021-12-09 17:59:15 -06:00
Samuel Beaulieu
8594160fbe
Implementing the tag_vm_user method
This method gets the user name based on the token:user metadata in redis,
cleans it up to be safe for a label name (lowercase, numbers and dash or underscore only),
and update the existing instance labels adding a new one called token-user
2021-12-09 11:35:29 -06:00
Samuel Beaulieu
f6791baba0
Adding support for fully qualified allow list eg user=bob
before thhis change the allow list would only support checking the 'pool' label value
we can now specify a different label name by using the format labename=value where
the equal sign '=' is considered the separator
2021-12-09 11:33:10 -06:00
Samuel Beaulieu
fc7a628063
spec the purge method and align it with the new base method signature 2021-12-08 10:33:25 -06:00
Samuel Beaulieu
761c96fd38
adding purge unconfigured method 2021-12-07 13:08:21 -06:00
Samuel Beaulieu
c85fed771f
improve revert_snapshot method 2021-12-07 12:12:55 -06:00
Samuel Beaulieu
2a0e9f5bdc
adding spec tests 2021-12-07 08:41:55 -06:00
Samuel Beaulieu
b631570871
adding create_disk and create_snapshot method implementation 2021-12-03 13:31:04 -06:00
Samuel Beaulieu
588e29b6e1
(DIO-2768) Initial gce provider 2021-12-02 14:27:31 -06:00