forms.go 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079
  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. - name: pg-9-versions
  116. show_if:
  117. is: "postgres9"
  118. variable: db_family
  119. contents:
  120. - type: select
  121. label: Database Version
  122. variable: db_engine_version
  123. settings:
  124. default: "9.6.23"
  125. options:
  126. - label: "v9.6.1"
  127. value: "9.6.1"
  128. - label: "v9.6.2"
  129. value: "9.6.2"
  130. - label: "v9.6.3"
  131. value: "9.6.3"
  132. - label: "v9.6.4"
  133. value: "9.6.4"
  134. - label: "v9.6.5"
  135. value: "9.6.5"
  136. - label: "v9.6.6"
  137. value: "9.6.6"
  138. - label: "v9.6.7"
  139. value: "9.6.7"
  140. - label: "v9.6.8"
  141. value: "9.6.8"
  142. - label: "v9.6.10"
  143. value: "9.6.10"
  144. - label: "v9.6.11"
  145. value: "9.6.11"
  146. - label: "v9.6.12"
  147. value: "9.6.12"
  148. - label: "v9.6.13"
  149. value: "9.6.13"
  150. - label: "v9.6.14"
  151. value: "9.6.14"
  152. - label: "v9.6.15"
  153. value: "9.6.15"
  154. - label: "v9.6.16"
  155. value: "9.6.16"
  156. - label: "v9.6.17"
  157. value: "9.6.17"
  158. - label: "v9.6.18"
  159. value: "9.6.18"
  160. - label: "v9.6.19"
  161. value: "9.6.19"
  162. - label: "v9.6.20"
  163. value: "9.6.20"
  164. - label: "v9.6.21"
  165. value: "9.6.21"
  166. - label: "v9.6.22"
  167. value: "9.6.22"
  168. - label: "v9.6.23"
  169. value: "9.6.23"
  170. - name: pg-10-versions
  171. show_if:
  172. is: "postgres10"
  173. variable: db_family
  174. contents:
  175. - type: select
  176. label: Database Version
  177. variable: db_engine_version
  178. settings:
  179. default: "10.18"
  180. options:
  181. - label: "v10.1"
  182. value: "10.1"
  183. - label: "v10.2"
  184. value: "10.2"
  185. - label: "v10.3"
  186. value: "10.3"
  187. - label: "v10.4"
  188. value: "10.4"
  189. - label: "v10.5"
  190. value: "10.5"
  191. - label: "v10.6"
  192. value: "10.6"
  193. - label: "v10.7"
  194. value: "10.7"
  195. - label: "v10.8"
  196. value: "10.8"
  197. - label: "v10.9"
  198. value: "10.9"
  199. - label: "v10.10"
  200. value: "10.10"
  201. - label: "v10.11"
  202. value: "10.11"
  203. - label: "v10.12"
  204. value: "10.12"
  205. - label: "v10.13"
  206. value: "10.13"
  207. - label: "v10.14"
  208. value: "10.14"
  209. - label: "v10.15"
  210. value: "10.15"
  211. - label: "v10.16"
  212. value: "10.16"
  213. - label: "v10.17"
  214. value: "10.17"
  215. - label: "v10.18"
  216. value: "10.18"
  217. - name: pg-11-versions
  218. show_if:
  219. is: "postgres11"
  220. variable: db_family
  221. contents:
  222. - type: select
  223. label: Database Version
  224. variable: db_engine_version
  225. settings:
  226. default: "11.13"
  227. options:
  228. - label: "v11.1"
  229. value: "11.1"
  230. - label: "v11.2"
  231. value: "11.2"
  232. - label: "v11.3"
  233. value: "11.3"
  234. - label: "v11.4"
  235. value: "11.4"
  236. - label: "v11.5"
  237. value: "11.5"
  238. - label: "v11.6"
  239. value: "11.6"
  240. - label: "v11.7"
  241. value: "11.7"
  242. - label: "v11.8"
  243. value: "11.8"
  244. - label: "v11.9"
  245. value: "11.9"
  246. - label: "v11.10"
  247. value: "11.10"
  248. - label: "v11.11"
  249. value: "11.11"
  250. - label: "v11.12"
  251. value: "11.12"
  252. - label: "v11.13"
  253. value: "11.13"
  254. - name: pg-12-versions
  255. show_if:
  256. is: "postgres12"
  257. variable: db_family
  258. contents:
  259. - type: select
  260. label: Database Version
  261. variable: db_engine_version
  262. settings:
  263. default: "12.8"
  264. options:
  265. - label: "v12.2"
  266. value: "12.2"
  267. - label: "v12.3"
  268. value: "12.3"
  269. - label: "v12.4"
  270. value: "12.4"
  271. - label: "v12.5"
  272. value: "12.5"
  273. - label: "v12.6"
  274. value: "12.6"
  275. - label: "v12.7"
  276. value: "12.7"
  277. - label: "v12.8"
  278. value: "12.8"
  279. - label: "v12.10"
  280. value: "12.10"
  281. - name: pg-13-versions
  282. show_if:
  283. is: "postgres13"
  284. variable: db_family
  285. contents:
  286. - type: select
  287. label: Database Version
  288. variable: db_engine_version
  289. settings:
  290. default: "13.4"
  291. options:
  292. - label: "v13.1"
  293. value: "13.1"
  294. - label: "v13.2"
  295. value: "13.2"
  296. - label: "v13.3"
  297. value: "13.3"
  298. - label: "v13.4"
  299. value: "13.4"
  300. - label: "v13.6"
  301. value: "13.6"
  302. - name: additional-settings
  303. contents:
  304. - type: heading
  305. label: Additional Settings
  306. - type: checkbox
  307. variable: db_deletion_protection
  308. label: Enable deletion protection for the database.
  309. settings:
  310. default: false
  311. - name: storage
  312. label: Storage
  313. sections:
  314. - name: storage
  315. contents:
  316. - type: heading
  317. label: Storage Settings
  318. - type: number-input
  319. label: Specify the amount of storage to allocate to this instance in gigabytes.
  320. variable: db_allocated_storage
  321. placeholder: "ex: 10"
  322. settings:
  323. default: 10
  324. - type: number-input
  325. label: Specify the maximum storage that this instance can scale to in gigabytes.
  326. variable: db_max_allocated_storage
  327. placeholder: "ex: 20"
  328. settings:
  329. default: 20
  330. - type: checkbox
  331. variable: db_storage_encrypted
  332. label: Enable storage encryption for the database.
  333. settings:
  334. default: false
  335. - name: advanced
  336. label: Advanced
  337. sections:
  338. - name: replicas
  339. contents:
  340. - type: heading
  341. label: Read Replicas
  342. - type: subtitle
  343. label: Specify the number of read replicas to run alongside your RDS instance.
  344. - type: number-input
  345. label: Replicas
  346. variable: db_replicas
  347. placeholder: "ex: 1"
  348. settings:
  349. default: 0`
  350. const ecrForm = `name: ECR
  351. hasSource: false
  352. includeHiddenFields: true
  353. tabs:
  354. - name: main
  355. label: Configuration
  356. sections:
  357. - name: section_one
  358. contents:
  359. - type: heading
  360. label: ECR Configuration
  361. - type: string-input
  362. label: ECR Name
  363. required: true
  364. placeholder: my-awesome-registry
  365. variable: ecr_name
  366. `
  367. const eksForm = `name: EKS
  368. hasSource: false
  369. includeHiddenFields: true
  370. tabs:
  371. - name: main
  372. label: Configuration
  373. sections:
  374. - name: section_one
  375. contents:
  376. - type: heading
  377. label: EKS Configuration
  378. - type: select
  379. label: ⚙️ AWS Machine Type
  380. variable: machine_type
  381. settings:
  382. default: t2.medium
  383. options:
  384. - label: t2.medium
  385. value: t2.medium
  386. - label: t2.large
  387. value: t2.large
  388. - label: t2.xlarge
  389. value: t2.xlarge
  390. - label: t2.2xlarge
  391. value: t2.2xlarge
  392. - label: t3.medium
  393. value: t3.medium
  394. - label: t3.large
  395. value: t3.large
  396. - label: t3.xlarge
  397. value: t3.xlarge
  398. - label: t3.2xlarge
  399. value: t3.2xlarge
  400. - label: c6i.large
  401. value: c6i.large
  402. - label: c6i.xlarge
  403. value: c6i.xlarge
  404. - label: c6i.2xlarge
  405. value: c6i.2xlarge
  406. - type: string-input
  407. label: 👤 Issuer Email
  408. required: true
  409. placeholder: example@example.com
  410. variable: issuer_email
  411. - type: string-input
  412. label: EKS Cluster Name
  413. required: true
  414. placeholder: my-cluster
  415. variable: cluster_name
  416. - type: select
  417. label: EKS control plane version
  418. variable: cluster_version
  419. settings:
  420. default: "1.20"
  421. options:
  422. - label: "1.20"
  423. value: "1.20"
  424. - label: "1.21"
  425. value: "1.21"
  426. - label: "1.22"
  427. value: "1.22"
  428. - type: number-input
  429. label: Minimum number of EC2 instances to create in the application autoscaling group.
  430. variable: min_instances
  431. placeholder: "ex: 1"
  432. settings:
  433. default: 1
  434. - type: number-input
  435. label: Maximum number of EC2 instances to create in the application autoscaling group.
  436. variable: max_instances
  437. placeholder: "ex: 10"
  438. settings:
  439. default: 10
  440. - name: additional_nodegroup
  441. label: Additional Node Groups
  442. sections:
  443. - name: is_additional_enabled
  444. contents:
  445. - type: heading
  446. label: Additional Node Groups
  447. - type: checkbox
  448. variable: additional_nodegroup_enabled
  449. label: Enable an additional node group for this cluster.
  450. settings:
  451. default: false
  452. - name: additional_settings
  453. show_if: additional_nodegroup_enabled
  454. contents:
  455. - type: string-input
  456. label: Label for this node group.
  457. variable: additional_nodegroup_label
  458. placeholder: "ex: porter.run/workload-kind=job"
  459. settings:
  460. default: porter.run/workload-kind=database
  461. - type: string-input
  462. label: Taint for this node group.
  463. variable: additional_nodegroup_taint
  464. placeholder: "ex: porter.run/workload-kind=job:NoSchedule"
  465. settings:
  466. default: porter.run/workload-kind=database:NoSchedule
  467. - type: checkbox
  468. variable: additional_stateful_nodegroup_enabled
  469. label: Stateful Workload
  470. settings:
  471. default: false
  472. - type: select
  473. label: ⚙️ AWS System Machine Type
  474. variable: additional_nodegroup_machine_type
  475. settings:
  476. default: t2.medium
  477. options:
  478. - label: t2.medium
  479. value: t2.medium
  480. - label: t2.large
  481. value: t2.large
  482. - label: t2.xlarge
  483. value: t2.xlarge
  484. - label: t2.2xlarge
  485. value: t2.2xlarge
  486. - label: t3.medium
  487. value: t3.medium
  488. - label: t3.large
  489. value: t3.large
  490. - label: t3.xlarge
  491. value: t3.xlarge
  492. - label: t3.2xlarge
  493. value: t3.2xlarge
  494. - label: c6i.2xlarge
  495. value: c6i.2xlarge
  496. - type: number-input
  497. label: Minimum number of EC2 instances to create in the application autoscaling group.
  498. variable: additional_nodegroup_min_instances
  499. placeholder: "ex: 1"
  500. settings:
  501. default: 1
  502. - type: number-input
  503. label: Maximum number of EC2 instances to create in the application autoscaling group.
  504. variable: additional_nodegroup_max_instances
  505. placeholder: "ex: 10"
  506. settings:
  507. default: 10
  508. - name: iam
  509. label: IAM
  510. sections:
  511. - name: toggle_aws_auth
  512. contents:
  513. - type: heading
  514. label: Configure IAM Access
  515. - type: checkbox
  516. variable: manage_aws_auth_configmap
  517. label: Allow Porter to manage AWS authentication for the cluster.
  518. settings:
  519. default: true
  520. - name: aws_auth_warning
  521. show_if:
  522. not: manage_aws_auth_configmap
  523. contents:
  524. - type: subtitle
  525. 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."
  526. - name: arns
  527. show_if: manage_aws_auth_configmap
  528. contents:
  529. - type: heading
  530. label: Users
  531. - type: subtitle
  532. 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."
  533. - type: key-value-array
  534. variable: aws_auth_users
  535. settings:
  536. default: {}
  537. - type: heading
  538. label: Roles
  539. - type: subtitle
  540. 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."
  541. - type: key-value-array
  542. variable: aws_auth_roles
  543. settings:
  544. default: {}
  545. - name: advanced
  546. label: Advanced
  547. sections:
  548. - name: system_machine_type
  549. contents:
  550. - type: heading
  551. label: System Machine Type Settings
  552. - type: select
  553. label: ⚙️ AWS System Machine Type
  554. variable: system_machine_type
  555. settings:
  556. default: t2.medium
  557. options:
  558. - label: t2.medium
  559. value: t2.medium
  560. - label: t2.large
  561. value: t2.large
  562. - label: t2.xlarge
  563. value: t2.xlarge
  564. - label: t2.2xlarge
  565. value: t2.2xlarge
  566. - label: t3.medium
  567. value: t3.medium
  568. - label: t3.large
  569. value: t3.large
  570. - label: t3.xlarge
  571. value: t3.xlarge
  572. - label: t3.2xlarge
  573. value: t3.2xlarge
  574. - label: c6i.2xlarge
  575. value: c6i.2xlarge
  576. - name: spot_instance_should_enable
  577. contents:
  578. - type: heading
  579. label: Spot Instance Settings
  580. - type: checkbox
  581. variable: spot_instances_enabled
  582. label: Enable spot instances for this cluster.
  583. settings:
  584. default: false
  585. - name: spot_instance_price
  586. show_if: spot_instances_enabled
  587. contents:
  588. - type: string-input
  589. label: Assign a bid price for the spot instance (optional).
  590. variable: spot_price
  591. placeholder: "ex: 0.05"
  592. - name: net_settings
  593. contents:
  594. - type: heading
  595. label: Networking Settings
  596. - type: string-input
  597. 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)."
  598. variable: cluster_vpc_cidr_octets
  599. placeholder: "ex: 10.99"
  600. settings:
  601. default: "10.99"
  602. - type: checkbox
  603. label: "Add additional private subnets to the cluster in each AZ."
  604. variable: additional_private_subnets
  605. settings:
  606. default: false
  607. - name: subnet_multiplicity
  608. show_if: additional_private_subnets
  609. contents:
  610. - type: number-input
  611. label: "Multiplicity of the subnet within each AZ."
  612. variable: additional_private_subnets_multiplicity
  613. settings:
  614. default: 3
  615. - name: nginx_settings
  616. contents:
  617. - type: heading
  618. label: NGINX Settings
  619. - type: checkbox
  620. variable: disable_nginx_load_balancer
  621. label: Disable NGINX load balancer and expose NGINX only on a cluster IP address.
  622. settings:
  623. default: false
  624. - name: prometheus_settings
  625. contents:
  626. - type: heading
  627. label: Prometheus Settings
  628. - type: checkbox
  629. variable: additional_prometheus_node_group
  630. label: Add an additional prometheus node group to ensure monitoring stability.
  631. settings:
  632. default: false
  633. `
  634. const gcrForm = `name: GCR
  635. hasSource: false
  636. includeHiddenFields: true
  637. tabs:
  638. - name: main
  639. label: Configuration
  640. sections:
  641. - name: section_one
  642. contents:
  643. - type: heading
  644. label: GCR Configuration
  645. - type: select
  646. label: 📍 GCP Region
  647. variable: gcp_region
  648. settings:
  649. default: us-central1
  650. options:
  651. - label: asia-east1
  652. value: asia-east1
  653. - label: asia-east2
  654. value: asia-east2
  655. - label: asia-northeast1
  656. value: asia-northeast1
  657. - label: asia-northeast2
  658. value: asia-northeast2
  659. - label: asia-northeast3
  660. value: asia-northeast3
  661. - label: asia-south1
  662. value: asia-south1
  663. - label: asia-south2
  664. value: asia-south2
  665. - label: asia-southeast1
  666. value: asia-southeast1
  667. - label: asia-southeast2
  668. value: asia-southeast2
  669. - label: australia-southeast1
  670. value: australia-southeast1
  671. - label: australia-southeast2
  672. value: australia-southeast2
  673. - label: europe-central2
  674. value: europe-central2
  675. - label: europe-north1
  676. value: europe-north1
  677. - label: europe-west1
  678. value: europe-west1
  679. - label: europe-west2
  680. value: europe-west2
  681. - label: europe-west3
  682. value: europe-west3
  683. - label: europe-west4
  684. value: europe-west4
  685. - label: europe-west6
  686. value: europe-west6
  687. - label: europe-west8
  688. value: europe-west8
  689. - label: europe-west9
  690. value: europe-west9
  691. - label: europe-southwest1
  692. value: europe-southwest1
  693. - label: northamerica-northeast1
  694. value: northamerica-northeast1
  695. - label: northamerica-northeast2
  696. value: northamerica-northeast2
  697. - label: southamerica-east1
  698. value: southamerica-east1
  699. - label: southamerica-west1
  700. value: southamerica-west1
  701. - label: us-central1
  702. value: us-central1
  703. - label: us-east1
  704. value: us-east1
  705. - label: us-east4
  706. value: us-east4
  707. - label: us-east5
  708. value: us-east5
  709. - label: us-south1
  710. value: us-south1
  711. - label: us-west1
  712. value: us-west1
  713. - label: us-west2
  714. value: us-west2
  715. - label: us-west3
  716. value: us-west3
  717. - label: us-west4
  718. value: us-west4
  719. `
  720. const garForm = `name: GAR
  721. hasSource: false
  722. includeHiddenFields: true
  723. tabs:
  724. - name: main
  725. label: Configuration
  726. sections:
  727. - name: section_one
  728. contents:
  729. - type: heading
  730. label: GAR Configuration
  731. - type: select
  732. label: 📍 GCP Region
  733. variable: gcp_region
  734. settings:
  735. default: us-central1
  736. options:
  737. - label: asia-east1
  738. value: asia-east1
  739. - label: asia-east2
  740. value: asia-east2
  741. - label: asia-northeast1
  742. value: asia-northeast1
  743. - label: asia-northeast2
  744. value: asia-northeast2
  745. - label: asia-northeast3
  746. value: asia-northeast3
  747. - label: asia-south1
  748. value: asia-south1
  749. - label: asia-south2
  750. value: asia-south2
  751. - label: asia-southeast1
  752. value: asia-southeast1
  753. - label: asia-southeast2
  754. value: asia-southeast2
  755. - label: australia-southeast1
  756. value: australia-southeast1
  757. - label: australia-southeast2
  758. value: australia-southeast2
  759. - label: europe-central2
  760. value: europe-central2
  761. - label: europe-north1
  762. value: europe-north1
  763. - label: europe-west1
  764. value: europe-west1
  765. - label: europe-west2
  766. value: europe-west2
  767. - label: europe-west3
  768. value: europe-west3
  769. - label: europe-west4
  770. value: europe-west4
  771. - label: europe-west6
  772. value: europe-west6
  773. - label: europe-west8
  774. value: europe-west8
  775. - label: europe-west9
  776. value: europe-west9
  777. - label: europe-southwest1
  778. value: europe-southwest1
  779. - label: northamerica-northeast1
  780. value: northamerica-northeast1
  781. - label: northamerica-northeast2
  782. value: northamerica-northeast2
  783. - label: southamerica-east1
  784. value: southamerica-east1
  785. - label: southamerica-west1
  786. value: southamerica-west1
  787. - label: us-central1
  788. value: us-central1
  789. - label: us-east1
  790. value: us-east1
  791. - label: us-east4
  792. value: us-east4
  793. - label: us-east5
  794. value: us-east5
  795. - label: us-south1
  796. value: us-south1
  797. - label: us-west1
  798. value: us-west1
  799. - label: us-west2
  800. value: us-west2
  801. - label: us-west3
  802. value: us-west3
  803. - label: us-west4
  804. value: us-west4
  805. - label: us (multi-region)
  806. value: us
  807. - label: europe (multi-region)
  808. value: europe
  809. - label: asia (multi-region)
  810. value: asia
  811. `
  812. const gkeForm = `name: GKE
  813. hasSource: false
  814. includeHiddenFields: true
  815. tabs:
  816. - name: main
  817. label: Configuration
  818. sections:
  819. - name: section_one
  820. contents:
  821. - type: heading
  822. label: GKE Configuration
  823. - type: select
  824. label: 📍 GCP Region
  825. variable: gcp_region
  826. settings:
  827. default: us-central1
  828. options:
  829. - label: asia-east1
  830. value: asia-east1
  831. - label: asia-east2
  832. value: asia-east2
  833. - label: asia-northeast1
  834. value: asia-northeast1
  835. - label: asia-northeast2
  836. value: asia-northeast2
  837. - label: asia-northeast3
  838. value: asia-northeast3
  839. - label: asia-south1
  840. value: asia-south1
  841. - label: asia-south2
  842. value: asia-south2
  843. - label: asia-southeast1
  844. value: asia-southeast1
  845. - label: asia-southeast2
  846. value: asia-southeast2
  847. - label: australia-southeast1
  848. value: australia-southeast1
  849. - label: australia-southeast2
  850. value: australia-southeast2
  851. - label: europe-central2
  852. value: europe-central2
  853. - label: europe-north1
  854. value: europe-north1
  855. - label: europe-west1
  856. value: europe-west1
  857. - label: europe-west2
  858. value: europe-west2
  859. - label: europe-west3
  860. value: europe-west3
  861. - label: europe-west4
  862. value: europe-west4
  863. - label: europe-west6
  864. value: europe-west6
  865. - label: europe-west8
  866. value: europe-west8
  867. - label: europe-west9
  868. value: europe-west9
  869. - label: europe-southwest1
  870. value: europe-southwest1
  871. - label: northamerica-northeast1
  872. value: northamerica-northeast1
  873. - label: northamerica-northeast2
  874. value: northamerica-northeast2
  875. - label: southamerica-east1
  876. value: southamerica-east1
  877. - label: southamerica-west1
  878. value: southamerica-west1
  879. - label: us-central1
  880. value: us-central1
  881. - label: us-east1
  882. value: us-east1
  883. - label: us-east4
  884. value: us-east4
  885. - label: us-east5
  886. value: us-east5
  887. - label: us-south1
  888. value: us-south1
  889. - label: us-west1
  890. value: us-west1
  891. - label: us-west2
  892. value: us-west2
  893. - label: us-west3
  894. value: us-west3
  895. - label: us-west4
  896. value: us-west4
  897. - type: string-input
  898. label: 👤 Issuer Email
  899. required: true
  900. placeholder: example@example.com
  901. variable: issuer_email
  902. - type: string-input
  903. label: GKE Cluster Name
  904. required: true
  905. placeholder: my-cluster
  906. variable: cluster_name
  907. `
  908. const docrForm = `name: DOCR
  909. hasSource: false
  910. includeHiddenFields: true
  911. tabs:
  912. - name: main
  913. label: Configuration
  914. sections:
  915. - name: section_one
  916. contents:
  917. - type: heading
  918. label: DOCR Configuration
  919. - type: select
  920. label: DO Subscription Tier
  921. variable: docr_subscription_tier
  922. settings:
  923. default: basic
  924. options:
  925. - label: Basic
  926. value: basic
  927. - label: Professional
  928. value: professional
  929. - type: string-input
  930. label: DOCR Name
  931. required: true
  932. placeholder: my-awesome-registry
  933. variable: docr_name
  934. `
  935. const doksForm = `name: DOKS
  936. hasSource: false
  937. includeHiddenFields: true
  938. tabs:
  939. - name: main
  940. label: Configuration
  941. sections:
  942. - name: section_one
  943. contents:
  944. - type: heading
  945. label: DOKS Configuration
  946. - type: select
  947. label: 📍 DO Region
  948. variable: do_region
  949. settings:
  950. default: nyc1
  951. options:
  952. - label: Amsterdam 3
  953. value: ams3
  954. - label: Bangalore 1
  955. value: blr1
  956. - label: Frankfurt 1
  957. value: fra1
  958. - label: London 1
  959. value: lon1
  960. - label: New York 1
  961. value: nyc1
  962. - label: New York 3
  963. value: nyc3
  964. - label: San Francisco 2
  965. value: sfo2
  966. - label: San Francisco 3
  967. value: sfo3
  968. - label: Singapore 1
  969. value: sgp1
  970. - label: Toronto 1
  971. value: tor1
  972. - type: string-input
  973. label: 👤 Issuer Email
  974. required: true
  975. placeholder: example@example.com
  976. variable: issuer_email
  977. - type: string-input
  978. label: DOKS Cluster Name
  979. required: true
  980. placeholder: my-cluster
  981. variable: cluster_name
  982. `
  983. const acrForm = `name: ACR
  984. hasSource: false
  985. includeHiddenFields: true
  986. isClusterScoped: false
  987. tabs:
  988. - name: main
  989. label: Configuration
  990. sections:
  991. - name: section_one
  992. contents:
  993. - type: heading
  994. label: ACR Configuration
  995. - type: select
  996. label: 📍 Azure Region
  997. variable: aks_region
  998. settings:
  999. default: East US
  1000. options:
  1001. - label: East US
  1002. value: East US
  1003. - label: East US 2
  1004. value: East US 2
  1005. - label: West US 2
  1006. value: West US 2
  1007. - label: West US 3
  1008. value: West US 3
  1009. - label: Norway East
  1010. value: Norway East
  1011. - type: string-input
  1012. label: ACR Name
  1013. required: true
  1014. placeholder: my-registry
  1015. variable: acr_name
  1016. `
  1017. const aksForm = `name: AKS
  1018. hasSource: false
  1019. includeHiddenFields: true
  1020. isClusterScoped: false
  1021. tabs:
  1022. - name: main
  1023. label: Configuration
  1024. sections:
  1025. - name: section_one
  1026. contents:
  1027. - type: heading
  1028. label: AKS Configuration
  1029. - type: select
  1030. label: 📍 Azure Region
  1031. variable: aks_region
  1032. settings:
  1033. default: East US
  1034. options:
  1035. - label: East US
  1036. value: East US
  1037. - label: East US 2
  1038. value: East US 2
  1039. - label: West US 2
  1040. value: West US 2
  1041. - label: West US 3
  1042. value: West US 3
  1043. - label: Norway East
  1044. value: Norway East
  1045. - type: select
  1046. label: ⚙️ Application Machine Type
  1047. variable: app_machine_type
  1048. settings:
  1049. default: Standard_A2_v2
  1050. options:
  1051. - label: Standard A2
  1052. value: Standard_A2_v2
  1053. - label: Standard A4
  1054. value: Standard_A4_v2
  1055. - label: Standard D2
  1056. value: Standard_D2_v3
  1057. - type: string-input
  1058. label: 👤 Issuer Email
  1059. required: true
  1060. placeholder: example@example.com
  1061. variable: issuer_email
  1062. - type: string-input
  1063. label: AKS Cluster Name
  1064. required: true
  1065. placeholder: my-cluster
  1066. variable: cluster_name
  1067. `