typekro 0.5.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/compositions/typekro-runtime/typekro-runtime.d.ts +1 -1
  3. package/dist/compositions/typekro-runtime/typekro-runtime.d.ts.map +1 -1
  4. package/dist/compositions/typekro-runtime/typekro-runtime.js +16 -2
  5. package/dist/compositions/typekro-runtime/typekro-runtime.js.map +1 -1
  6. package/dist/core/composition/context.d.ts +14 -0
  7. package/dist/core/composition/context.d.ts.map +1 -1
  8. package/dist/core/composition/context.js.map +1 -1
  9. package/dist/core/composition/imperative.d.ts.map +1 -1
  10. package/dist/core/composition/imperative.js +59 -30
  11. package/dist/core/composition/imperative.js.map +1 -1
  12. package/dist/core/composition/nested-status-cel.d.ts +50 -0
  13. package/dist/core/composition/nested-status-cel.d.ts.map +1 -0
  14. package/dist/core/composition/nested-status-cel.js +169 -0
  15. package/dist/core/composition/nested-status-cel.js.map +1 -0
  16. package/dist/core/constants/brands.d.ts +1 -1
  17. package/dist/core/constants/brands.d.ts.map +1 -1
  18. package/dist/core/constants/brands.js +1 -1
  19. package/dist/core/constants/brands.js.map +1 -1
  20. package/dist/core/containers/build.d.ts +50 -0
  21. package/dist/core/containers/build.d.ts.map +1 -0
  22. package/dist/core/containers/build.js +146 -0
  23. package/dist/core/containers/build.js.map +1 -0
  24. package/dist/core/containers/errors.d.ts +14 -0
  25. package/dist/core/containers/errors.d.ts.map +1 -0
  26. package/dist/core/containers/errors.js +48 -0
  27. package/dist/core/containers/errors.js.map +1 -0
  28. package/dist/core/containers/exec.d.ts +36 -0
  29. package/dist/core/containers/exec.d.ts.map +1 -0
  30. package/dist/core/containers/exec.js +110 -0
  31. package/dist/core/containers/exec.js.map +1 -0
  32. package/dist/core/containers/index.d.ts +21 -0
  33. package/dist/core/containers/index.d.ts.map +1 -0
  34. package/dist/core/containers/index.js +20 -0
  35. package/dist/core/containers/index.js.map +1 -0
  36. package/dist/core/containers/registries/ecr.d.ts +22 -0
  37. package/dist/core/containers/registries/ecr.d.ts.map +1 -0
  38. package/dist/core/containers/registries/ecr.js +118 -0
  39. package/dist/core/containers/registries/ecr.js.map +1 -0
  40. package/dist/core/containers/registries/index.d.ts +9 -0
  41. package/dist/core/containers/registries/index.d.ts.map +1 -0
  42. package/dist/core/containers/registries/index.js +23 -0
  43. package/dist/core/containers/registries/index.js.map +1 -0
  44. package/dist/core/containers/registries/orbstack.d.ts +14 -0
  45. package/dist/core/containers/registries/orbstack.d.ts.map +1 -0
  46. package/dist/core/containers/registries/orbstack.js +24 -0
  47. package/dist/core/containers/registries/orbstack.js.map +1 -0
  48. package/dist/core/containers/registries/types.d.ts +94 -0
  49. package/dist/core/containers/registries/types.d.ts.map +1 -0
  50. package/dist/core/containers/registries/types.js +11 -0
  51. package/dist/core/containers/registries/types.js.map +1 -0
  52. package/dist/core/dependencies/graph.d.ts +4 -0
  53. package/dist/core/dependencies/graph.d.ts.map +1 -1
  54. package/dist/core/dependencies/graph.js +6 -0
  55. package/dist/core/dependencies/graph.js.map +1 -1
  56. package/dist/core/dependencies/resolver.d.ts +28 -0
  57. package/dist/core/dependencies/resolver.d.ts.map +1 -1
  58. package/dist/core/dependencies/resolver.js +138 -5
  59. package/dist/core/dependencies/resolver.js.map +1 -1
  60. package/dist/core/deployment/direct-factory.d.ts +13 -0
  61. package/dist/core/deployment/direct-factory.d.ts.map +1 -1
  62. package/dist/core/deployment/direct-factory.js +99 -0
  63. package/dist/core/deployment/direct-factory.js.map +1 -1
  64. package/dist/core/deployment/engine.d.ts.map +1 -1
  65. package/dist/core/deployment/engine.js +45 -2
  66. package/dist/core/deployment/engine.js.map +1 -1
  67. package/dist/core/deployment/kro-factory.d.ts +28 -0
  68. package/dist/core/deployment/kro-factory.d.ts.map +1 -1
  69. package/dist/core/deployment/kro-factory.js +243 -13
  70. package/dist/core/deployment/kro-factory.js.map +1 -1
  71. package/dist/core/deployment/kro-readiness.d.ts.map +1 -1
  72. package/dist/core/deployment/kro-readiness.js +10 -1
  73. package/dist/core/deployment/kro-readiness.js.map +1 -1
  74. package/dist/core/deployment/nested-composition-status.d.ts +33 -0
  75. package/dist/core/deployment/nested-composition-status.d.ts.map +1 -0
  76. package/dist/core/deployment/nested-composition-status.js +101 -0
  77. package/dist/core/deployment/nested-composition-status.js.map +1 -0
  78. package/dist/core/deployment/readiness-waiter.d.ts.map +1 -1
  79. package/dist/core/deployment/readiness-waiter.js +23 -6
  80. package/dist/core/deployment/readiness-waiter.js.map +1 -1
  81. package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
  82. package/dist/core/deployment/rollback-manager.js +19 -0
  83. package/dist/core/deployment/rollback-manager.js.map +1 -1
  84. package/dist/core/deployment/strategies/direct-strategy.d.ts +6 -0
  85. package/dist/core/deployment/strategies/direct-strategy.d.ts.map +1 -1
  86. package/dist/core/deployment/strategies/direct-strategy.js +133 -35
  87. package/dist/core/deployment/strategies/direct-strategy.js.map +1 -1
  88. package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts +8 -2
  89. package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts.map +1 -1
  90. package/dist/core/expressions/composition/composition-analyzer-helpers.js +34 -2
  91. package/dist/core/expressions/composition/composition-analyzer-helpers.js.map +1 -1
  92. package/dist/core/expressions/composition/composition-analyzer-ternary.d.ts.map +1 -1
  93. package/dist/core/expressions/composition/composition-analyzer-ternary.js +52 -28
  94. package/dist/core/expressions/composition/composition-analyzer-ternary.js.map +1 -1
  95. package/dist/core/expressions/composition/composition-analyzer-traversal.d.ts.map +1 -1
  96. package/dist/core/expressions/composition/composition-analyzer-traversal.js +11 -4
  97. package/dist/core/expressions/composition/composition-analyzer-traversal.js.map +1 -1
  98. package/dist/core/expressions/composition/composition-analyzer-types.d.ts +8 -0
  99. package/dist/core/expressions/composition/composition-analyzer-types.d.ts.map +1 -1
  100. package/dist/core/expressions/composition/composition-analyzer.d.ts +1 -1
  101. package/dist/core/expressions/composition/composition-analyzer.d.ts.map +1 -1
  102. package/dist/core/expressions/composition/composition-analyzer.js +8 -2
  103. package/dist/core/expressions/composition/composition-analyzer.js.map +1 -1
  104. package/dist/core/expressions/composition/imperative-analyzer.d.ts +8 -0
  105. package/dist/core/expressions/composition/imperative-analyzer.d.ts.map +1 -1
  106. package/dist/core/expressions/composition/imperative-analyzer.js +111 -16
  107. package/dist/core/expressions/composition/imperative-analyzer.js.map +1 -1
  108. package/dist/core/metadata/resource-metadata.d.ts +4 -0
  109. package/dist/core/metadata/resource-metadata.d.ts.map +1 -1
  110. package/dist/core/metadata/resource-metadata.js.map +1 -1
  111. package/dist/core/proxy/create-resource.d.ts.map +1 -1
  112. package/dist/core/proxy/create-resource.js +63 -21
  113. package/dist/core/proxy/create-resource.js.map +1 -1
  114. package/dist/core/references/cel.d.ts +48 -0
  115. package/dist/core/references/cel.d.ts.map +1 -1
  116. package/dist/core/references/cel.js +82 -0
  117. package/dist/core/references/cel.js.map +1 -1
  118. package/dist/core/references/external-refs.d.ts +2 -0
  119. package/dist/core/references/external-refs.d.ts.map +1 -1
  120. package/dist/core/references/external-refs.js +3 -0
  121. package/dist/core/references/external-refs.js.map +1 -1
  122. package/dist/core/references/resolver.d.ts +12 -4
  123. package/dist/core/references/resolver.d.ts.map +1 -1
  124. package/dist/core/references/resolver.js +152 -69
  125. package/dist/core/references/resolver.js.map +1 -1
  126. package/dist/core/references/schema-proxy.d.ts.map +1 -1
  127. package/dist/core/references/schema-proxy.js +5 -4
  128. package/dist/core/references/schema-proxy.js.map +1 -1
  129. package/dist/core/serialization/cel-references.d.ts +1 -1
  130. package/dist/core/serialization/cel-references.d.ts.map +1 -1
  131. package/dist/core/serialization/cel-references.js +191 -24
  132. package/dist/core/serialization/cel-references.js.map +1 -1
  133. package/dist/core/serialization/core.d.ts +8 -1
  134. package/dist/core/serialization/core.d.ts.map +1 -1
  135. package/dist/core/serialization/core.js +434 -7
  136. package/dist/core/serialization/core.js.map +1 -1
  137. package/dist/core/serialization/kro-post-processing.d.ts +46 -0
  138. package/dist/core/serialization/kro-post-processing.d.ts.map +1 -0
  139. package/dist/core/serialization/kro-post-processing.js +103 -0
  140. package/dist/core/serialization/kro-post-processing.js.map +1 -0
  141. package/dist/core/serialization/schema.d.ts +61 -3
  142. package/dist/core/serialization/schema.d.ts.map +1 -1
  143. package/dist/core/serialization/schema.js +520 -18
  144. package/dist/core/serialization/schema.js.map +1 -1
  145. package/dist/core/serialization/status-analysis-pipeline.d.ts +4 -0
  146. package/dist/core/serialization/status-analysis-pipeline.d.ts.map +1 -1
  147. package/dist/core/serialization/status-analysis-pipeline.js +127 -10
  148. package/dist/core/serialization/status-analysis-pipeline.js.map +1 -1
  149. package/dist/core/serialization/yaml.d.ts.map +1 -1
  150. package/dist/core/serialization/yaml.js +27 -4
  151. package/dist/core/serialization/yaml.js.map +1 -1
  152. package/dist/core/types/composable.d.ts +62 -0
  153. package/dist/core/types/composable.d.ts.map +1 -0
  154. package/dist/core/types/composable.js +51 -0
  155. package/dist/core/types/composable.js.map +1 -0
  156. package/dist/core/types/deployment.d.ts +2 -1
  157. package/dist/core/types/deployment.d.ts.map +1 -1
  158. package/dist/core/types/index.d.ts +1 -0
  159. package/dist/core/types/index.d.ts.map +1 -1
  160. package/dist/core/types/index.js +1 -0
  161. package/dist/core/types/index.js.map +1 -1
  162. package/dist/core/types/serialization.d.ts +40 -1
  163. package/dist/core/types/serialization.d.ts.map +1 -1
  164. package/dist/core/validation/cel-validator.d.ts.map +1 -1
  165. package/dist/core/validation/cel-validator.js +55 -31
  166. package/dist/core/validation/cel-validator.js.map +1 -1
  167. package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts +55 -0
  168. package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts.map +1 -0
  169. package/dist/factories/cnpg/compositions/cnpg-bootstrap.js +92 -0
  170. package/dist/factories/cnpg/compositions/cnpg-bootstrap.js.map +1 -0
  171. package/dist/factories/cnpg/compositions/index.d.ts +2 -0
  172. package/dist/factories/cnpg/compositions/index.d.ts.map +1 -0
  173. package/dist/factories/cnpg/compositions/index.js +2 -0
  174. package/dist/factories/cnpg/compositions/index.js.map +1 -0
  175. package/dist/factories/cnpg/index.d.ts +42 -0
  176. package/dist/factories/cnpg/index.d.ts.map +1 -0
  177. package/dist/factories/cnpg/index.js +42 -0
  178. package/dist/factories/cnpg/index.js.map +1 -0
  179. package/dist/factories/cnpg/resources/backup.d.ts +34 -0
  180. package/dist/factories/cnpg/resources/backup.d.ts.map +1 -0
  181. package/dist/factories/cnpg/resources/backup.js +87 -0
  182. package/dist/factories/cnpg/resources/backup.js.map +1 -0
  183. package/dist/factories/cnpg/resources/cluster.d.ts +55 -0
  184. package/dist/factories/cnpg/resources/cluster.d.ts.map +1 -0
  185. package/dist/factories/cnpg/resources/cluster.js +123 -0
  186. package/dist/factories/cnpg/resources/cluster.js.map +1 -0
  187. package/dist/factories/cnpg/resources/helm.d.ts +45 -0
  188. package/dist/factories/cnpg/resources/helm.d.ts.map +1 -0
  189. package/dist/factories/cnpg/resources/helm.js +78 -0
  190. package/dist/factories/cnpg/resources/helm.js.map +1 -0
  191. package/dist/factories/cnpg/resources/index.d.ts +6 -0
  192. package/dist/factories/cnpg/resources/index.d.ts.map +1 -0
  193. package/dist/factories/cnpg/resources/index.js +6 -0
  194. package/dist/factories/cnpg/resources/index.js.map +1 -0
  195. package/dist/factories/cnpg/resources/pooler.d.ts +38 -0
  196. package/dist/factories/cnpg/resources/pooler.d.ts.map +1 -0
  197. package/dist/factories/cnpg/resources/pooler.js +97 -0
  198. package/dist/factories/cnpg/resources/pooler.js.map +1 -0
  199. package/dist/factories/cnpg/resources/scheduled-backup.d.ts +35 -0
  200. package/dist/factories/cnpg/resources/scheduled-backup.d.ts.map +1 -0
  201. package/dist/factories/cnpg/resources/scheduled-backup.js +68 -0
  202. package/dist/factories/cnpg/resources/scheduled-backup.js.map +1 -0
  203. package/dist/factories/cnpg/types.d.ts +507 -0
  204. package/dist/factories/cnpg/types.d.ts.map +1 -0
  205. package/dist/factories/cnpg/types.js +398 -0
  206. package/dist/factories/cnpg/types.js.map +1 -0
  207. package/dist/factories/cnpg/utils/helm-values-mapper.d.ts +70 -0
  208. package/dist/factories/cnpg/utils/helm-values-mapper.d.ts.map +1 -0
  209. package/dist/factories/cnpg/utils/helm-values-mapper.js +79 -0
  210. package/dist/factories/cnpg/utils/helm-values-mapper.js.map +1 -0
  211. package/dist/factories/cnpg/utils/index.d.ts +2 -0
  212. package/dist/factories/cnpg/utils/index.d.ts.map +1 -0
  213. package/dist/factories/cnpg/utils/index.js +2 -0
  214. package/dist/factories/cnpg/utils/index.js.map +1 -0
  215. package/dist/factories/helm/helm-release.d.ts.map +1 -1
  216. package/dist/factories/helm/helm-release.js +4 -0
  217. package/dist/factories/helm/helm-release.js.map +1 -1
  218. package/dist/factories/helm/types.d.ts +2 -0
  219. package/dist/factories/helm/types.d.ts.map +1 -1
  220. package/dist/factories/inngest/compositions/index.d.ts +2 -0
  221. package/dist/factories/inngest/compositions/index.d.ts.map +1 -0
  222. package/dist/factories/inngest/compositions/index.js +2 -0
  223. package/dist/factories/inngest/compositions/index.js.map +1 -0
  224. package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts +150 -0
  225. package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts.map +1 -0
  226. package/dist/factories/inngest/compositions/inngest-bootstrap.js +90 -0
  227. package/dist/factories/inngest/compositions/inngest-bootstrap.js.map +1 -0
  228. package/dist/factories/inngest/index.d.ts +45 -0
  229. package/dist/factories/inngest/index.d.ts.map +1 -0
  230. package/dist/factories/inngest/index.js +45 -0
  231. package/dist/factories/inngest/index.js.map +1 -0
  232. package/dist/factories/inngest/resources/helm.d.ts +53 -0
  233. package/dist/factories/inngest/resources/helm.d.ts.map +1 -0
  234. package/dist/factories/inngest/resources/helm.js +88 -0
  235. package/dist/factories/inngest/resources/helm.js.map +1 -0
  236. package/dist/factories/inngest/resources/index.d.ts +2 -0
  237. package/dist/factories/inngest/resources/index.d.ts.map +1 -0
  238. package/dist/factories/inngest/resources/index.js +2 -0
  239. package/dist/factories/inngest/resources/index.js.map +1 -0
  240. package/dist/factories/inngest/types.d.ts +177 -0
  241. package/dist/factories/inngest/types.d.ts.map +1 -0
  242. package/dist/factories/inngest/types.js +189 -0
  243. package/dist/factories/inngest/types.js.map +1 -0
  244. package/dist/factories/inngest/utils/helm-values-mapper.d.ts +127 -0
  245. package/dist/factories/inngest/utils/helm-values-mapper.d.ts.map +1 -0
  246. package/dist/factories/inngest/utils/helm-values-mapper.js +116 -0
  247. package/dist/factories/inngest/utils/helm-values-mapper.js.map +1 -0
  248. package/dist/factories/inngest/utils/index.d.ts +2 -0
  249. package/dist/factories/inngest/utils/index.d.ts.map +1 -0
  250. package/dist/factories/inngest/utils/index.js +2 -0
  251. package/dist/factories/inngest/utils/index.js.map +1 -0
  252. package/dist/factories/kubernetes/config/secret.d.ts.map +1 -1
  253. package/dist/factories/kubernetes/config/secret.js +11 -1
  254. package/dist/factories/kubernetes/config/secret.js.map +1 -1
  255. package/dist/factories/kubernetes/core/namespace.d.ts.map +1 -1
  256. package/dist/factories/kubernetes/core/namespace.js +1 -1
  257. package/dist/factories/kubernetes/core/namespace.js.map +1 -1
  258. package/dist/factories/searxng/compositions/index.d.ts +2 -0
  259. package/dist/factories/searxng/compositions/index.d.ts.map +1 -0
  260. package/dist/factories/searxng/compositions/index.js +2 -0
  261. package/dist/factories/searxng/compositions/index.js.map +1 -0
  262. package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts +65 -0
  263. package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts.map +1 -0
  264. package/dist/factories/searxng/compositions/searxng-bootstrap.js +237 -0
  265. package/dist/factories/searxng/compositions/searxng-bootstrap.js.map +1 -0
  266. package/dist/factories/searxng/index.d.ts +29 -0
  267. package/dist/factories/searxng/index.d.ts.map +1 -0
  268. package/dist/factories/searxng/index.js +27 -0
  269. package/dist/factories/searxng/index.js.map +1 -0
  270. package/dist/factories/searxng/resources/index.d.ts +2 -0
  271. package/dist/factories/searxng/resources/index.d.ts.map +1 -0
  272. package/dist/factories/searxng/resources/index.js +2 -0
  273. package/dist/factories/searxng/resources/index.js.map +1 -0
  274. package/dist/factories/searxng/resources/searxng.d.ts +65 -0
  275. package/dist/factories/searxng/resources/searxng.d.ts.map +1 -0
  276. package/dist/factories/searxng/resources/searxng.js +188 -0
  277. package/dist/factories/searxng/resources/searxng.js.map +1 -0
  278. package/dist/factories/searxng/types.d.ts +126 -0
  279. package/dist/factories/searxng/types.d.ts.map +1 -0
  280. package/dist/factories/searxng/types.js +176 -0
  281. package/dist/factories/searxng/types.js.map +1 -0
  282. package/dist/factories/searxng/utils/settings-builder.d.ts +46 -0
  283. package/dist/factories/searxng/utils/settings-builder.d.ts.map +1 -0
  284. package/dist/factories/searxng/utils/settings-builder.js +52 -0
  285. package/dist/factories/searxng/utils/settings-builder.js.map +1 -0
  286. package/dist/factories/simple/config/secret.d.ts.map +1 -1
  287. package/dist/factories/simple/config/secret.js +28 -0
  288. package/dist/factories/simple/config/secret.js.map +1 -1
  289. package/dist/factories/valkey/compositions/index.d.ts +2 -0
  290. package/dist/factories/valkey/compositions/index.d.ts.map +1 -0
  291. package/dist/factories/valkey/compositions/index.js +2 -0
  292. package/dist/factories/valkey/compositions/index.js.map +1 -0
  293. package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts +41 -0
  294. package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts.map +1 -0
  295. package/dist/factories/valkey/compositions/valkey-bootstrap.js +105 -0
  296. package/dist/factories/valkey/compositions/valkey-bootstrap.js.map +1 -0
  297. package/dist/factories/valkey/index.d.ts +50 -0
  298. package/dist/factories/valkey/index.d.ts.map +1 -0
  299. package/dist/factories/valkey/index.js +50 -0
  300. package/dist/factories/valkey/index.js.map +1 -0
  301. package/dist/factories/valkey/resources/helm.d.ts +53 -0
  302. package/dist/factories/valkey/resources/helm.d.ts.map +1 -0
  303. package/dist/factories/valkey/resources/helm.js +82 -0
  304. package/dist/factories/valkey/resources/helm.js.map +1 -0
  305. package/dist/factories/valkey/resources/index.d.ts +3 -0
  306. package/dist/factories/valkey/resources/index.d.ts.map +1 -0
  307. package/dist/factories/valkey/resources/index.js +3 -0
  308. package/dist/factories/valkey/resources/index.js.map +1 -0
  309. package/dist/factories/valkey/resources/valkey.d.ts +46 -0
  310. package/dist/factories/valkey/resources/valkey.d.ts.map +1 -0
  311. package/dist/factories/valkey/resources/valkey.js +123 -0
  312. package/dist/factories/valkey/resources/valkey.js.map +1 -0
  313. package/dist/factories/valkey/types.d.ts +185 -0
  314. package/dist/factories/valkey/types.d.ts.map +1 -0
  315. package/dist/factories/valkey/types.js +204 -0
  316. package/dist/factories/valkey/types.js.map +1 -0
  317. package/dist/factories/valkey/utils/helm-values-mapper.d.ts +32 -0
  318. package/dist/factories/valkey/utils/helm-values-mapper.d.ts.map +1 -0
  319. package/dist/factories/valkey/utils/helm-values-mapper.js +58 -0
  320. package/dist/factories/valkey/utils/helm-values-mapper.js.map +1 -0
  321. package/dist/factories/valkey/utils/index.d.ts +2 -0
  322. package/dist/factories/valkey/utils/index.d.ts.map +1 -0
  323. package/dist/factories/valkey/utils/index.js +2 -0
  324. package/dist/factories/valkey/utils/index.js.map +1 -0
  325. package/dist/factories/webapp/compositions/index.d.ts +2 -0
  326. package/dist/factories/webapp/compositions/index.d.ts.map +1 -0
  327. package/dist/factories/webapp/compositions/index.js +2 -0
  328. package/dist/factories/webapp/compositions/index.js.map +1 -0
  329. package/dist/factories/webapp/compositions/web-app-with-processing.d.ts +97 -0
  330. package/dist/factories/webapp/compositions/web-app-with-processing.d.ts.map +1 -0
  331. package/dist/factories/webapp/compositions/web-app-with-processing.js +220 -0
  332. package/dist/factories/webapp/compositions/web-app-with-processing.js.map +1 -0
  333. package/dist/factories/webapp/index.d.ts +53 -0
  334. package/dist/factories/webapp/index.d.ts.map +1 -0
  335. package/dist/factories/webapp/index.js +53 -0
  336. package/dist/factories/webapp/index.js.map +1 -0
  337. package/dist/factories/webapp/types.d.ts +69 -0
  338. package/dist/factories/webapp/types.d.ts.map +1 -0
  339. package/dist/factories/webapp/types.js +92 -0
  340. package/dist/factories/webapp/types.js.map +1 -0
  341. package/dist/shared/brands.d.ts +16 -0
  342. package/dist/shared/brands.d.ts.map +1 -1
  343. package/dist/shared/brands.js +16 -0
  344. package/dist/shared/brands.js.map +1 -1
  345. package/package.json +29 -1
