forms.go 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211
  1. package infra
  2. const testForm = `name: Test
  3. hasSource: false
  4. includeHiddenFields: true
  5. isClusterScoped: true
  6. tabs:
  7. - name: main
  8. label: Configuration
  9. sections:
  10. - name: section_one
  11. contents:
  12. - type: heading
  13. label: String to echo
  14. - type: string-input
  15. variable: echo
  16. settings:
  17. default: hello
  18. `
  19. const s3Form = `name: S3
  20. hasSource: false
  21. includeHiddenFields: true
  22. isClusterScoped: true
  23. tabs:
  24. - name: main
  25. label: Main
  26. sections:
  27. - name: heading
  28. contents:
  29. - type: heading
  30. label: S3 Settings
  31. - name: bucket_name
  32. contents:
  33. - type: string-input
  34. label: Bucket Name
  35. required: true
  36. placeholder: "s3-bucket-name"
  37. variable: bucket_name
  38. `
  39. const rdsForm = `name: RDS
  40. hasSource: false
  41. includeHiddenFields: true
  42. isClusterScoped: true
  43. tabs:
  44. - name: main
  45. label: Main
  46. sections:
  47. - name: heading
  48. contents:
  49. - type: heading
  50. label: Database Settings
  51. - name: user
  52. contents:
  53. - type: string-input
  54. label: Database Master User
  55. required: true
  56. placeholder: "admin"
  57. variable: db_user
  58. - name: password
  59. contents:
  60. - type: string-input
  61. required: true
  62. label: Database Master Password
  63. variable: db_passwd
  64. - name: name
  65. contents:
  66. - type: string-input
  67. label: Database Name
  68. required: true
  69. placeholder: "rds-staging"
  70. variable: db_name
  71. - name: machine-type
  72. contents:
  73. - type: select
  74. label: ⚙️ Database Machine Type
  75. variable: machine_type
  76. settings:
  77. default: db.t3.medium
  78. options:
  79. - label: db.t2.medium
  80. value: db.t2.medium
  81. - label: db.t2.xlarge
  82. value: db.t2.xlarge
  83. - label: db.t2.2xlarge
  84. value: db.t2.2xlarge
  85. - label: db.t3.medium
  86. value: db.t3.medium
  87. - label: db.t3.xlarge
  88. value: db.t3.xlarge
  89. - label: db.t3.2xlarge
  90. value: db.t3.2xlarge
  91. - label: db.r5.large
  92. value: db.r5.large
  93. - label: db.r5.xlarge
  94. value: db.r5.xlarge
  95. - label: db.r5.2xlarge
  96. value: db.r5.2xlarge
  97. - name: family-versions
  98. contents:
  99. - type: select
  100. label: Database Family Version
  101. variable: db_family
  102. settings:
  103. default: postgres13
  104. options:
  105. - label: "Postgres 9"
  106. value: postgres9
  107. - label: "Postgres 10"
  108. value: postgres10
  109. - label: "Postgres 11"
  110. value: postgres11
  111. - label: "Postgres 12"
  112. value: postgres12
  113. - label: "Postgres 13"
  114. value: postgres13
  115. - label: "Postgres 14"
  116. value: postgres14
  117. - name: pg-9-versions
  118. show_if:
  119. is: "postgres9"
  120. variable: db_family
  121. contents:
  122. - type: select
  123. label: Database Version
  124. variable: db_engine_version
  125. settings:
  126. default: "9.6.23"
  127. options:
  128. - label: "v9.6.1"
  129. value: "9.6.1"
  130. - label: "v9.6.2"
  131. value: "9.6.2"
  132. - label: "v9.6.3"
  133. value: "9.6.3"
  134. - label: "v9.6.4"
  135. value: "9.6.4"
  136. - label: "v9.6.5"
  137. value: "9.6.5"
  138. - label: "v9.6.6"
  139. value: "9.6.6"
  140. - label: "v9.6.7"
  141. value: "9.6.7"
  142. - label: "v9.6.8"
  143. value: "9.6.8"
  144. - label: "v9.6.10"
  145. value: "9.6.10"
  146. - label: "v9.6.11"
  147. value: "9.6.11"
  148. - label: "v9.6.12"
  149. value: "9.6.12"
  150. - label: "v9.6.13"
  151. value: "9.6.13"
  152. - label: "v9.6.14"
  153. value: "9.6.14"
  154. - label: "v9.6.15"
  155. value: "9.6.15"
  156. - label: "v9.6.16"
  157. value: "9.6.16"
  158. - label: "v9.6.17"
  159. value: "9.6.17"
  160. - label: "v9.6.18"
  161. value: "9.6.18"
  162. - label: "v9.6.19"
  163. value: "9.6.19"
  164. - label: "v9.6.20"
  165. value: "9.6.20"
  166. - label: "v9.6.21"
  167. value: "9.6.21"
  168. - label: "v9.6.22"
  169. value: "9.6.22"
  170. - label: "v9.6.23"
  171. value: "9.6.23"
  172. - name: pg-10-versions
  173. show_if:
  174. is: "postgres10"
  175. variable: db_family
  176. contents:
  177. - type: select
  178. label: Database Version
  179. variable: db_engine_version
  180. settings:
  181. default: "10.22"
  182. options:
  183. - label: "v10.1"
  184. value: "10.1"
  185. - label: "v10.2"
  186. value: "10.2"
  187. - label: "v10.3"
  188. value: "10.3"
  189. - label: "v10.4"
  190. value: "10.4"
  191. - label: "v10.5"
  192. value: "10.5"
  193. - label: "v10.6"
  194. value: "10.6"
  195. - label: "v10.7"
  196. value: "10.7"
  197. - label: "v10.8"
  198. value: "10.8"
  199. - label: "v10.9"
  200. value: "10.9"
  201. - label: "v10.10"
  202. value: "10.10"
  203. - label: "v10.11"
  204. value: "10.11"
  205. - label: "v10.12"
  206. value: "10.12"
  207. - label: "v10.13"
  208. value: "10.13"
  209. - label: "v10.14"
  210. value: "10.14"
  211. - label: "v10.15"
  212. value: "10.15"
  213. - label: "v10.16"
  214. value: "10.16"
  215. - label: "v10.17"
  216. value: "10.17"
  217. - label: "v10.18"
  218. value: "10.18"
  219. - label: "v10.19"
  220. value: "10.19"
  221. - label: "v10.20"
  222. value: "10.20"
  223. - label: "v10.21"
  224. value: "10.21"
  225. - label: "v10.22"
  226. value: "10.22"
  227. - name: pg-11-versions
  228. show_if:
  229. is: "postgres11"
  230. variable: db_family
  231. contents:
  232. - type: select
  233. label: Database Version
  234. variable: db_engine_version
  235. settings:
  236. default: "11.17"
  237. options:
  238. - label: "v11.1"
  239. value: "11.1"
  240. - label: "v11.2"
  241. value: "11.2"
  242. - label: "v11.3"
  243. value: "11.3"
  244. - label: "v11.4"
  245. value: "11.4"
  246. - label: "v11.5"
  247. value: "11.5"
  248. - label: "v11.6"
  249. value: "11.6"
  250. - label: "v11.7"
  251. value: "11.7"
  252. - label: "v11.8"
  253. value: "11.8"
  254. - label: "v11.9"
  255. value: "11.9"
  256. - label: "v11.10"
  257. value: "11.10"
  258. - label: "v11.11"
  259. value: "11.11"
  260. - label: "v11.12"
  261. value: "11.12"
  262. - label: "v11.13"
  263. value: "11.13"
  264. - label: "v11.14"
  265. value: "11.14"
  266. - label: "v11.15"
  267. value: "11.15"
  268. - label: "v11.16"
  269. value: "11.16"
  270. - label: "v11.17"
  271. value: "11.17"
  272. - name: pg-12-versions
  273. show_if:
  274. is: "postgres12"
  275. variable: db_family
  276. contents:
  277. - type: select
  278. label: Database Version
  279. variable: db_engine_version
  280. settings:
  281. default: "12.12"
  282. options:
  283. - label: "v12.2"
  284. value: "12.2"
  285. - label: "v12.3"
  286. value: "12.3"
  287. - label: "v12.4"
  288. value: "12.4"
  289. - label: "v12.5"
  290. value: "12.5"
  291. - label: "v12.6"
  292. value: "12.6"
  293. - label: "v12.7"
  294. value: "12.7"
  295. - label: "v12.8"
  296. value: "12.8"
  297. - label: "v12.9"
  298. value: "12.9"
  299. - label: "v12.10"
  300. value: "12.10"
  301. - label: "v12.11"
  302. value: "12.11"
  303. - label: "v12.12"
  304. value: "12.12"
  305. - name: pg-13-versions
  306. show_if:
  307. is: "postgres13"
  308. variable: db_family
  309. contents:
  310. - type: select
  311. label: Database Version
  312. variable: db_engine_version
  313. settings:
  314. default: "13.8"
  315. options:
  316. - label: "v13.1"
  317. value: "13.1"
  318. - label: "v13.2"
  319. value: "13.2"
  320. - label: "v13.3"
  321. value: "13.3"
  322. - label: "v13.4"
  323. value: "13.4"
  324. - label: "v13.5"
  325. value: "13.5"
  326. - label: "v13.6"
  327. value: "13.6"
  328. - label: "v13.7"
  329. value: "13.7"
  330. - label: "v13.8"
  331. value: "13.8"
  332. - name: pg-14-versions
  333. show_if:
  334. is: "postgres14"
  335. variable: db_family
  336. contents:
  337. - type: select
  338. label: Database Version
  339. variable: db_engine_version
  340. settings:
  341. default: "14.5"
  342. options:
  343. - label: "v14.1"
  344. value: "14.1"
  345. - label: "v14.2"
  346. value: "14.2"
  347. - label: "v14.3"
  348. value: "14.3"
  349. - label: "v14.4"
  350. value: "14.4"
  351. - label: "v14.5"
  352. value: "14.5"
  353. - name: additional-settings
  354. contents:
  355. - type: heading
  356. label: Additional Settings
  357. - type: checkbox
  358. variable: db_deletion_protection
  359. label: Enable deletion protection for the database.
  360. settings:
  361. default: false
  362. - name: storage
  363. label: Storage
  364. sections:
  365. - name: storage
  366. contents:
  367. - type: heading
  368. label: Storage Settings
  369. - type: number-input
  370. label: Specify the amount of storage to allocate to this instance in gigabytes.
  371. variable: db_allocated_storage
  372. placeholder: "ex: 10"
  373. settings:
  374. default: 10
  375. - type: number-input
  376. label: Specify the maximum storage that this instance can scale to in gigabytes.
  377. variable: db_max_allocated_storage
  378. placeholder: "ex: 20"
  379. settings:
  380. default: 20
  381. - type: checkbox
  382. variable: db_storage_encrypted
  383. label: Enable storage encryption for the database.
  384. settings:
  385. default: false
  386. - name: advanced
  387. label: Advanced
  388. sections:
  389. - name: replicas
  390. contents:
  391. - type: heading
  392. label: Read Replicas
  393. - type: subtitle
  394. label: Specify the number of read replicas to run alongside your RDS instance.
  395. - type: number-input
  396. label: Replicas
  397. variable: db_replicas
  398. placeholder: "ex: 1"
  399. settings:
  400. default: 0`
  401. const ecrForm = `name: ECR
  402. hasSource: false
  403. includeHiddenFields: true
  404. tabs:
  405. - name: main
  406. label: Configuration
  407. sections:
  408. - name: section_one
  409. contents:
  410. - type: heading
  411. label: ECR Configuration
  412. - type: string-input
  413. label: ECR Name
  414. required: true
  415. placeholder: my-awesome-registry
  416. variable: ecr_name
  417. `
  418. const eksForm = `name: EKS
  419. hasSource: false
  420. includeHiddenFields: true
  421. tabs:
  422. - name: main
  423. label: Configuration
  424. sections:
  425. - name: section_one
  426. contents:
  427. - type: heading
  428. label: EKS Configuration
  429. - type: select
  430. label: ⚙️ AWS Machine Type
  431. variable: machine_type
  432. settings:
  433. default: t2.medium
  434. options:
  435. - label: t2.medium
  436. value: t2.medium
  437. - label: t2.large
  438. value: t2.large
  439. - label: t2.xlarge
  440. value: t2.xlarge
  441. - label: t2.2xlarge
  442. value: t2.2xlarge
  443. - label: t3.medium
  444. value: t3.medium
  445. - label: t3.large
  446. value: t3.large
  447. - label: t3.xlarge
  448. value: t3.xlarge
  449. - label: t3.2xlarge
  450. value: t3.2xlarge
  451. - label: c6i.large
  452. value: c6i.large
  453. - label: c6i.xlarge
  454. value: c6i.xlarge
  455. - label: c6i.2xlarge
  456. value: c6i.2xlarge
  457. - label: c6i.4xlarge
  458. value: c6i.4xlarge
  459. - label: m6i.large
  460. value: m6i.large
  461. - label: m6i.xlarge
  462. value: m6i.xlarge
  463. - label: m6i.2xlarge
  464. value: m6i.2xlarge
  465. - label: m6i.4xlarge
  466. value: m6i.4xlarge
  467. - label: r5.large
  468. value: r5.large
  469. - label: r5.xlarge
  470. value: r5.xlarge
  471. - type: string-input
  472. label: 👤 Issuer Email
  473. required: true
  474. placeholder: example@example.com
  475. variable: issuer_email
  476. - type: string-input
  477. label: EKS Cluster Name
  478. required: true
  479. placeholder: my-cluster
  480. variable: cluster_name
  481. - type: select
  482. label: EKS control plane version
  483. variable: cluster_version
  484. settings:
  485. default: "1.22"
  486. options:
  487. - label: "1.20"
  488. value: "1.20"
  489. - label: "1.21"
  490. value: "1.21"
  491. - label: "1.22"
  492. value: "1.22"
  493. - label: "1.23"
  494. value: "1.23"
  495. - label: "1.24"
  496. value: "1.24"
  497. - type: number-input
  498. label: Minimum number of EC2 instances to create in the application autoscaling group.
  499. variable: min_instances
  500. placeholder: "ex: 1"
  501. settings:
  502. default: 1
  503. - type: number-input
  504. label: Maximum number of EC2 instances to create in the application autoscaling group.
  505. variable: max_instances
  506. placeholder: "ex: 10"
  507. settings:
  508. default: 10
  509. - name: additional_nodegroup
  510. label: Additional Node Groups
  511. sections:
  512. - name: is_additional_enabled
  513. contents:
  514. - type: heading
  515. label: Additional Node Groups
  516. - type: checkbox
  517. variable: additional_nodegroup_enabled
  518. label: Enable an additional node group for this cluster.
  519. settings:
  520. default: false
  521. - name: additional_settings
  522. show_if: additional_nodegroup_enabled
  523. contents:
  524. - type: string-input
  525. label: Label for this node group.
  526. variable: additional_nodegroup_label
  527. placeholder: "ex: porter.run/workload-kind=job"
  528. settings:
  529. default: porter.run/workload-kind=database
  530. - type: string-input
  531. label: Taint for this node group.
  532. variable: additional_nodegroup_taint
  533. placeholder: "ex: porter.run/workload-kind=job:NoSchedule"
  534. settings:
  535. default: porter.run/workload-kind=database:NoSchedule
  536. - type: checkbox
  537. variable: additional_stateful_nodegroup_enabled
  538. label: Stateful Workload
  539. settings:
  540. default: false
  541. - type: select
  542. label: ⚙️ AWS System Machine Type
  543. variable: additional_nodegroup_machine_type
  544. settings:
  545. default: t2.medium
  546. options:
  547. - label: t2.medium
  548. value: t2.medium
  549. - label: t2.large
  550. value: t2.large
  551. - label: t2.xlarge
  552. value: t2.xlarge
  553. - label: t2.2xlarge
  554. value: t2.2xlarge
  555. - label: t3.medium
  556. value: t3.medium
  557. - label: t3.large
  558. value: t3.large
  559. - label: t3.xlarge
  560. value: t3.xlarge
  561. - label: t3.2xlarge
  562. value: t3.2xlarge
  563. - label: c6i.large
  564. value: c6i.large
  565. - label: c6i.xlarge
  566. value: c6i.xlarge
  567. - label: c6i.2xlarge
  568. value: c6i.2xlarge
  569. - label: c6i.4xlarge
  570. value: c6i.4xlarge
  571. - label: m6i.large
  572. value: m6i.large
  573. - label: m6i.xlarge
  574. value: m6i.xlarge
  575. - label: m6i.2xlarge
  576. value: m6i.2xlarge
  577. - label: m6i.4xlarge
  578. value: m6i.4xlarge
  579. - type: number-input
  580. label: Minimum number of EC2 instances to create in the application autoscaling group.
  581. variable: additional_nodegroup_min_instances
  582. placeholder: "ex: 1"
  583. settings:
  584. default: 1
  585. - type: number-input
  586. label: Maximum number of EC2 instances to create in the application autoscaling group.
  587. variable: additional_nodegroup_max_instances
  588. placeholder: "ex: 10"
  589. settings:
  590. default: 10
  591. - name: iam
  592. label: IAM
  593. sections:
  594. - name: toggle_aws_auth
  595. contents:
  596. - type: heading
  597. label: Configure IAM Access
  598. - type: checkbox
  599. variable: manage_aws_auth_configmap
  600. label: Allow Porter to manage AWS authentication for the cluster.
  601. settings:
  602. default: true
  603. - name: aws_auth_warning
  604. show_if:
  605. not: manage_aws_auth_configmap
  606. contents:
  607. - type: subtitle
  608. label: "WARNING - turning this value off will result in the aws-auth configmap getting removed from the cluster, and will take existing AWS nodes offline until the configmap is re-added with the node's IAM role ARN. Make sure you know what you are doing."
  609. - name: arns
  610. show_if: manage_aws_auth_configmap
  611. contents:
  612. - type: heading
  613. label: Users
  614. - type: subtitle
  615. label: "Add AWS users to the cluster. The left input should be a valid AWS user ARN, and the right side should be a group on the cluster. For example, arn:aws:iam::66666666666:user/user1: system:masters."
  616. - type: key-value-array
  617. variable: aws_auth_users
  618. settings:
  619. default: {}
  620. - type: heading
  621. label: Roles
  622. - type: subtitle
  623. label: "Add AWS roles to the cluster. The left input should be a valid AWS role ARN, and the right side should be a group on the cluster. For example, arn:aws:iam::66666666666:role/role1: system:masters."
  624. - type: key-value-array
  625. variable: aws_auth_roles
  626. settings:
  627. default: {}
  628. - name: advanced
  629. label: Advanced
  630. sections:
  631. - name: system_machine_type
  632. contents:
  633. - type: heading
  634. label: System Machine Type Settings
  635. - type: select
  636. label: ⚙️ AWS System Machine Type
  637. variable: system_machine_type
  638. settings:
  639. default: t2.medium
  640. options:
  641. - label: t2.medium
  642. value: t2.medium
  643. - label: t2.large
  644. value: t2.large
  645. - label: t2.xlarge
  646. value: t2.xlarge
  647. - label: t2.2xlarge
  648. value: t2.2xlarge
  649. - label: t3.medium
  650. value: t3.medium
  651. - label: t3.large
  652. value: t3.large
  653. - label: t3.xlarge
  654. value: t3.xlarge
  655. - label: t3.2xlarge
  656. value: t3.2xlarge
  657. - label: c6i.large
  658. value: c6i.large
  659. - label: c6i.xlarge
  660. value: c6i.xlarge
  661. - label: c6i.2xlarge
  662. value: c6i.2xlarge
  663. - label: c6i.4xlarge
  664. value: c6i.4xlarge
  665. - name: spot_instance_should_enable
  666. contents:
  667. - type: heading
  668. label: Spot Instance Settings
  669. - type: checkbox
  670. variable: spot_instances_enabled
  671. label: Enable spot instances for this cluster.
  672. settings:
  673. default: false
  674. - name: spot_instance_price
  675. show_if: spot_instances_enabled
  676. contents:
  677. - type: string-input
  678. label: Assign a bid price for the spot instance (optional).
  679. variable: spot_price
  680. placeholder: "ex: 0.05"
  681. - name: net_settings
  682. contents:
  683. - type: heading
  684. label: Networking Settings
  685. - type: string-input
  686. label: "Add a different CIDR range prefix (first two octets: for example 10.99 will create a VPC with CIDR range 10.99.0.0/16)."
  687. variable: cluster_vpc_cidr_octets
  688. placeholder: "ex: 10.99"
  689. settings:
  690. default: "10.99"
  691. - type: checkbox
  692. label: "Add additional private subnets to the cluster in each AZ."
  693. variable: additional_private_subnets
  694. settings:
  695. default: false
  696. - name: subnet_multiplicity
  697. show_if: additional_private_subnets
  698. contents:
  699. - type: number-input
  700. label: "Multiplicity of the subnet within each AZ."
  701. variable: additional_private_subnets_multiplicity
  702. settings:
  703. default: 3
  704. - name: net_settings_azs_toggle
  705. contents:
  706. - type: checkbox
  707. label: "Specify the AZs to provision this cluster in."
  708. variable: specify_azs
  709. settings:
  710. default: false
  711. - name: net_settings_azs
  712. show_if: specify_azs
  713. contents:
  714. - type: array-input
  715. variable: azs
  716. label: Availability Zones
  717. - name: nginx_settings
  718. contents:
  719. - type: heading
  720. label: NGINX Settings
  721. - type: checkbox
  722. variable: disable_nginx_load_balancer
  723. label: Disable NGINX load balancer and expose NGINX only on a cluster IP address.
  724. settings:
  725. default: false
  726. - name: prometheus_settings
  727. contents:
  728. - type: heading
  729. label: Prometheus Settings
  730. - type: checkbox
  731. variable: additional_prometheus_node_group
  732. label: Add an additional prometheus node group to ensure monitoring stability.
  733. settings:
  734. default: false
  735. - name: prometheus_machine_settings
  736. show_if: additional_prometheus_node_group
  737. contents:
  738. - type: select
  739. label: ⚙️ AWS Prometheus Machine Type
  740. variable: additional_prometheus_machine_type
  741. settings:
  742. default: t2.medium
  743. options:
  744. - label: t2.medium
  745. value: t2.medium
  746. - label: t2.large
  747. value: t2.large
  748. - label: t2.xlarge
  749. value: t2.xlarge
  750. - label: t3.medium
  751. value: t3.medium
  752. - label: t3.large
  753. value: t3.large
  754. - label: t3.xlarge
  755. value: t3.xlarge
  756. - name: kms_secret_encryption
  757. contents:
  758. - type: heading
  759. label: KMS Encryption
  760. - type: checkbox
  761. variable: is_kms_enabled
  762. label: Encrypt all Kubernetes secrets with AWS Key Management Service (KMS)
  763. settings:
  764. default: false
  765. `
  766. const gcrForm = `name: GCR
  767. hasSource: false
  768. includeHiddenFields: true
  769. tabs:
  770. - name: main
  771. label: Configuration
  772. sections:
  773. - name: section_one
  774. contents:
  775. - type: heading
  776. label: GCR Configuration
  777. - type: select
  778. label: 📍 GCP Region
  779. variable: gcp_region
  780. settings:
  781. default: us-central1
  782. options:
  783. - label: asia-east1
  784. value: asia-east1
  785. - label: asia-east2
  786. value: asia-east2
  787. - label: asia-northeast1
  788. value: asia-northeast1
  789. - label: asia-northeast2
  790. value: asia-northeast2
  791. - label: asia-northeast3
  792. value: asia-northeast3
  793. - label: asia-south1
  794. value: asia-south1
  795. - label: asia-south2
  796. value: asia-south2
  797. - label: asia-southeast1
  798. value: asia-southeast1
  799. - label: asia-southeast2
  800. value: asia-southeast2
  801. - label: australia-southeast1
  802. value: australia-southeast1
  803. - label: australia-southeast2
  804. value: australia-southeast2
  805. - label: europe-central2
  806. value: europe-central2
  807. - label: europe-north1
  808. value: europe-north1
  809. - label: europe-west1
  810. value: europe-west1
  811. - label: europe-west2
  812. value: europe-west2
  813. - label: europe-west3
  814. value: europe-west3
  815. - label: europe-west4
  816. value: europe-west4
  817. - label: europe-west6
  818. value: europe-west6
  819. - label: europe-west8
  820. value: europe-west8
  821. - label: europe-west9
  822. value: europe-west9
  823. - label: europe-southwest1
  824. value: europe-southwest1
  825. - label: northamerica-northeast1
  826. value: northamerica-northeast1
  827. - label: northamerica-northeast2
  828. value: northamerica-northeast2
  829. - label: southamerica-east1
  830. value: southamerica-east1
  831. - label: southamerica-west1
  832. value: southamerica-west1
  833. - label: us-central1
  834. value: us-central1
  835. - label: us-east1
  836. value: us-east1
  837. - label: us-east4
  838. value: us-east4
  839. - label: us-east5
  840. value: us-east5
  841. - label: us-south1
  842. value: us-south1
  843. - label: us-west1
  844. value: us-west1
  845. - label: us-west2
  846. value: us-west2
  847. - label: us-west3
  848. value: us-west3
  849. - label: us-west4
  850. value: us-west4
  851. `
  852. const garForm = `name: GAR
  853. hasSource: false
  854. includeHiddenFields: true
  855. tabs:
  856. - name: main
  857. label: Configuration
  858. sections:
  859. - name: section_one
  860. contents:
  861. - type: heading
  862. label: GAR Configuration
  863. - type: select
  864. label: 📍 GCP Region
  865. variable: gcp_region
  866. settings:
  867. default: us-central1
  868. options:
  869. - label: asia-east1
  870. value: asia-east1
  871. - label: asia-east2
  872. value: asia-east2
  873. - label: asia-northeast1
  874. value: asia-northeast1
  875. - label: asia-northeast2
  876. value: asia-northeast2
  877. - label: asia-northeast3
  878. value: asia-northeast3
  879. - label: asia-south1
  880. value: asia-south1
  881. - label: asia-south2
  882. value: asia-south2
  883. - label: asia-southeast1
  884. value: asia-southeast1
  885. - label: asia-southeast2
  886. value: asia-southeast2
  887. - label: australia-southeast1
  888. value: australia-southeast1
  889. - label: australia-southeast2
  890. value: australia-southeast2
  891. - label: europe-central2
  892. value: europe-central2
  893. - label: europe-north1
  894. value: europe-north1
  895. - label: europe-west1
  896. value: europe-west1
  897. - label: europe-west2
  898. value: europe-west2
  899. - label: europe-west3
  900. value: europe-west3
  901. - label: europe-west4
  902. value: europe-west4
  903. - label: europe-west6
  904. value: europe-west6
  905. - label: europe-west8
  906. value: europe-west8
  907. - label: europe-west9
  908. value: europe-west9
  909. - label: europe-southwest1
  910. value: europe-southwest1
  911. - label: northamerica-northeast1
  912. value: northamerica-northeast1
  913. - label: northamerica-northeast2
  914. value: northamerica-northeast2
  915. - label: southamerica-east1
  916. value: southamerica-east1
  917. - label: southamerica-west1
  918. value: southamerica-west1
  919. - label: us-central1
  920. value: us-central1
  921. - label: us-east1
  922. value: us-east1
  923. - label: us-east4
  924. value: us-east4
  925. - label: us-east5
  926. value: us-east5
  927. - label: us-south1
  928. value: us-south1
  929. - label: us-west1
  930. value: us-west1
  931. - label: us-west2
  932. value: us-west2
  933. - label: us-west3
  934. value: us-west3
  935. - label: us-west4
  936. value: us-west4
  937. - label: us (multi-region)
  938. value: us
  939. - label: europe (multi-region)
  940. value: europe
  941. - label: asia (multi-region)
  942. value: asia
  943. `
  944. const gkeForm = `name: GKE
  945. hasSource: false
  946. includeHiddenFields: true
  947. tabs:
  948. - name: main
  949. label: Configuration
  950. sections:
  951. - name: section_one
  952. contents:
  953. - type: heading
  954. label: GKE Configuration
  955. - type: select
  956. label: 📍 GCP Region
  957. variable: gcp_region
  958. settings:
  959. default: us-central1
  960. options:
  961. - label: asia-east1
  962. value: asia-east1
  963. - label: asia-east2
  964. value: asia-east2
  965. - label: asia-northeast1
  966. value: asia-northeast1
  967. - label: asia-northeast2
  968. value: asia-northeast2
  969. - label: asia-northeast3
  970. value: asia-northeast3
  971. - label: asia-south1
  972. value: asia-south1
  973. - label: asia-south2
  974. value: asia-south2
  975. - label: asia-southeast1
  976. value: asia-southeast1
  977. - label: asia-southeast2
  978. value: asia-southeast2
  979. - label: australia-southeast1
  980. value: australia-southeast1
  981. - label: australia-southeast2
  982. value: australia-southeast2
  983. - label: europe-central2
  984. value: europe-central2
  985. - label: europe-north1
  986. value: europe-north1
  987. - label: europe-west1
  988. value: europe-west1
  989. - label: europe-west2
  990. value: europe-west2
  991. - label: europe-west3
  992. value: europe-west3
  993. - label: europe-west4
  994. value: europe-west4
  995. - label: europe-west6
  996. value: europe-west6
  997. - label: europe-west8
  998. value: europe-west8
  999. - label: europe-west9
  1000. value: europe-west9
  1001. - label: europe-southwest1
  1002. value: europe-southwest1
  1003. - label: northamerica-northeast1
  1004. value: northamerica-northeast1
  1005. - label: northamerica-northeast2
  1006. value: northamerica-northeast2
  1007. - label: southamerica-east1
  1008. value: southamerica-east1
  1009. - label: southamerica-west1
  1010. value: southamerica-west1
  1011. - label: us-central1
  1012. value: us-central1
  1013. - label: us-east1
  1014. value: us-east1
  1015. - label: us-east4
  1016. value: us-east4
  1017. - label: us-east5
  1018. value: us-east5
  1019. - label: us-south1
  1020. value: us-south1
  1021. - label: us-west1
  1022. value: us-west1
  1023. - label: us-west2
  1024. value: us-west2
  1025. - label: us-west3
  1026. value: us-west3
  1027. - label: us-west4
  1028. value: us-west4
  1029. - type: string-input
  1030. label: 👤 Issuer Email
  1031. required: true
  1032. placeholder: example@example.com
  1033. variable: issuer_email
  1034. - type: string-input
  1035. label: GKE Cluster Name
  1036. required: true
  1037. placeholder: my-cluster
  1038. variable: cluster_name
  1039. `
  1040. const docrForm = `name: DOCR
  1041. hasSource: false
  1042. includeHiddenFields: true
  1043. tabs:
  1044. - name: main
  1045. label: Configuration
  1046. sections:
  1047. - name: section_one
  1048. contents:
  1049. - type: heading
  1050. label: DOCR Configuration
  1051. - type: select
  1052. label: DO Subscription Tier
  1053. variable: docr_subscription_tier
  1054. settings:
  1055. default: basic
  1056. options:
  1057. - label: Basic
  1058. value: basic
  1059. - label: Professional
  1060. value: professional
  1061. - type: string-input
  1062. label: DOCR Name
  1063. required: true
  1064. placeholder: my-awesome-registry
  1065. variable: docr_name
  1066. `
  1067. const doksForm = `name: DOKS
  1068. hasSource: false
  1069. includeHiddenFields: true
  1070. tabs:
  1071. - name: main
  1072. label: Configuration
  1073. sections:
  1074. - name: section_one
  1075. contents:
  1076. - type: heading
  1077. label: DOKS Configuration
  1078. - type: select
  1079. label: 📍 DO Region
  1080. variable: do_region
  1081. settings:
  1082. default: nyc1
  1083. options:
  1084. - label: Amsterdam 3
  1085. value: ams3
  1086. - label: Bangalore 1
  1087. value: blr1
  1088. - label: Frankfurt 1
  1089. value: fra1
  1090. - label: London 1
  1091. value: lon1
  1092. - label: New York 1
  1093. value: nyc1
  1094. - label: New York 3
  1095. value: nyc3
  1096. - label: San Francisco 2
  1097. value: sfo2
  1098. - label: San Francisco 3
  1099. value: sfo3
  1100. - label: Singapore 1
  1101. value: sgp1
  1102. - label: Toronto 1
  1103. value: tor1
  1104. - type: string-input
  1105. label: 👤 Issuer Email
  1106. required: true
  1107. placeholder: example@example.com
  1108. variable: issuer_email
  1109. - type: string-input
  1110. label: DOKS Cluster Name
  1111. required: true
  1112. placeholder: my-cluster
  1113. variable: cluster_name
  1114. `
  1115. const acrForm = `name: ACR
  1116. hasSource: false
  1117. includeHiddenFields: true
  1118. isClusterScoped: false
  1119. tabs:
  1120. - name: main
  1121. label: Configuration
  1122. sections:
  1123. - name: section_one
  1124. contents:
  1125. - type: heading
  1126. label: ACR Configuration
  1127. - type: select
  1128. label: 📍 Azure Region
  1129. variable: aks_region
  1130. settings:
  1131. default: East US
  1132. options:
  1133. - label: East US
  1134. value: East US
  1135. - label: East US 2
  1136. value: East US 2
  1137. - label: West US 2
  1138. value: West US 2
  1139. - label: West US 3
  1140. value: West US 3
  1141. - label: Norway East
  1142. value: Norway East
  1143. - type: string-input
  1144. label: ACR Name
  1145. required: true
  1146. placeholder: my-registry
  1147. variable: acr_name
  1148. `
  1149. const aksForm = `name: AKS
  1150. hasSource: false
  1151. includeHiddenFields: true
  1152. isClusterScoped: false
  1153. tabs:
  1154. - name: main
  1155. label: Configuration
  1156. sections:
  1157. - name: section_one
  1158. contents:
  1159. - type: heading
  1160. label: AKS Configuration
  1161. - type: select
  1162. label: 📍 Azure Region
  1163. variable: aks_region
  1164. settings:
  1165. default: East US
  1166. options:
  1167. - label: East US
  1168. value: East US
  1169. - label: East US 2
  1170. value: East US 2
  1171. - label: West US 2
  1172. value: West US 2
  1173. - label: West US 3
  1174. value: West US 3
  1175. - label: Norway East
  1176. value: Norway East
  1177. - type: select
  1178. label: ⚙️ Application Machine Type
  1179. variable: app_machine_type
  1180. settings:
  1181. default: Standard_A2_v2
  1182. options:
  1183. - label: Standard A2
  1184. value: Standard_A2_v2
  1185. - label: Standard A4
  1186. value: Standard_A4_v2
  1187. - label: Standard D2
  1188. value: Standard_D2_v3
  1189. - type: string-input
  1190. label: 👤 Issuer Email
  1191. required: true
  1192. placeholder: example@example.com
  1193. variable: issuer_email
  1194. - type: string-input
  1195. label: AKS Cluster Name
  1196. required: true
  1197. placeholder: my-cluster
  1198. variable: cluster_name
  1199. `