-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(google): add default gce instance type disk constants to front end (
- Loading branch information
1 parent
7e7c2cc
commit a3f3695
Showing
2 changed files
with
183 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
177 changes: 177 additions & 0 deletions
177
app/scripts/modules/google/src/instance/gceInstanceTypeDisks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
// Duplicated from https://github.com/spinnaker/clouddriver/blob/master/clouddriver-web/config/clouddriver.yml | ||
// TODO(mneterval): remove after resolution of https://github.com/spinnaker/spinnaker/issues/4859 | ||
export const GCE_INSTANCE_TYPE_DISK_DEFAULTS = Object.freeze([ | ||
{ | ||
instanceType: 'n1-standard-1', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-standard-2', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-standard-4', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-standard-8', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-standard-16', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-standard-32', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'f1-micro', | ||
supportsLocalSSD: false, | ||
disks: [ | ||
{ | ||
type: 'pd-standard', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'g1-small', | ||
supportsLocalSSD: false, | ||
disks: [ | ||
{ | ||
type: 'pd-standard', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highmem-2', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highmem-4', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highmem-8', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highmem-16', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highmem-32', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highcpu-2', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highcpu-4', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highcpu-8', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highcpu-16', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'n1-highcpu-32', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
{ | ||
instanceType: 'default', | ||
disks: [ | ||
{ | ||
type: 'pd-ssd', | ||
sizeGb: 10, | ||
}, | ||
], | ||
}, | ||
]); |