@@ -0,0 +1,2 @@
1
+ export { inngestBootstrap } from './inngest-bootstrap.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factories/inngest/compositions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,150 @@
1
+ /**
2
+ * Inngest Bootstrap Composition
3
+ *
4
+ * Deploys Inngest via HelmRepository and HelmRelease. Inngest is a workflow
5
+ * orchestration platform that requires PostgreSQL and Redis/Valkey.
6
+ *
7
+ * By default, the Helm chart bundles its own PostgreSQL and Redis. To use
8
+ * external databases (e.g., CNPG + Valkey from TypeKro), disable the bundled
9
+ * ones and pass connection URIs:
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * // 'kro' = KRO mode (continuous reconciliation)
14
+ * // 'direct' = Direct mode (immediate apply)
15
+ * const factory = inngestBootstrap.factory('kro', {
16
+ * namespace: 'inngest',
17
+ * waitForReady: true,
18
+ * });
19
+ *
20
+ * await factory.deploy({
21
+ * name: 'inngest',
22
+ * namespace: 'inngest',
23
+ * inngest: {
24
+ * eventKey: 'your-event-key',
25
+ * signingKey: 'your-signing-key',
26
+ * // Use external CNPG PostgreSQL + Valkey
27
+ * postgres: { uri: 'postgresql://inngest:password@my-db-rw:5432/inngest' },
28
+ * redis: { uri: 'redis://my-cache:6379' },
29
+ * },
30
+ * postgresql: { enabled: false }, // Disable bundled PG
31
+ * redis: { enabled: false }, // Disable bundled Redis
32
+ * });
33
+ * ```
34
+ */
35
+ export declare const inngestBootstrap: import("../../../index.js").CallableComposition<{
36
+ name: string;
37
+ inngest: {
38
+ eventKey: string;
39
+ signingKey: string;
40
+ postgres?: {
41
+ uri?: string;
42
+ };
43
+ redis?: {
44
+ uri?: string;
45
+ };
46
+ host?: string;
47
+ sdkUrl?: string[];
48
+ noUI?: boolean;
49
+ pollInterval?: number;
50
+ queueWorkers?: number;
51
+ logLevel?: string;
52
+ json?: boolean;
53
+ extraEnv?: {
54
+ name: string;
55
+ value: string;
56
+ }[];
57
+ };
58
+ namespace?: string;
59
+ version?: string;
60
+ replicaCount?: number;
61
+ resources?: {
62
+ requests?: {
63
+ cpu?: string;
64
+ memory?: string;
65
+ };
66
+ limits?: {
67
+ cpu?: string;
68
+ memory?: string;
69
+ };
70
+ };
71
+ postgresql?: {
72
+ enabled?: boolean;
73
+ auth?: {
74
+ database?: string;
75
+ username?: string;
76
+ password?: string;
77
+ };
78
+ persistence?: {
79
+ enabled?: boolean;
80
+ size?: string;
81
+ storageClass?: string;
82
+ };
83
+ resources?: {
84
+ requests?: {
85
+ cpu?: string;
86
+ memory?: string;
87
+ };
88
+ limits?: {
89
+ cpu?: string;
90
+ memory?: string;
91
+ };
92
+ };
93
+ };
94
+ redis?: {
95
+ enabled?: boolean;
96
+ persistence?: {
97
+ enabled?: boolean;
98
+ size?: string;
99
+ storageClass?: string;
100
+ };
101
+ resources?: {
102
+ requests?: {
103
+ cpu?: string;
104
+ memory?: string;
105
+ };
106
+ limits?: {
107
+ cpu?: string;
108
+ memory?: string;
109
+ };
110
+ };
111
+ };
112
+ ingress?: {
113
+ enabled?: boolean;
114
+ className?: string;
115
+ annotations?: Record<string, string>;
116
+ hosts?: {
117
+ host: string;
118
+ paths?: {
119
+ path?: string;
120
+ pathType?: string;
121
+ }[];
122
+ }[];
123
+ tls?: {
124
+ secretName?: string;
125
+ hosts?: string[];
126
+ }[];
127
+ };
128
+ keda?: {
129
+ enabled?: boolean;
130
+ minReplicas?: number;
131
+ maxReplicas?: number;
132
+ pollingInterval?: number;
133
+ cooldownPeriod?: number;
134
+ };
135
+ nodeSelector?: Record<string, string>;
136
+ tolerations?: {
137
+ key?: string;
138
+ operator?: "Exists" | "Equal";
139
+ value?: string;
140
+ effect?: "NoSchedule" | "PreferNoSchedule" | "NoExecute";
141
+ tolerationSeconds?: number;
142
+ }[];
143
+ customValues?: Record<string, unknown>;
144
+ }, {
145
+ phase: "Ready" | "Installing";
146
+ ready: boolean;
147
+ failed: boolean;
148
+ version?: string;
149
+ }>;
150
+ //# sourceMappingURL=inngest-bootstrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inngest-bootstrap.d.ts","sourceRoot":"","sources":["../../../../src/factories/inngest/compositions/inngest-bootstrap.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2E5B,CAAC"}
@@ -0,0 +1,90 @@
1
+ import { kubernetesComposition } from '../../../core/composition/imperative.js';
2
+ import { DEFAULT_FLUX_NAMESPACE } from '../../../core/config/defaults.js';
3
+ import { Cel } from '../../../core/references/cel.js';
4
+ import { namespace } from '../../kubernetes/core/namespace.js';
5
+ import { DEFAULT_INNGEST_REPO_NAME, DEFAULT_INNGEST_VERSION, inngestHelmRelease, inngestHelmRepository, } from '../resources/helm.js';
6
+ import { InngestBootstrapConfigSchema, InngestBootstrapStatusSchema, } from '../types.js';
7
+ import { mapInngestConfigToHelmValues } from '../utils/helm-values-mapper.js';
8
+ /**
9
+ * Inngest Bootstrap Composition
10
+ *
11
+ * Deploys Inngest via HelmRepository and HelmRelease. Inngest is a workflow
12
+ * orchestration platform that requires PostgreSQL and Redis/Valkey.
13
+ *
14
+ * By default, the Helm chart bundles its own PostgreSQL and Redis. To use
15
+ * external databases (e.g., CNPG + Valkey from TypeKro), disable the bundled
16
+ * ones and pass connection URIs:
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * // 'kro' = KRO mode (continuous reconciliation)
21
+ * // 'direct' = Direct mode (immediate apply)
22
+ * const factory = inngestBootstrap.factory('kro', {
23
+ * namespace: 'inngest',
24
+ * waitForReady: true,
25
+ * });
26
+ *
27
+ * await factory.deploy({
28
+ * name: 'inngest',
29
+ * namespace: 'inngest',
30
+ * inngest: {
31
+ * eventKey: 'your-event-key',
32
+ * signingKey: 'your-signing-key',
33
+ * // Use external CNPG PostgreSQL + Valkey
34
+ * postgres: { uri: 'postgresql://inngest:password@my-db-rw:5432/inngest' },
35
+ * redis: { uri: 'redis://my-cache:6379' },
36
+ * },
37
+ * postgresql: { enabled: false }, // Disable bundled PG
38
+ * redis: { enabled: false }, // Disable bundled Redis
39
+ * });
40
+ * ```
41
+ */
42
+ export const inngestBootstrap = kubernetesComposition({
43
+ name: 'inngest-bootstrap',
44
+ kind: 'InngestBootstrap',
45
+ spec: InngestBootstrapConfigSchema,
46
+ status: InngestBootstrapStatusSchema,
47
+ }, (spec) => {
48
+ const resolvedNamespace = spec.namespace || 'inngest';
49
+ const resolvedVersion = spec.version || DEFAULT_INNGEST_VERSION;
50
+ // Build the config for the mapper. Cannot spread the magic proxy directly —
51
+ // nested proxy objects don't survive Object.assign. Access fields explicitly
52
+ // and use Object.assign to skip undefined (exactOptionalPropertyTypes).
53
+ const mapperConfig = Object.assign({ name: spec.name, inngest: spec.inngest }, spec.replicaCount !== undefined && { replicaCount: spec.replicaCount }, spec.resources && { resources: spec.resources }, spec.postgresql && { postgresql: spec.postgresql }, spec.redis && { redis: spec.redis }, spec.ingress && { ingress: spec.ingress }, spec.keda && { keda: spec.keda }, spec.nodeSelector && { nodeSelector: spec.nodeSelector }, spec.tolerations && { tolerations: spec.tolerations }, spec.customValues && { customValues: spec.customValues });
54
+ const helmValues = mapInngestConfigToHelmValues(mapperConfig);
55
+ // Resources are _-prefixed — registered via side effects in the
56
+ // kubernetesComposition callback. The composition captures them automatically.
57
+ const _inngestNamespace = namespace({
58
+ metadata: {
59
+ name: resolvedNamespace,
60
+ labels: {
61
+ 'app.kubernetes.io/name': 'inngest',
62
+ 'app.kubernetes.io/instance': spec.name,
63
+ 'app.kubernetes.io/version': resolvedVersion,
64
+ 'app.kubernetes.io/managed-by': 'typekro',
65
+ },
66
+ },
67
+ id: 'inngestNamespace',
68
+ });
69
+ const _helmRepository = inngestHelmRepository({
70
+ name: DEFAULT_INNGEST_REPO_NAME,
71
+ namespace: DEFAULT_FLUX_NAMESPACE,
72
+ id: 'inngestHelmRepository',
73
+ });
74
+ const _helmRelease = inngestHelmRelease({
75
+ name: spec.name,
76
+ namespace: resolvedNamespace,
77
+ version: resolvedVersion,
78
+ values: helmValues,
79
+ repositoryName: DEFAULT_INNGEST_REPO_NAME,
80
+ id: 'inngestHelmRelease',
81
+ });
82
+ return {
83
+ ready: Cel.expr(_helmRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "True")'),
84
+ phase: Cel.expr(_helmRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "True") ? "Ready" : "Installing"'),
85
+ failed: Cel.expr(_helmRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "False")'),
86
+ // Static — reflects deploy-time version, not runtime.
87
+ version: resolvedVersion,
88
+ };
89
+ });
90
+ //# sourceMappingURL=inngest-bootstrap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inngest-bootstrap.js","sourceRoot":"","sources":["../../../../src/factories/inngest/compositions/inngest-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,M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I,CACd,YAAY,CAAC,MAAM,CAAC,UAAU,EAC9B,sDAAsD,CACvD;QACD,sDAAsD;QACtD,OAAO,EAAE,eAAe;KACzB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Inngest Integration for TypeKro
3
+ *
4
+ * Provides type-safe deployment of Inngest on Kubernetes via the
5
+ * official Helm chart. Inngest is a workflow orchestration platform
6
+ * with no CRDs — all configuration is through Helm values.
7
+ *
8
+ * ## Resources
9
+ * - `inngestHelmRepository()` — OCI Helm chart repository
10
+ * - `inngestHelmRelease()` — Inngest deployment via Helm
11
+ *
12
+ * ## Compositions
13
+ * - `inngestBootstrap` — Complete deployment (namespace + Helm repo + release)
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * import { inngestBootstrap } from 'typekro/inngest';
18
+ *
19
+ * const factory = inngestBootstrap.factory('kro', {
20
+ * namespace: 'inngest',
21
+ * });
22
+ *
23
+ * await factory.deploy({
24
+ * name: 'inngest',
25
+ * namespace: 'inngest',
26
+ * inngest: {
27
+ * eventKey: 'your-event-key',
28
+ * signingKey: 'your-signing-key',
29
+ * postgres: { uri: 'postgresql://...' },
30
+ * redis: { uri: 'redis://...' },
31
+ * },
32
+ * postgresql: { enabled: false },
33
+ * redis: { enabled: false },
34
+ * });
35
+ * ```
36
+ *
37
+ * @see https://github.com/inngest/inngest-helm
38
+ * @see https://www.inngest.com/docs/self-hosting
39
+ * @module
40
+ */
41
+ export * from './compositions/index.js';
42
+ export * from './resources/index.js';
43
+ export * from './types.js';
44
+ export * from './utils/index.js';
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factories/inngest/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Inngest Integration for TypeKro
3
+ *
4
+ * Provides type-safe deployment of Inngest on Kubernetes via the
5
+ * official Helm chart. Inngest is a workflow orchestration platform
6
+ * with no CRDs — all configuration is through Helm values.
7
+ *
8
+ * ## Resources
9
+ * - `inngestHelmRepository()` — OCI Helm chart repository
10
+ * - `inngestHelmRelease()` — Inngest deployment via Helm
11
+ *
12
+ * ## Compositions
13
+ * - `inngestBootstrap` — Complete deployment (namespace + Helm repo + release)
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * import { inngestBootstrap } from 'typekro/inngest';
18
+ *
19
+ * const factory = inngestBootstrap.factory('kro', {
20
+ * namespace: 'inngest',
21
+ * });
22
+ *
23
+ * await factory.deploy({
24
+ * name: 'inngest',
25
+ * namespace: 'inngest',
26
+ * inngest: {
27
+ * eventKey: 'your-event-key',
28
+ * signingKey: 'your-signing-key',
29
+ * postgres: { uri: 'postgresql://...' },
30
+ * redis: { uri: 'redis://...' },
31
+ * },
32
+ * postgresql: { enabled: false },
33
+ * redis: { enabled: false },
34
+ * });
35
+ * ```
36
+ *
37
+ * @see https://github.com/inngest/inngest-helm
38
+ * @see https://www.inngest.com/docs/self-hosting
39
+ * @module
40
+ */
41
+ export * from './compositions/index.js';
42
+ export * from './resources/index.js';
43
+ export * from './types.js';
44
+ export * from './utils/index.js';
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factories/inngest/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Inngest Helm Resource Factories
3
+ *
4
+ * Wrappers around the generic Helm factories with Inngest-specific defaults.
5
+ * The official Inngest Helm chart is published as an OCI artifact.
6
+ *
7
+ * @see https://github.com/inngest/inngest-helm
8
+ */
9
+ import type { Composable, Enhanced } from '../../../core/types/index.js';
10
+ import { type HelmRepositorySpec, type HelmRepositoryStatus } from '../../helm/helm-repository.js';
11
+ import type { HelmReleaseSpec, HelmReleaseStatus } from '../../helm/types.js';
12
+ import type { InngestHelmReleaseConfig, InngestHelmRepositoryConfig } from '../types.js';
13
+ /** Default OCI registry URL for the Inngest Helm chart. */
14
+ export declare const DEFAULT_INNGEST_REPO_URL = "oci://ghcr.io/inngest/inngest-helm";
15
+ /** Default chart version. */
16
+ export declare const DEFAULT_INNGEST_VERSION = "0.3.1";
17
+ /** Default HelmRepository resource name. */
18
+ export declare const DEFAULT_INNGEST_REPO_NAME = "inngest-repo";
19
+ /**
20
+ * Create a HelmRepository for the Inngest OCI chart registry.
21
+ *
22
+ * @param config - Repository configuration with Inngest-specific defaults
23
+ * @returns Enhanced HelmRepository resource
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const repo = inngestHelmRepository({
28
+ * name: 'inngest-repo',
29
+ * id: 'inngestHelmRepository',
30
+ * });
31
+ * ```
32
+ */
33
+ export declare function inngestHelmRepository(config: Composable<InngestHelmRepositoryConfig>): Enhanced<HelmRepositorySpec, HelmRepositoryStatus>;
34
+ /**
35
+ * Create a HelmRelease for the Inngest deployment.
36
+ *
37
+ * @param config - Release configuration with Inngest-specific defaults
38
+ * @returns Enhanced HelmRelease resource
39
+ *
40
+ * @example
41
+ * ```typescript
42
+ * const release = inngestHelmRelease({
43
+ * name: 'inngest',
44
+ * namespace: 'inngest',
45
+ * values: {
46
+ * inngest: { eventKey: 'abc123', signingKey: 'def456' },
47
+ * },
48
+ * id: 'inngestHelmRelease',
49
+ * });
50
+ * ```
51
+ */
52
+ export declare function inngestHelmRelease(config: Composable<InngestHelmReleaseConfig>): Enhanced<HelmReleaseSpec, HelmReleaseStatus>;
53
+ //# sourceMappingURL=helm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm.d.ts","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/helm.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAEzF,2DAA2D;AAC3D,eAAO,MAAM,wBAAwB,uCAAuC,CAAC;AAE7E,6BAA6B;AAC7B,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAE/C,4CAA4C;AAC5C,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,UAAU,CAAC,2BAA2B,CAAC,GAC9C,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAkBpD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,CAAC,wBAAwB,CAAC,GAC3C,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAsB9C"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Inngest Helm Resource Factories
3
+ *
4
+ * Wrappers around the generic Helm factories with Inngest-specific defaults.
5
+ * The official Inngest Helm chart is published as an OCI artifact.
6
+ *
7
+ * @see https://github.com/inngest/inngest-helm
8
+ */
9
+ import { DEFAULT_FLUX_NAMESPACE } from '../../../core/config/defaults.js';
10
+ import { setMetadataField } from '../../../core/metadata/resource-metadata.js';
11
+ import { createHelmRepositoryReadinessEvaluator, helmRepository, } from '../../helm/helm-repository.js';
12
+ import { createLabeledHelmReleaseEvaluator } from '../../helm/readiness-evaluators.js';
13
+ import { helmRelease } from '../../helm/helm-release.js';
14
+ /** Default OCI registry URL for the Inngest Helm chart. */
15
+ export const DEFAULT_INNGEST_REPO_URL = 'oci://ghcr.io/inngest/inngest-helm';
16
+ /** Default chart version. */
17
+ export const DEFAULT_INNGEST_VERSION = '0.3.1';
18
+ /** Default HelmRepository resource name. */
19
+ export const DEFAULT_INNGEST_REPO_NAME = 'inngest-repo';
20
+ /**
21
+ * Create a HelmRepository for the Inngest OCI chart registry.
22
+ *
23
+ * @param config - Repository configuration with Inngest-specific defaults
24
+ * @returns Enhanced HelmRepository resource
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * const repo = inngestHelmRepository({
29
+ * name: 'inngest-repo',
30
+ * id: 'inngestHelmRepository',
31
+ * });
32
+ * ```
33
+ */
34
+ export function inngestHelmRepository(config) {
35
+ const repo = helmRepository({
36
+ name: config.name || DEFAULT_INNGEST_REPO_NAME,
37
+ namespace: config.namespace || DEFAULT_FLUX_NAMESPACE,
38
+ url: config.url || DEFAULT_INNGEST_REPO_URL,
39
+ type: 'oci',
40
+ interval: config.interval || '5m',
41
+ ...(config.id && { id: config.id }),
42
+ }).withReadinessEvaluator(createHelmRepositoryReadinessEvaluator('Inngest'));
43
+ // HelmRepositories in flux-system are shared cluster-level resources.
44
+ // They should survive instance deletion — multiple compositions can
45
+ // reference the same repo.
46
+ setMetadataField(repo, 'lifecycle', 'shared');
47
+ return repo;
48
+ }
49
+ /**
50
+ * Create a HelmRelease for the Inngest deployment.
51
+ *
52
+ * @param config - Release configuration with Inngest-specific defaults
53
+ * @returns Enhanced HelmRelease resource
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * const release = inngestHelmRelease({
58
+ * name: 'inngest',
59
+ * namespace: 'inngest',
60
+ * values: {
61
+ * inngest: { eventKey: 'abc123', signingKey: 'def456' },
62
+ * },
63
+ * id: 'inngestHelmRelease',
64
+ * });
65
+ * ```
66
+ */
67
+ export function inngestHelmRelease(config) {
68
+ // Pass values directly to helmRelease — the core proxy system handles
69
+ // serialization of KubernetesRef and CelExpression objects correctly.
70
+ // Do NOT sanitize/strip proxy references here.
71
+ return helmRelease({
72
+ name: config.name,
73
+ namespace: config.namespace || 'inngest',
74
+ chart: {
75
+ repository: DEFAULT_INNGEST_REPO_URL,
76
+ name: 'inngest',
77
+ version: config.version || DEFAULT_INNGEST_VERSION,
78
+ },
79
+ sourceRef: {
80
+ name: config.repositoryName || DEFAULT_INNGEST_REPO_NAME,
81
+ namespace: DEFAULT_FLUX_NAMESPACE,
82
+ kind: 'HelmRepository',
83
+ },
84
+ values: config.values || {},
85
+ ...(config.id && { id: config.id }),
86
+ }).withReadinessEvaluator(createLabeledHelmReleaseEvaluator('Inngest'));
87
+ }
88
+ //# sourceMappingURL=helm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm.js","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/helm.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAE/E,OAAO,EACL,sCAAsC,EACtC,cAAc,GAGf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,2DAA2D;AAC3D,MAAM,CAAC,MAAM,wBAAwB,GAAG,oCAAoC,CAAC;AAE7E,6BAA6B;AAC7B,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;AAE/C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,qBAAqB,CACnC,MAA+C;IAE/C,MAAM,IAAI,GAAG,cAAc,CAAC;QAC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 +1,2 @@
1
+ export * from './helm.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './helm.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factories/inngest/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}