forms.go 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108
  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. - label: r5.large
  407. value: r5.large
  408. - value: r5.xlarge
  409. value: r5.xlarge
  410. - type: string-input
  411. label: 👤 Issuer Email
  412. required: true
  413. placeholder: example@example.com
  414. variable: issuer_email
  415. - type: string-input
  416. label: EKS Cluster Name
  417. required: true
  418. placeholder: my-cluster
  419. variable: cluster_name
  420. - type: select
  421. label: EKS control plane version
  422. variable: cluster_version
  423. settings:
  424. default: "1.20"
  425. options:
  426. - label: "1.20"
  427. value: "1.20"
  428. - label: "1.21"
  429. value: "1.21"
  430. - label: "1.22"
  431. value: "1.22"
  432. - type: number-input
  433. label: Minimum number of EC2 instances to create in the application autoscaling group.
  434. variable: min_instances
  435. placeholder: "ex: 1"
  436. settings:
  437. default: 1
  438. - type: number-input
  439. label: Maximum number of EC2 instances to create in the application autoscaling group.
  440. variable: max_instances
  441. placeholder: "ex: 10"
  442. settings:
  443. default: 10
  444. - name: additional_nodegroup
  445. label: Additional Node Groups
  446. sections:
  447. - name: is_additional_enabled
  448. contents:
  449. - type: heading
  450. label: Additional Node Groups
  451. - type: checkbox
  452. variable: additional_nodegroup_enabled
  453. label: Enable an additional node group for this cluster.
  454. settings:
  455. default: false
  456. - name: additional_settings
  457. show_if: additional_nodegroup_enabled
  458. contents:
  459. - type: string-input
  460. label: Label for this node group.
  461. variable: additional_nodegroup_label
  462. placeholder: "ex: porter.run/workload-kind=job"
  463. settings:
  464. default: porter.run/workload-kind=database
  465. - type: string-input
  466. label: Taint for this node group.
  467. variable: additional_nodegroup_taint
  468. placeholder: "ex: porter.run/workload-kind=job:NoSchedule"
  469. settings:
  470. default: porter.run/workload-kind=database:NoSchedule
  471. - type: checkbox
  472. variable: additional_stateful_nodegroup_enabled
  473. label: Stateful Workload
  474. settings:
  475. default: false
  476. - type: select
  477. label: ⚙️ AWS System Machine Type
  478. variable: additional_nodegroup_machine_type
  479. settings:
  480. default: t2.medium
  481. options:
  482. - label: t2.medium
  483. value: t2.medium
  484. - label: t2.large
  485. value: t2.large
  486. - label: t2.xlarge
  487. value: t2.xlarge
  488. - label: t2.2xlarge
  489. value: t2.2xlarge
  490. - label: t3.medium
  491. value: t3.medium
  492. - label: t3.large
  493. value: t3.large
  494. - label: t3.xlarge
  495. value: t3.xlarge
  496. - label: t3.2xlarge
  497. value: t3.2xlarge
  498. - label: c6i.large
  499. value: c6i.large
  500. - label: c6i.xlarge
  501. value: c6i.xlarge
  502. - label: c6i.2xlarge
  503. value: c6i.2xlarge
  504. - type: number-input
  505. label: Minimum number of EC2 instances to create in the application autoscaling group.
  506. variable: additional_nodegroup_min_instances
  507. placeholder: "ex: 1"
  508. settings:
  509. default: 1
  510. - type: number-input
  511. label: Maximum number of EC2 instances to create in the application autoscaling group.
  512. variable: additional_nodegroup_max_instances
  513. placeholder: "ex: 10"
  514. settings:
  515. default: 10
  516. - name: iam
  517. label: IAM
  518. sections:
  519. - name: toggle_aws_auth
  520. contents:
  521. - type: heading
  522. label: Configure IAM Access
  523. - type: checkbox
  524. variable: manage_aws_auth_configmap
  525. label: Allow Porter to manage AWS authentication for the cluster.
  526. settings:
  527. default: true
  528. - name: aws_auth_warning
  529. show_if:
  530. not: manage_aws_auth_configmap
  531. contents:
  532. - type: subtitle
  533. 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."
  534. - name: arns
  535. show_if: manage_aws_auth_configmap
  536. contents:
  537. - type: heading
  538. label: Users
  539. - type: subtitle
  540. 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."
  541. - type: key-value-array
  542. variable: aws_auth_users
  543. settings:
  544. default: {}
  545. - type: heading
  546. label: Roles
  547. - type: subtitle
  548. 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."
  549. - type: key-value-array
  550. variable: aws_auth_roles
  551. settings:
  552. default: {}
  553. - name: advanced
  554. label: Advanced
  555. sections:
  556. - name: system_machine_type
  557. contents:
  558. - type: heading
  559. label: System Machine Type Settings
  560. - type: select
  561. label: ⚙️ AWS System Machine Type
  562. variable: system_machine_type
  563. settings:
  564. default: t2.medium
  565. options:
  566. - label: t2.medium
  567. value: t2.medium
  568. - label: t2.large
  569. value: t2.large
  570. - label: t2.xlarge
  571. value: t2.xlarge
  572. - label: t2.2xlarge
  573. value: t2.2xlarge
  574. - label: t3.medium
  575. value: t3.medium
  576. - label: t3.large
  577. value: t3.large
  578. - label: t3.xlarge
  579. value: t3.xlarge
  580. - label: t3.2xlarge
  581. value: t3.2xlarge
  582. - label: c6i.2xlarge
  583. value: c6i.2xlarge
  584. - name: spot_instance_should_enable
  585. contents:
  586. - type: heading
  587. label: Spot Instance Settings
  588. - type: checkbox
  589. variable: spot_instances_enabled
  590. label: Enable spot instances for this cluster.
  591. settings:
  592. default: false
  593. - name: spot_instance_price
  594. show_if: spot_instances_enabled
  595. contents:
  596. - type: string-input
  597. label: Assign a bid price for the spot instance (optional).
  598. variable: spot_price
  599. placeholder: "ex: 0.05"
  600. - name: net_settings
  601. contents:
  602. - type: heading
  603. label: Networking Settings
  604. - type: string-input
  605. 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)."
  606. variable: cluster_vpc_cidr_octets
  607. placeholder: "ex: 10.99"
  608. settings:
  609. default: "10.99"
  610. - type: checkbox
  611. label: "Add additional private subnets to the cluster in each AZ."
  612. variable: additional_private_subnets
  613. settings:
  614. default: false
  615. - name: subnet_multiplicity
  616. show_if: additional_private_subnets
  617. contents:
  618. - type: number-input
  619. label: "Multiplicity of the subnet within each AZ."
  620. variable: additional_private_subnets_multiplicity
  621. settings:
  622. default: 3
  623. - name: nginx_settings
  624. contents:
  625. - type: heading
  626. label: NGINX Settings
  627. - type: checkbox
  628. variable: disable_nginx_load_balancer
  629. label: Disable NGINX load balancer and expose NGINX only on a cluster IP address.
  630. settings:
  631. default: false
  632. - name: prometheus_settings
  633. contents:
  634. - type: heading
  635. label: Prometheus Settings
  636. - type: checkbox
  637. variable: additional_prometheus_node_group
  638. label: Add an additional prometheus node group to ensure monitoring stability.
  639. settings:
  640. default: false
  641. - name: prometheus_machine_settings
  642. show_if: additional_prometheus_node_group
  643. contents:
  644. - type: select
  645. label: ⚙️ AWS Prometheus Machine Type
  646. variable: additional_prometheus_machine_type
  647. settings:
  648. default: t2.medium
  649. options:
  650. - label: t2.medium
  651. value: t2.medium
  652. - label: t2.large
  653. value: t2.large
  654. - label: t2.xlarge
  655. value: t2.xlarge
  656. - label: t3.medium
  657. value: t3.medium
  658. - label: t3.large
  659. value: t3.large
  660. - label: t3.xlarge
  661. value: t3.xlarge
  662. `
  663. const gcrForm = `name: GCR
  664. hasSource: false
  665. includeHiddenFields: true
  666. tabs:
  667. - name: main
  668. label: Configuration
  669. sections:
  670. - name: section_one
  671. contents:
  672. - type: heading
  673. label: GCR Configuration
  674. - type: select
  675. label: 📍 GCP Region
  676. variable: gcp_region
  677. settings:
  678. default: us-central1
  679. options:
  680. - label: asia-east1
  681. value: asia-east1
  682. - label: asia-east2
  683. value: asia-east2
  684. - label: asia-northeast1
  685. value: asia-northeast1
  686. - label: asia-northeast2
  687. value: asia-northeast2
  688. - label: asia-northeast3
  689. value: asia-northeast3
  690. - label: asia-south1
  691. value: asia-south1
  692. - label: asia-south2
  693. value: asia-south2
  694. - label: asia-southeast1
  695. value: asia-southeast1
  696. - label: asia-southeast2
  697. value: asia-southeast2
  698. - label: australia-southeast1
  699. value: australia-southeast1
  700. - label: australia-southeast2
  701. value: australia-southeast2
  702. - label: europe-central2
  703. value: europe-central2
  704. - label: europe-north1
  705. value: europe-north1
  706. - label: europe-west1
  707. value: europe-west1
  708. - label: europe-west2
  709. value: europe-west2
  710. - label: europe-west3
  711. value: europe-west3
  712. - label: europe-west4
  713. value: europe-west4
  714. - label: europe-west6
  715. value: europe-west6
  716. - label: europe-west8
  717. value: europe-west8
  718. - label: europe-west9
  719. value: europe-west9
  720. - label: europe-southwest1
  721. value: europe-southwest1
  722. - label: northamerica-northeast1
  723. value: northamerica-northeast1
  724. - label: northamerica-northeast2
  725. value: northamerica-northeast2
  726. - label: southamerica-east1
  727. value: southamerica-east1
  728. - label: southamerica-west1
  729. value: southamerica-west1
  730. - label: us-central1
  731. value: us-central1
  732. - label: us-east1
  733. value: us-east1
  734. - label: us-east4
  735. value: us-east4
  736. - label: us-east5
  737. value: us-east5
  738. - label: us-south1
  739. value: us-south1
  740. - label: us-west1
  741. value: us-west1
  742. - label: us-west2
  743. value: us-west2
  744. - label: us-west3
  745. value: us-west3
  746. - label: us-west4
  747. value: us-west4
  748. `
  749. const garForm = `name: GAR
  750. hasSource: false
  751. includeHiddenFields: true
  752. tabs:
  753. - name: main
  754. label: Configuration
  755. sections:
  756. - name: section_one
  757. contents:
  758. - type: heading
  759. label: GAR Configuration
  760. - type: select
  761. label: 📍 GCP Region
  762. variable: gcp_region
  763. settings:
  764. default: us-central1
  765. options:
  766. - label: asia-east1
  767. value: asia-east1
  768. - label: asia-east2
  769. value: asia-east2
  770. - label: asia-northeast1
  771. value: asia-northeast1
  772. - label: asia-northeast2
  773. value: asia-northeast2
  774. - label: asia-northeast3
  775. value: asia-northeast3
  776. - label: asia-south1
  777. value: asia-south1
  778. - label: asia-south2
  779. value: asia-south2
  780. - label: asia-southeast1
  781. value: asia-southeast1
  782. - label: asia-southeast2
  783. value: asia-southeast2
  784. - label: australia-southeast1
  785. value: australia-southeast1
  786. - label: australia-southeast2
  787. value: australia-southeast2
  788. - label: europe-central2
  789. value: europe-central2
  790. - label: europe-north1
  791. value: europe-north1
  792. - label: europe-west1
  793. value: europe-west1
  794. - label: europe-west2
  795. value: europe-west2
  796. - label: europe-west3
  797. value: europe-west3
  798. - label: europe-west4
  799. value: europe-west4
  800. - label: europe-west6
  801. value: europe-west6
  802. - label: europe-west8
  803. value: europe-west8
  804. - label: europe-west9
  805. value: europe-west9
  806. - label: europe-southwest1
  807. value: europe-southwest1
  808. - label: northamerica-northeast1
  809. value: northamerica-northeast1
  810. - label: northamerica-northeast2
  811. value: northamerica-northeast2
  812. - label: southamerica-east1
  813. value: southamerica-east1
  814. - label: southamerica-west1
  815. value: southamerica-west1
  816. - label: us-central1
  817. value: us-central1
  818. - label: us-east1
  819. value: us-east1
  820. - label: us-east4
  821. value: us-east4
  822. - label: us-east5
  823. value: us-east5
  824. - label: us-south1
  825. value: us-south1
  826. - label: us-west1
  827. value: us-west1
  828. - label: us-west2
  829. value: us-west2
  830. - label: us-west3
  831. value: us-west3
  832. - label: us-west4
  833. value: us-west4
  834. - label: us (multi-region)
  835. value: us
  836. - label: europe (multi-region)
  837. value: europe
  838. - label: asia (multi-region)
  839. value: asia
  840. `
  841. const gkeForm = `name: GKE
  842. hasSource: false
  843. includeHiddenFields: true
  844. tabs:
  845. - name: main
  846. label: Configuration
  847. sections:
  848. - name: section_one
  849. contents:
  850. - type: heading
  851. label: GKE Configuration
  852. - type: select
  853. label: 📍 GCP Region
  854. variable: gcp_region
  855. settings:
  856. default: us-central1
  857. options:
  858. - label: asia-east1
  859. value: asia-east1
  860. - label: asia-east2
  861. value: asia-east2
  862. - label: asia-northeast1
  863. value: asia-northeast1
  864. - label: asia-northeast2
  865. value: asia-northeast2
  866. - label: asia-northeast3
  867. value: asia-northeast3
  868. - label: asia-south1
  869. value: asia-south1
  870. - label: asia-south2
  871. value: asia-south2
  872. - label: asia-southeast1
  873. value: asia-southeast1
  874. - label: asia-southeast2
  875. value: asia-southeast2
  876. - label: australia-southeast1
  877. value: australia-southeast1
  878. - label: australia-southeast2
  879. value: australia-southeast2
  880. - label: europe-central2
  881. value: europe-central2
  882. - label: europe-north1
  883. value: europe-north1
  884. - label: europe-west1
  885. value: europe-west1
  886. - label: europe-west2
  887. value: europe-west2
  888. - label: europe-west3
  889. value: europe-west3
  890. - label: europe-west4
  891. value: europe-west4
  892. - label: europe-west6
  893. value: europe-west6
  894. - label: europe-west8
  895. value: europe-west8
  896. - label: europe-west9
  897. value: europe-west9
  898. - label: europe-southwest1
  899. value: europe-southwest1
  900. - label: northamerica-northeast1
  901. value: northamerica-northeast1
  902. - label: northamerica-northeast2
  903. value: northamerica-northeast2
  904. - label: southamerica-east1
  905. value: southamerica-east1
  906. - label: southamerica-west1
  907. value: southamerica-west1
  908. - label: us-central1
  909. value: us-central1
  910. - label: us-east1
  911. value: us-east1
  912. - label: us-east4
  913. value: us-east4
  914. - label: us-east5
  915. value: us-east5
  916. - label: us-south1
  917. value: us-south1
  918. - label: us-west1
  919. value: us-west1
  920. - label: us-west2
  921. value: us-west2
  922. - label: us-west3
  923. value: us-west3
  924. - label: us-west4
  925. value: us-west4
  926. - type: string-input
  927. label: 👤 Issuer Email
  928. required: true
  929. placeholder: example@example.com
  930. variable: issuer_email
  931. - type: string-input
  932. label: GKE Cluster Name
  933. required: true
  934. placeholder: my-cluster
  935. variable: cluster_name
  936. `
  937. const docrForm = `name: DOCR
  938. hasSource: false
  939. includeHiddenFields: true
  940. tabs:
  941. - name: main
  942. label: Configuration
  943. sections:
  944. - name: section_one
  945. contents:
  946. - type: heading
  947. label: DOCR Configuration
  948. - type: select
  949. label: DO Subscription Tier
  950. variable: docr_subscription_tier
  951. settings:
  952. default: basic
  953. options:
  954. - label: Basic
  955. value: basic
  956. - label: Professional
  957. value: professional
  958. - type: string-input
  959. label: DOCR Name
  960. required: true
  961. placeholder: my-awesome-registry
  962. variable: docr_name
  963. `
  964. const doksForm = `name: DOKS
  965. hasSource: false
  966. includeHiddenFields: true
  967. tabs:
  968. - name: main
  969. label: Configuration
  970. sections:
  971. - name: section_one
  972. contents:
  973. - type: heading
  974. label: DOKS Configuration
  975. - type: select
  976. label: 📍 DO Region
  977. variable: do_region
  978. settings:
  979. default: nyc1
  980. options:
  981. - label: Amsterdam 3
  982. value: ams3
  983. - label: Bangalore 1
  984. value: blr1
  985. - label: Frankfurt 1
  986. value: fra1
  987. - label: London 1
  988. value: lon1
  989. - label: New York 1
  990. value: nyc1
  991. - label: New York 3
  992. value: nyc3
  993. - label: San Francisco 2
  994. value: sfo2
  995. - label: San Francisco 3
  996. value: sfo3
  997. - label: Singapore 1
  998. value: sgp1
  999. - label: Toronto 1
  1000. value: tor1
  1001. - type: string-input
  1002. label: 👤 Issuer Email
  1003. required: true
  1004. placeholder: example@example.com
  1005. variable: issuer_email
  1006. - type: string-input
  1007. label: DOKS Cluster Name
  1008. required: true
  1009. placeholder: my-cluster
  1010. variable: cluster_name
  1011. `
  1012. const acrForm = `name: ACR
  1013. hasSource: false
  1014. includeHiddenFields: true
  1015. isClusterScoped: false
  1016. tabs:
  1017. - name: main
  1018. label: Configuration
  1019. sections:
  1020. - name: section_one
  1021. contents:
  1022. - type: heading
  1023. label: ACR Configuration
  1024. - type: select
  1025. label: 📍 Azure Region
  1026. variable: aks_region
  1027. settings:
  1028. default: East US
  1029. options:
  1030. - label: East US
  1031. value: East US
  1032. - label: East US 2
  1033. value: East US 2
  1034. - label: West US 2
  1035. value: West US 2
  1036. - label: West US 3
  1037. value: West US 3
  1038. - label: Norway East
  1039. value: Norway East
  1040. - type: string-input
  1041. label: ACR Name
  1042. required: true
  1043. placeholder: my-registry
  1044. variable: acr_name
  1045. `
  1046. const aksForm = `name: AKS
  1047. hasSource: false
  1048. includeHiddenFields: true
  1049. isClusterScoped: false
  1050. tabs:
  1051. - name: main
  1052. label: Configuration
  1053. sections:
  1054. - name: section_one
  1055. contents:
  1056. - type: heading
  1057. label: AKS Configuration
  1058. - type: select
  1059. label: 📍 Azure Region
  1060. variable: aks_region
  1061. settings:
  1062. default: East US
  1063. options:
  1064. - label: East US
  1065. value: East US
  1066. - label: East US 2
  1067. value: East US 2
  1068. - label: West US 2
  1069. value: West US 2
  1070. - label: West US 3
  1071. value: West US 3
  1072. - label: Norway East
  1073. value: Norway East
  1074. - type: select
  1075. label: ⚙️ Application Machine Type
  1076. variable: app_machine_type
  1077. settings:
  1078. default: Standard_A2_v2
  1079. options:
  1080. - label: Standard A2
  1081. value: Standard_A2_v2
  1082. - label: Standard A4
  1083. value: Standard_A4_v2
  1084. - label: Standard D2
  1085. value: Standard_D2_v3
  1086. - type: string-input
  1087. label: 👤 Issuer Email
  1088. required: true
  1089. placeholder: example@example.com
  1090. variable: issuer_email
  1091. - type: string-input
  1092. label: AKS Cluster Name
  1093. required: true
  1094. placeholder: my-cluster
  1095. variable: cluster_name
  1096. `