forms.go 27 KB

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