forms.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  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: nginx_settings
  598. contents:
  599. - type: heading
  600. label: NGINX Settings
  601. - type: checkbox
  602. variable: disable_nginx_load_balancer
  603. label: Disable NGINX load balancer and expose NGINX only on a cluster IP address.
  604. settings:
  605. default: false
  606. `
  607. const gcrForm = `name: GCR
  608. hasSource: false
  609. includeHiddenFields: true
  610. tabs:
  611. - name: main
  612. label: Configuration
  613. sections:
  614. - name: section_one
  615. contents:
  616. - type: heading
  617. label: GCR Configuration
  618. - type: select
  619. label: 📍 GCP Region
  620. variable: gcp_region
  621. settings:
  622. default: us-central1
  623. options:
  624. - label: asia-east1
  625. value: asia-east1
  626. - label: asia-east2
  627. value: asia-east2
  628. - label: asia-northeast1
  629. value: asia-northeast1
  630. - label: asia-northeast2
  631. value: asia-northeast2
  632. - label: asia-northeast3
  633. value: asia-northeast3
  634. - label: asia-south1
  635. value: asia-south1
  636. - label: asia-southeast1
  637. value: asia-southeast1
  638. - label: asia-southeast2
  639. value: asia-southeast2
  640. - label: australia-southeast1
  641. value: australia-southeast1
  642. - label: europe-north1
  643. value: europe-north1
  644. - label: europe-west1
  645. value: europe-west1
  646. - label: europe-west2
  647. value: europe-west2
  648. - label: europe-west3
  649. value: europe-west3
  650. - label: europe-west4
  651. value: europe-west4
  652. - label: europe-west6
  653. value: europe-west6
  654. - label: northamerica-northeast1
  655. value: northamerica-northeast1
  656. - label: southamerica-east1
  657. value: southamerica-east1
  658. - label: us-central1
  659. value: us-central1
  660. - label: us-east1
  661. value: us-east1
  662. - label: us-east4
  663. value: us-east4
  664. - label: us-east1
  665. value: us-east1
  666. - label: us-east1
  667. value: us-east1
  668. - label: us-west1
  669. value: us-west1
  670. - label: us-east1
  671. value: us-west2
  672. - label: us-west3
  673. value: us-west3
  674. - label: us-west4
  675. value: us-west4
  676. `
  677. const gkeForm = `name: GKE
  678. hasSource: false
  679. includeHiddenFields: true
  680. tabs:
  681. - name: main
  682. label: Configuration
  683. sections:
  684. - name: section_one
  685. contents:
  686. - type: heading
  687. label: GKE Configuration
  688. - type: select
  689. label: 📍 GCP Region
  690. variable: gcp_region
  691. settings:
  692. default: us-central1
  693. options:
  694. - label: asia-east1
  695. value: asia-east1
  696. - label: asia-east2
  697. value: asia-east2
  698. - label: asia-northeast1
  699. value: asia-northeast1
  700. - label: asia-northeast2
  701. value: asia-northeast2
  702. - label: asia-northeast3
  703. value: asia-northeast3
  704. - label: asia-south1
  705. value: asia-south1
  706. - label: asia-southeast1
  707. value: asia-southeast1
  708. - label: asia-southeast2
  709. value: asia-southeast2
  710. - label: australia-southeast1
  711. value: australia-southeast1
  712. - label: europe-north1
  713. value: europe-north1
  714. - label: europe-west1
  715. value: europe-west1
  716. - label: europe-west2
  717. value: europe-west2
  718. - label: europe-west3
  719. value: europe-west3
  720. - label: europe-west4
  721. value: europe-west4
  722. - label: europe-west6
  723. value: europe-west6
  724. - label: northamerica-northeast1
  725. value: northamerica-northeast1
  726. - label: southamerica-east1
  727. value: southamerica-east1
  728. - label: us-central1
  729. value: us-central1
  730. - label: us-east1
  731. value: us-east1
  732. - label: us-east4
  733. value: us-east4
  734. - label: us-east1
  735. value: us-east1
  736. - label: us-east1
  737. value: us-east1
  738. - label: us-west1
  739. value: us-west1
  740. - label: us-east1
  741. value: us-west2
  742. - label: us-west3
  743. value: us-west3
  744. - label: us-west4
  745. value: us-west4
  746. - type: string-input
  747. label: 👤 Issuer Email
  748. required: true
  749. placeholder: example@example.com
  750. variable: issuer_email
  751. - type: string-input
  752. label: GKE Cluster Name
  753. required: true
  754. placeholder: my-cluster
  755. variable: cluster_name
  756. `
  757. const docrForm = `name: DOCR
  758. hasSource: false
  759. includeHiddenFields: true
  760. tabs:
  761. - name: main
  762. label: Configuration
  763. sections:
  764. - name: section_one
  765. contents:
  766. - type: heading
  767. label: DOCR Configuration
  768. - type: select
  769. label: DO Subscription Tier
  770. variable: docr_subscription_tier
  771. settings:
  772. default: basic
  773. options:
  774. - label: Basic
  775. value: basic
  776. - label: Professional
  777. value: professional
  778. - type: string-input
  779. label: DOCR Name
  780. required: true
  781. placeholder: my-awesome-registry
  782. variable: docr_name
  783. `
  784. const doksForm = `name: DOKS
  785. hasSource: false
  786. includeHiddenFields: true
  787. tabs:
  788. - name: main
  789. label: Configuration
  790. sections:
  791. - name: section_one
  792. contents:
  793. - type: heading
  794. label: DOKS Configuration
  795. - type: select
  796. label: 📍 DO Region
  797. variable: do_region
  798. settings:
  799. default: nyc1
  800. options:
  801. - label: Amsterdam 3
  802. value: ams3
  803. - label: Bangalore 1
  804. value: blr1
  805. - label: Frankfurt 1
  806. value: fra1
  807. - label: London 1
  808. value: lon1
  809. - label: New York 1
  810. value: nyc1
  811. - label: New York 3
  812. value: nyc3
  813. - label: San Francisco 2
  814. value: sfo2
  815. - label: San Francisco 3
  816. value: sfo3
  817. - label: Singapore 1
  818. value: sgp1
  819. - label: Toronto 1
  820. value: tor1
  821. - type: string-input
  822. label: 👤 Issuer Email
  823. required: true
  824. placeholder: example@example.com
  825. variable: issuer_email
  826. - type: string-input
  827. label: DOKS Cluster Name
  828. required: true
  829. placeholder: my-cluster
  830. variable: cluster_name
  831. `
  832. const acrForm = `name: ACR
  833. hasSource: false
  834. includeHiddenFields: true
  835. isClusterScoped: false
  836. tabs:
  837. - name: main
  838. label: Configuration
  839. sections:
  840. - name: section_one
  841. contents:
  842. - type: heading
  843. label: ACR Configuration
  844. - type: select
  845. label: 📍 Azure Region
  846. variable: aks_region
  847. settings:
  848. default: East US
  849. options:
  850. - label: East US
  851. value: East US
  852. - label: East US 2
  853. value: East US 2
  854. - label: West US 2
  855. value: West US 2
  856. - label: West US 3
  857. value: West US 3
  858. - label: Norway East
  859. value: Norway East
  860. - type: string-input
  861. label: ACR Name
  862. required: true
  863. placeholder: my-registry
  864. variable: acr_name
  865. `
  866. const aksForm = `name: AKS
  867. hasSource: false
  868. includeHiddenFields: true
  869. isClusterScoped: false
  870. tabs:
  871. - name: main
  872. label: Configuration
  873. sections:
  874. - name: section_one
  875. contents:
  876. - type: heading
  877. label: AKS Configuration
  878. - type: select
  879. label: 📍 Azure Region
  880. variable: aks_region
  881. settings:
  882. default: East US
  883. options:
  884. - label: East US
  885. value: East US
  886. - label: East US 2
  887. value: East US 2
  888. - label: West US 2
  889. value: West US 2
  890. - label: West US 3
  891. value: West US 3
  892. - label: Norway East
  893. value: Norway East
  894. - type: select
  895. label: ⚙️ Application Machine Type
  896. variable: app_machine_type
  897. settings:
  898. default: Standard_A2_v2
  899. options:
  900. - label: Standard A2
  901. value: Standard_A2_v2
  902. - label: Standard A4
  903. value: Standard_A4_v2
  904. - label: Standard D2
  905. value: Standard_D2_v3
  906. - type: string-input
  907. label: 👤 Issuer Email
  908. required: true
  909. placeholder: example@example.com
  910. variable: issuer_email
  911. - type: string-input
  912. label: AKS Cluster Name
  913. required: true
  914. placeholder: my-cluster
  915. variable: cluster_name
  916. `