Skip to content

Commit

Permalink
Fix wizard settings step (#1134) (#1136)
Browse files Browse the repository at this point in the history
* change default node size for aws

* fix vsphere settings
  • Loading branch information
Marcin Maciaszczyk authored Mar 20, 2019
1 parent b355a65 commit a494dea
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<form [formGroup]="vsphereNodeForm" fxLayout="column">
<div fxFlex class="mat-select-container">
<mat-form-field fxFlex>
<input matInput formControlName="cpu" min="1" max="8" type="number" placeholder="Number of CPUs*:" autocomplete="off">
<form [formGroup]="vsphereNodeForm"
fxLayout="column">
<div fxFlex
class="mat-select-container">
<mat-form-field>
<input matInput
formControlName="cpu"
min="1"
max="8"
type="number"
placeholder="Number of CPUs*:"
autocomplete="off">
<mat-error *ngIf="vsphereNodeForm.controls.cpu.hasError('required')">
Number of CPUs is <strong>required</strong>
</mat-error>
Expand All @@ -12,8 +20,13 @@
Number of CPUs have to be at least 1
</mat-error>
</mat-form-field>
<mat-form-field fxFlex>
<input matInput formControlName="memory" min="512" type="number" placeholder="Memory in MB*:" autocomplete="off">
<mat-form-field>
<input matInput
formControlName="memory"
min="512"
type="number"
placeholder="Memory in MB*:"
autocomplete="off">
</mat-form-field>
</div>
</form>
2 changes: 1 addition & 1 deletion src/app/shared/entity/NodeEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function getEmptyNodeProviderSpec(provider: string): object {
switch (provider) {
case NodeProvider.AWS:
const awsSpec: AWSNodeSpec = {
instanceType: 't2.small',
instanceType: 't3.small',
diskSize: 25,
volumeType: 'standard',
ami: '',
Expand Down
6 changes: 3 additions & 3 deletions src/app/testing/fake-data/node.fake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export function nodeDataFake(): NodeData {
tags: [],
},
aws: {
instanceType: 't2.small',
instanceType: 't3.small',
diskSize: 25,
volumeType: 'standard',
ami: '',
Expand Down Expand Up @@ -364,7 +364,7 @@ export function nodeDataCentOsFake(): NodeData {
tags: [],
},
aws: {
instanceType: 't2.small',
instanceType: 't3.small',
diskSize: 25,
volumeType: 'standard',
ami: '',
Expand Down Expand Up @@ -418,7 +418,7 @@ export function nodeDataContainerLinuxFake(): NodeData {
tags: [],
},
aws: {
instanceType: 't2.small',
instanceType: 't3.small',
diskSize: 25,
volumeType: 'standard',
ami: '',
Expand Down

0 comments on commit a494dea

Please sign in to comment.