Просмотр исходного кода

Merge pull request #1916 from porter-dev/staging

EKS Infra form improvements -> production
abelanger5 4 лет назад
Родитель
Сommit
37fc751602
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      api/server/handlers/infra/forms.go

+ 13 - 0
api/server/handlers/infra/forms.go

@@ -379,11 +379,24 @@ tabs:
       required: true
       placeholder: my-cluster
       variable: cluster_name
+    - type: number-input
+      label: Maximum number of EC2 instances to create in the application autoscaling group.
+      variable: max_instances
+      placeholder: "ex: 10"
+      settings:
+        default: 10
     - type: checkbox
       variable: spot_instances_enabled
       label: Enable spot instances for this cluster.
       settings:
         default: false
+  - name: spot_instance_price
+    show_if: spot_instances_enabled
+    contents:
+    - type: string-input
+      label: Assign a bid price for the spot instance (optional).
+      variable: spot_price
+      placeholder: "ex: 0.05"
 `
 
 const gcrForm = `name: GCR