forms.go 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. package infra
  2. const testForm = `name: Test
  3. hasSource: false
  4. includeHiddenFields: true
  5. tabs:
  6. - name: main
  7. label: Configuration
  8. sections:
  9. - name: section_one
  10. contents:
  11. - type: heading
  12. label: String to echo
  13. - type: string-input
  14. variable: echo
  15. settings:
  16. default: hello
  17. `
  18. // note: region options for AWS, if needed
  19. // - type: select
  20. // label: 📍 AWS Region
  21. // variable: aws_region
  22. // settings:
  23. // default: us-east-2
  24. // options:
  25. // - label: US East (N. Virginia) us-east-1
  26. // value: us-east-1
  27. // - label: US East (Ohio) us-east-2
  28. // value: us-east-2
  29. // - label: US West (N. California) us-west-1
  30. // value: us-west-1
  31. // - label: US West (Oregon) us-west-2
  32. // value: us-west-2
  33. // - label: Africa (Cape Town) af-south-1
  34. // value: af-south-1
  35. // - label: Asia Pacific (Hong Kong) ap-east-1
  36. // value: ap-east-1
  37. // - label: Asia Pacific (Mumbai) ap-south-1
  38. // value: ap-south-1
  39. // - label: Asia Pacific (Seoul) ap-northeast-2
  40. // value: ap-northeast-2
  41. // - label: Asia Pacific (Singapore) ap-southeast-1
  42. // value: ap-southeast-1
  43. // - label: Asia Pacific (Sydney) ap-southeast-2
  44. // value: ap-southeast-2
  45. // - label: Asia Pacific (Tokyo) ap-northeast-1
  46. // value: ap-northeast-1
  47. // - label: Canada (Central) ca-central-1
  48. // value: ca-central-1
  49. // - label: Europe (Ireland) eu-west-1
  50. // value: eu-west-1
  51. // - label: Europe (London) eu-west-2
  52. // value: eu-west-2
  53. // - label: Europe (Milan) eu-south-1
  54. // value: eu-south-1
  55. // - label: Europe (Paris) eu-west-3
  56. // value: eu-west-3
  57. // - label: Europe (Stockholm) eu-north-1
  58. // value: eu-north-1
  59. // - label: Middle East (Bahrain) me-south-1
  60. // value: me-south-1
  61. // - label: South America (São Paulo) sa-east-1
  62. // value: sa-east-1
  63. const ecrForm = `name: ECR
  64. hasSource: false
  65. includeHiddenFields: true
  66. tabs:
  67. - name: main
  68. label: Configuration
  69. sections:
  70. - name: section_one
  71. contents:
  72. - type: heading
  73. label: ECR Configuration
  74. - type: string-input
  75. label: ECR Name
  76. required: true
  77. placeholder: my-awesome-registry
  78. variable: ecr_name
  79. `
  80. const eksForm = `name: EKS
  81. hasSource: false
  82. includeHiddenFields: true
  83. tabs:
  84. - name: main
  85. label: Configuration
  86. sections:
  87. - name: section_one
  88. contents:
  89. - type: heading
  90. label: EKS Configuration
  91. - type: select
  92. label: ⚙️ AWS Machine Type
  93. variable: machine_type
  94. settings:
  95. default: t2.medium
  96. options:
  97. - label: t2.medium
  98. value: t2.medium
  99. - type: string-input
  100. label: 👤 Issuer Email
  101. required: true
  102. placeholder: example@example.com
  103. variable: issuer_email
  104. - type: string-input
  105. label: EKS Cluster Name
  106. required: true
  107. placeholder: my-cluster
  108. variable: cluster_name
  109. `
  110. const gcrForm = `name: GCR
  111. hasSource: false
  112. includeHiddenFields: true
  113. tabs:
  114. - name: main
  115. label: Configuration
  116. sections:
  117. - name: section_one
  118. contents:
  119. - type: heading
  120. label: GCR Configuration
  121. - type: select
  122. label: 📍 GCP Region
  123. variable: gcp_region
  124. settings:
  125. default: us-central1
  126. options:
  127. - label: asia-east1
  128. value: asia-east1
  129. - label: asia-east2
  130. value: asia-east2
  131. - label: asia-northeast1
  132. value: asia-northeast1
  133. - label: asia-northeast2
  134. value: asia-northeast2
  135. - label: asia-northeast3
  136. value: asia-northeast3
  137. - label: asia-south1
  138. value: asia-south1
  139. - label: asia-southeast1
  140. value: asia-southeast1
  141. - label: asia-southeast2
  142. value: asia-southeast2
  143. - label: australia-southeast1
  144. value: australia-southeast1
  145. - label: europe-north1
  146. value: europe-north1
  147. - label: europe-west1
  148. value: europe-west1
  149. - label: europe-west2
  150. value: europe-west2
  151. - label: europe-west3
  152. value: europe-west3
  153. - label: europe-west4
  154. value: europe-west4
  155. - label: europe-west6
  156. value: europe-west6
  157. - label: northamerica-northeast1
  158. value: northamerica-northeast1
  159. - label: southamerica-east1
  160. value: southamerica-east1
  161. - label: us-central1
  162. value: us-central1
  163. - label: us-east1
  164. value: us-east1
  165. - label: us-east4
  166. value: us-east4
  167. - label: us-east1
  168. value: us-east1
  169. - label: us-east1
  170. value: us-east1
  171. - label: us-west1
  172. value: us-west1
  173. - label: us-east1
  174. value: us-west2
  175. - label: us-west3
  176. value: us-west3
  177. - label: us-west4
  178. value: us-west4
  179. `
  180. const gkeForm = `name: GKE
  181. hasSource: false
  182. includeHiddenFields: true
  183. tabs:
  184. - name: main
  185. label: Configuration
  186. sections:
  187. - name: section_one
  188. contents:
  189. - type: heading
  190. label: GKE Configuration
  191. - type: select
  192. label: 📍 GCP Region
  193. variable: gcp_region
  194. settings:
  195. default: us-central1
  196. options:
  197. - label: asia-east1
  198. value: asia-east1
  199. - label: asia-east2
  200. value: asia-east2
  201. - label: asia-northeast1
  202. value: asia-northeast1
  203. - label: asia-northeast2
  204. value: asia-northeast2
  205. - label: asia-northeast3
  206. value: asia-northeast3
  207. - label: asia-south1
  208. value: asia-south1
  209. - label: asia-southeast1
  210. value: asia-southeast1
  211. - label: asia-southeast2
  212. value: asia-southeast2
  213. - label: australia-southeast1
  214. value: australia-southeast1
  215. - label: europe-north1
  216. value: europe-north1
  217. - label: europe-west1
  218. value: europe-west1
  219. - label: europe-west2
  220. value: europe-west2
  221. - label: europe-west3
  222. value: europe-west3
  223. - label: europe-west4
  224. value: europe-west4
  225. - label: europe-west6
  226. value: europe-west6
  227. - label: northamerica-northeast1
  228. value: northamerica-northeast1
  229. - label: southamerica-east1
  230. value: southamerica-east1
  231. - label: us-central1
  232. value: us-central1
  233. - label: us-east1
  234. value: us-east1
  235. - label: us-east4
  236. value: us-east4
  237. - label: us-east1
  238. value: us-east1
  239. - label: us-east1
  240. value: us-east1
  241. - label: us-west1
  242. value: us-west1
  243. - label: us-east1
  244. value: us-west2
  245. - label: us-west3
  246. value: us-west3
  247. - label: us-west4
  248. value: us-west4
  249. - type: string-input
  250. label: 👤 Issuer Email
  251. required: true
  252. placeholder: example@example.com
  253. variable: issuer_email
  254. - type: string-input
  255. label: GKE Cluster Name
  256. required: true
  257. placeholder: my-cluster
  258. variable: cluster_name
  259. `
  260. const docrForm = `name: DOCR
  261. hasSource: false
  262. includeHiddenFields: true
  263. tabs:
  264. - name: main
  265. label: Configuration
  266. sections:
  267. - name: section_one
  268. contents:
  269. - type: heading
  270. label: DOCR Configuration
  271. - type: select
  272. label: DO Subscription Tier
  273. variable: docr_subscription_tier
  274. settings:
  275. default: basic
  276. options:
  277. - label: Basic
  278. value: basic
  279. - label: Professional
  280. value: professional
  281. - type: string-input
  282. label: DOCR Name
  283. required: true
  284. placeholder: my-awesome-registry
  285. variable: docr_name
  286. `
  287. const doksForm = `name: DOKS
  288. hasSource: false
  289. includeHiddenFields: true
  290. tabs:
  291. - name: main
  292. label: Configuration
  293. sections:
  294. - name: section_one
  295. contents:
  296. - type: heading
  297. label: DOKS Configuration
  298. - type: select
  299. label: 📍 DO Region
  300. variable: do_region
  301. settings:
  302. default: nyc1
  303. options:
  304. - label: Amsterdam 3
  305. value: ams3
  306. - label: Bangalore 1
  307. value: blr1
  308. - label: Frankfurt 1
  309. value: fra1
  310. - label: London 1
  311. value: lon1
  312. - label: New York 1
  313. value: nyc1
  314. - label: New York 3
  315. value: nyc3
  316. - label: San Francisco 2
  317. value: sfo2
  318. - label: San Francisco 3
  319. value: sfo3
  320. - label: Singapore 1
  321. value: sgp1
  322. - label: Toronto 1
  323. value: tor1
  324. - type: string-input
  325. label: 👤 Issuer Email
  326. required: true
  327. placeholder: example@example.com
  328. variable: issuer_email
  329. - type: string-input
  330. label: DOKS Cluster Name
  331. required: true
  332. placeholder: my-cluster
  333. variable: cluster_name
  334. `