(DIO-3162) vmpooler gce provider to support disk type (to use ssd)

Added a new pool config named disk_type, which can be set to pd-ssd to
use a SSD disk attahed to the instance. When not set, or set to empty,
the google default of pd-standard is used
This commit is contained in:
Samuel Beaulieu 2022-06-16 09:35:05 -05:00
parent c6533af9ed
commit e06917dd92
No known key found for this signature in database
GPG key ID: 12030F74136D0F34
3 changed files with 12 additions and 4 deletions

View file

@ -62,7 +62,7 @@ EOT
describe '#manual tests live' do
context 'in itsysops' do
before(:each) { allow(subject).to receive(:dns).and_call_original }
let(:vmname) { "instance-24" }
let(:vmname) { "instance-27" }
let(:project) { 'vmpooler-test' }
let(:config) { YAML.load(<<~EOT
---
@ -87,6 +87,7 @@ EOT
provider: 'gce'
subnetwork_name: 'projects/itsysopsnetworking/regions/us-west1/subnetworks/vmpooler-test'
machine_type: 'zones/#{zone}/machineTypes/e2-micro'
disk_type: 'pd-ssd'
EOT
) }
skip 'gets a vm' do