k8ts 0.13.2 → 0.14.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 (585) hide show
  1. package/dist/common-world.d.ts +3 -8
  2. package/dist/common-world.d.ts.map +1 -1
  3. package/dist/common-world.js +6 -9
  4. package/dist/common-world.js.map +1 -1
  5. package/dist/env/env.d.ts +7 -7
  6. package/dist/env/env.d.ts.map +1 -1
  7. package/dist/env/env.js +21 -23
  8. package/dist/env/env.js.map +1 -1
  9. package/dist/env/error.d.ts +5 -0
  10. package/dist/env/error.d.ts.map +1 -0
  11. package/dist/env/error.js +12 -0
  12. package/dist/env/error.js.map +1 -0
  13. package/dist/env/index.d.ts +1 -1
  14. package/dist/env/index.d.ts.map +1 -1
  15. package/dist/env/types.d.ts +5 -5
  16. package/dist/env/types.d.ts.map +1 -1
  17. package/dist/gvks/apps.d.ts +29 -0
  18. package/dist/gvks/apps.d.ts.map +1 -0
  19. package/dist/gvks/apps.js.map +1 -0
  20. package/dist/gvks/batch.d.ts +17 -0
  21. package/dist/gvks/batch.d.ts.map +1 -0
  22. package/dist/gvks/batch.js.map +1 -0
  23. package/dist/gvks/default.d.ts +73 -0
  24. package/dist/gvks/default.d.ts.map +1 -0
  25. package/dist/gvks/default.js.map +1 -0
  26. package/dist/gvks/gateway.d.ts +29 -0
  27. package/dist/gvks/gateway.d.ts.map +1 -0
  28. package/dist/gvks/gateway.js.map +1 -0
  29. package/dist/gvks/index.d.ts.map +1 -0
  30. package/dist/gvks/index.js.map +1 -0
  31. package/dist/gvks/metrics.d.ts +17 -0
  32. package/dist/gvks/metrics.d.ts.map +1 -0
  33. package/dist/gvks/metrics.js.map +1 -0
  34. package/dist/gvks/networking.d.ts +13 -0
  35. package/dist/gvks/networking.d.ts.map +1 -0
  36. package/dist/gvks/networking.js.map +1 -0
  37. package/dist/gvks/rbac.d.ts +25 -0
  38. package/dist/gvks/rbac.d.ts.map +1 -0
  39. package/dist/gvks/rbac.js.map +1 -0
  40. package/dist/gvks/storage.d.ts +17 -0
  41. package/dist/gvks/storage.d.ts.map +1 -0
  42. package/dist/gvks/storage.js.map +1 -0
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +2 -2
  46. package/dist/index.js.map +1 -1
  47. package/dist/kinds.d.ts +2 -0
  48. package/dist/kinds.d.ts.map +1 -0
  49. package/dist/kinds.js +18 -0
  50. package/dist/kinds.js.map +1 -0
  51. package/dist/origins/file/file.d.ts +13 -14
  52. package/dist/origins/file/file.d.ts.map +1 -1
  53. package/dist/origins/file/file.js +14 -17
  54. package/dist/origins/file/file.js.map +1 -1
  55. package/dist/origins/file/index.d.ts +0 -1
  56. package/dist/origins/file/index.d.ts.map +1 -1
  57. package/dist/origins/file/index.js +0 -1
  58. package/dist/origins/file/index.js.map +1 -1
  59. package/dist/origins/file/section.d.ts +11 -11
  60. package/dist/origins/file/section.d.ts.map +1 -1
  61. package/dist/origins/file/section.js +15 -13
  62. package/dist/origins/file/section.js.map +1 -1
  63. package/dist/origins/world.d.ts +6 -5
  64. package/dist/origins/world.d.ts.map +1 -1
  65. package/dist/origins/world.js +9 -5
  66. package/dist/origins/world.js.map +1 -1
  67. package/dist/resources/annotations.d.ts +2 -0
  68. package/dist/resources/annotations.d.ts.map +1 -0
  69. package/dist/resources/{persistent/block-mode.js → annotations.js} +1 -1
  70. package/dist/resources/annotations.js.map +1 -0
  71. package/dist/resources/config/configmap.d.ts +7 -7
  72. package/dist/resources/config/configmap.d.ts.map +1 -1
  73. package/dist/resources/config/configmap.js +7 -6
  74. package/dist/resources/config/configmap.js.map +1 -1
  75. package/dist/resources/config/index.d.ts +0 -1
  76. package/dist/resources/config/index.d.ts.map +1 -1
  77. package/dist/resources/config/index.js +0 -1
  78. package/dist/resources/config/index.js.map +1 -1
  79. package/dist/resources/config/resolver.d.ts +2 -2
  80. package/dist/resources/config/resolver.d.ts.map +1 -1
  81. package/dist/resources/config/resolver.js +4 -3
  82. package/dist/resources/config/resolver.js.map +1 -1
  83. package/dist/resources/config/secret.d.ts +7 -14
  84. package/dist/resources/config/secret.d.ts.map +1 -1
  85. package/dist/resources/config/secret.js +6 -4
  86. package/dist/resources/config/secret.js.map +1 -1
  87. package/dist/resources/errors.d.ts +7 -0
  88. package/dist/resources/errors.d.ts.map +1 -0
  89. package/dist/resources/errors.js +12 -0
  90. package/dist/resources/errors.js.map +1 -0
  91. package/dist/resources/hostpath.d.ts +1 -1
  92. package/dist/resources/hostpath.d.ts.map +1 -1
  93. package/dist/resources/index.d.ts +2 -5
  94. package/dist/resources/index.d.ts.map +1 -1
  95. package/dist/resources/index.js +2 -5
  96. package/dist/resources/index.js.map +1 -1
  97. package/dist/resources/namespace/namespace.d.ts +7 -9
  98. package/dist/resources/namespace/namespace.d.ts.map +1 -1
  99. package/dist/resources/namespace/namespace.js +7 -4
  100. package/dist/resources/namespace/namespace.js.map +1 -1
  101. package/dist/resources/network/http-route/http-route.d.ts +19 -0
  102. package/dist/resources/network/http-route/http-route.d.ts.map +1 -0
  103. package/dist/resources/network/http-route/http-route.js +51 -0
  104. package/dist/resources/network/http-route/http-route.js.map +1 -0
  105. package/dist/resources/network/http-route/index.d.ts.map +1 -0
  106. package/dist/resources/network/http-route/index.js.map +1 -0
  107. package/dist/resources/network/index.d.ts +3 -0
  108. package/dist/resources/network/index.d.ts.map +1 -0
  109. package/dist/resources/network/index.js +19 -0
  110. package/dist/resources/network/index.js.map +1 -0
  111. package/dist/resources/network/service/index.d.ts.map +1 -0
  112. package/dist/resources/network/service/index.js.map +1 -0
  113. package/dist/resources/network/service/service-port.d.ts +12 -0
  114. package/dist/resources/network/service/service-port.d.ts.map +1 -0
  115. package/dist/resources/{service → network/service}/service-port.js +5 -5
  116. package/dist/resources/network/service/service-port.js.map +1 -0
  117. package/dist/resources/network/service/service.d.ts +46 -0
  118. package/dist/resources/network/service/service.d.ts.map +1 -0
  119. package/dist/resources/{service → network/service}/service.js +34 -22
  120. package/dist/resources/network/service/service.js.map +1 -0
  121. package/dist/resources/network/service/utils.d.ts +5 -0
  122. package/dist/resources/network/service/utils.d.ts.map +1 -0
  123. package/dist/resources/network/service/utils.js +22 -0
  124. package/dist/resources/network/service/utils.js.map +1 -0
  125. package/dist/resources/persistent/access-mode.d.ts +4 -7
  126. package/dist/resources/persistent/access-mode.d.ts.map +1 -1
  127. package/dist/resources/persistent/access-mode.js +20 -24
  128. package/dist/resources/persistent/access-mode.js.map +1 -1
  129. package/dist/resources/persistent/claim/pvc.d.ts +17 -20
  130. package/dist/resources/persistent/claim/pvc.d.ts.map +1 -1
  131. package/dist/resources/persistent/claim/pvc.js +22 -28
  132. package/dist/resources/persistent/claim/pvc.js.map +1 -1
  133. package/dist/resources/persistent/index.d.ts +1 -1
  134. package/dist/resources/persistent/index.d.ts.map +1 -1
  135. package/dist/resources/persistent/index.js +1 -1
  136. package/dist/resources/persistent/index.js.map +1 -1
  137. package/dist/resources/persistent/volume/parse-backend.d.ts +1 -1
  138. package/dist/resources/persistent/volume/parse-backend.js +3 -3
  139. package/dist/resources/persistent/volume/parse-backend.js.map +1 -1
  140. package/dist/resources/persistent/volume/pv.d.ts +23 -25
  141. package/dist/resources/persistent/volume/pv.d.ts.map +1 -1
  142. package/dist/resources/persistent/volume/pv.js +23 -29
  143. package/dist/resources/persistent/volume/pv.js.map +1 -1
  144. package/dist/resources/persistent/volume-mode.d.ts +2 -0
  145. package/dist/resources/persistent/volume-mode.d.ts.map +1 -0
  146. package/dist/resources/persistent/volume-mode.js +3 -0
  147. package/dist/resources/persistent/volume-mode.js.map +1 -0
  148. package/dist/resources/rbac/cluster-role-binding.d.ts +12 -12
  149. package/dist/resources/rbac/cluster-role-binding.d.ts.map +1 -1
  150. package/dist/resources/rbac/cluster-role-binding.js +12 -10
  151. package/dist/resources/rbac/cluster-role-binding.js.map +1 -1
  152. package/dist/resources/rbac/cluster-role.d.ts +6 -23
  153. package/dist/resources/rbac/cluster-role.d.ts.map +1 -1
  154. package/dist/resources/rbac/cluster-role.js +9 -18
  155. package/dist/resources/rbac/cluster-role.js.map +1 -1
  156. package/dist/resources/rbac/role-props.d.ts +20 -0
  157. package/dist/resources/rbac/role-props.d.ts.map +1 -0
  158. package/dist/resources/rbac/role-props.js +17 -0
  159. package/dist/resources/rbac/role-props.js.map +1 -0
  160. package/dist/resources/rbac/service-account.d.ts +8 -8
  161. package/dist/resources/rbac/service-account.d.ts.map +1 -1
  162. package/dist/resources/rbac/service-account.js +8 -6
  163. package/dist/resources/rbac/service-account.js.map +1 -1
  164. package/dist/resources/workload/cronjob/index.d.ts +21 -0
  165. package/dist/resources/workload/cronjob/index.d.ts.map +1 -0
  166. package/dist/resources/workload/cronjob/index.js +98 -0
  167. package/dist/resources/workload/cronjob/index.js.map +1 -0
  168. package/dist/resources/workload/daemonset/daemonset.d.ts +16 -0
  169. package/dist/resources/workload/daemonset/daemonset.d.ts.map +1 -0
  170. package/dist/resources/workload/daemonset/daemonset.js +117 -0
  171. package/dist/resources/workload/daemonset/daemonset.js.map +1 -0
  172. package/dist/resources/workload/daemonset/index.d.ts +2 -0
  173. package/dist/resources/workload/daemonset/index.d.ts.map +1 -0
  174. package/dist/resources/workload/daemonset/index.js +18 -0
  175. package/dist/resources/workload/daemonset/index.js.map +1 -0
  176. package/dist/resources/workload/daemonset/props.d.ts +15 -0
  177. package/dist/resources/workload/daemonset/props.d.ts.map +1 -0
  178. package/dist/resources/{pod/container/mounts.js → workload/daemonset/props.js} +1 -1
  179. package/dist/resources/workload/daemonset/props.js.map +1 -0
  180. package/dist/resources/workload/deployment/deployment.d.ts +16 -0
  181. package/dist/resources/workload/deployment/deployment.d.ts.map +1 -0
  182. package/dist/resources/{deployment → workload/deployment}/deployment.js +39 -34
  183. package/dist/resources/workload/deployment/deployment.js.map +1 -0
  184. package/dist/resources/workload/deployment/index.d.ts.map +1 -0
  185. package/dist/resources/workload/deployment/index.js.map +1 -0
  186. package/dist/resources/workload/deployment/props.d.ts +17 -0
  187. package/dist/resources/workload/deployment/props.d.ts.map +1 -0
  188. package/dist/{_type/prefix$.js → resources/workload/deployment/props.js} +1 -1
  189. package/dist/resources/workload/deployment/props.js.map +1 -0
  190. package/dist/resources/workload/index.d.ts +7 -0
  191. package/dist/resources/workload/index.d.ts.map +1 -0
  192. package/dist/resources/{pod → workload}/index.js +6 -3
  193. package/dist/resources/workload/index.js.map +1 -0
  194. package/dist/resources/workload/pod/container/container.d.ts +47 -0
  195. package/dist/resources/workload/pod/container/container.d.ts.map +1 -0
  196. package/dist/resources/{pod → workload/pod}/container/container.js +46 -38
  197. package/dist/resources/workload/pod/container/container.js.map +1 -0
  198. package/dist/resources/workload/pod/container/index.d.ts +3 -0
  199. package/dist/resources/workload/pod/container/index.d.ts.map +1 -0
  200. package/dist/resources/{pod → workload/pod}/container/index.js +1 -0
  201. package/dist/resources/workload/pod/container/index.js.map +1 -0
  202. package/dist/resources/workload/pod/container/mounts/device.d.ts +17 -0
  203. package/dist/resources/workload/pod/container/mounts/device.d.ts.map +1 -0
  204. package/dist/resources/workload/pod/container/mounts/device.js +29 -0
  205. package/dist/resources/workload/pod/container/mounts/device.js.map +1 -0
  206. package/dist/resources/workload/pod/container/mounts/volume.d.ts +21 -0
  207. package/dist/resources/workload/pod/container/mounts/volume.d.ts.map +1 -0
  208. package/dist/resources/{pod → workload/pod}/container/mounts/volume.js +9 -7
  209. package/dist/resources/workload/pod/container/mounts/volume.js.map +1 -0
  210. package/dist/resources/workload/pod/container/ref.d.ts +6 -0
  211. package/dist/resources/workload/pod/container/ref.d.ts.map +1 -0
  212. package/dist/{runner/exporter/meta.js → resources/workload/pod/container/ref.js} +1 -1
  213. package/dist/resources/workload/pod/container/ref.js.map +1 -0
  214. package/dist/resources/workload/pod/container/scope.d.ts +25 -0
  215. package/dist/resources/workload/pod/container/scope.d.ts.map +1 -0
  216. package/dist/resources/workload/pod/container/scope.js +50 -0
  217. package/dist/resources/workload/pod/container/scope.js.map +1 -0
  218. package/dist/resources/workload/pod/container/utils.d.ts +5 -0
  219. package/dist/resources/workload/pod/container/utils.d.ts.map +1 -0
  220. package/dist/resources/workload/pod/container/utils.js +18 -0
  221. package/dist/resources/workload/pod/container/utils.js.map +1 -0
  222. package/dist/resources/workload/pod/pod.d.ts +27 -0
  223. package/dist/resources/workload/pod/pod.d.ts.map +1 -0
  224. package/dist/resources/workload/pod/pod.js +78 -0
  225. package/dist/resources/workload/pod/pod.js.map +1 -0
  226. package/dist/resources/workload/pod/volume/devices.d.ts +24 -0
  227. package/dist/resources/workload/pod/volume/devices.d.ts.map +1 -0
  228. package/dist/resources/{pod → workload/pod}/volume/devices.js +11 -9
  229. package/dist/resources/workload/pod/volume/devices.js.map +1 -0
  230. package/dist/resources/workload/pod/volume/index.d.ts +3 -0
  231. package/dist/resources/workload/pod/volume/index.d.ts.map +1 -0
  232. package/dist/resources/workload/pod/volume/index.js +8 -0
  233. package/dist/resources/workload/pod/volume/index.js.map +1 -0
  234. package/dist/resources/workload/pod/volume/volumes.d.ts +74 -0
  235. package/dist/resources/workload/pod/volume/volumes.d.ts.map +1 -0
  236. package/dist/resources/workload/pod/volume/volumes.js +111 -0
  237. package/dist/resources/workload/pod/volume/volumes.js.map +1 -0
  238. package/dist/resources/workload/statefulset/index.d.ts +2 -0
  239. package/dist/resources/workload/statefulset/index.d.ts.map +1 -0
  240. package/dist/resources/workload/statefulset/index.js +18 -0
  241. package/dist/resources/workload/statefulset/index.js.map +1 -0
  242. package/dist/resources/workload/statefulset/props.d.ts +24 -0
  243. package/dist/resources/workload/statefulset/props.d.ts.map +1 -0
  244. package/dist/{runner/proverbs.js → resources/workload/statefulset/props.js} +1 -1
  245. package/dist/resources/workload/statefulset/props.js.map +1 -0
  246. package/dist/resources/workload/statefulset/scope.d.ts +13 -0
  247. package/dist/resources/workload/statefulset/scope.d.ts.map +1 -0
  248. package/dist/resources/workload/statefulset/scope.js +26 -0
  249. package/dist/resources/workload/statefulset/scope.js.map +1 -0
  250. package/dist/resources/workload/statefulset/statefulset.d.ts +22 -0
  251. package/dist/resources/workload/statefulset/statefulset.d.ts.map +1 -0
  252. package/dist/resources/workload/statefulset/statefulset.js +110 -0
  253. package/dist/resources/workload/statefulset/statefulset.js.map +1 -0
  254. package/dist/resources/workload/util.d.ts +4 -0
  255. package/dist/resources/workload/util.d.ts.map +1 -0
  256. package/dist/resources/workload/util.js +10 -0
  257. package/dist/resources/workload/util.js.map +1 -0
  258. package/dist/resources/workload/workload-ref.d.ts +5 -0
  259. package/dist/resources/workload/workload-ref.d.ts.map +1 -0
  260. package/dist/resources/workload/workload-ref.js +3 -0
  261. package/dist/resources/workload/workload-ref.js.map +1 -0
  262. package/dist/runner/{exporter → engine}/assembler.d.ts +15 -14
  263. package/dist/runner/engine/assembler.d.ts.map +1 -0
  264. package/dist/runner/{exporter → engine}/assembler.js +63 -40
  265. package/dist/runner/engine/assembler.js.map +1 -0
  266. package/dist/runner/engine/index.d.ts +3 -0
  267. package/dist/runner/engine/index.d.ts.map +1 -0
  268. package/dist/runner/{exporter → engine}/index.js +1 -1
  269. package/dist/runner/engine/index.js.map +1 -0
  270. package/dist/runner/engine/loader.d.ts +19 -0
  271. package/dist/runner/engine/loader.d.ts.map +1 -0
  272. package/dist/runner/{exporter → engine}/loader.js +18 -19
  273. package/dist/runner/engine/loader.js.map +1 -0
  274. package/dist/runner/{exporter → engine}/manifester.d.ts +8 -8
  275. package/dist/runner/engine/manifester.d.ts.map +1 -0
  276. package/dist/runner/{exporter → engine}/manifester.js +4 -25
  277. package/dist/runner/engine/manifester.js.map +1 -0
  278. package/dist/runner/{exporter → engine}/saver.d.ts +5 -4
  279. package/dist/runner/engine/saver.d.ts.map +1 -0
  280. package/dist/runner/{exporter → engine}/saver.js +5 -10
  281. package/dist/runner/engine/saver.js.map +1 -0
  282. package/dist/runner/engine/serializer.d.ts +20 -0
  283. package/dist/runner/engine/serializer.d.ts.map +1 -0
  284. package/dist/runner/{exporter → engine}/serializer.js +8 -17
  285. package/dist/runner/engine/serializer.js.map +1 -0
  286. package/dist/runner/{exporter → engine}/stage.d.ts +2 -2
  287. package/dist/runner/engine/stage.d.ts.map +1 -0
  288. package/dist/runner/{exporter → engine}/stage.js +10 -10
  289. package/dist/runner/engine/stage.js.map +1 -0
  290. package/dist/runner/error.d.ts +7 -0
  291. package/dist/runner/error.d.ts.map +1 -0
  292. package/dist/runner/error.js +12 -0
  293. package/dist/runner/error.js.map +1 -0
  294. package/dist/runner/index.d.ts +1 -1
  295. package/dist/runner/index.d.ts.map +1 -1
  296. package/dist/runner/index.js +3 -15
  297. package/dist/runner/index.js.map +1 -1
  298. package/dist/runner/runner.d.ts +8 -6
  299. package/dist/runner/runner.d.ts.map +1 -1
  300. package/dist/runner/runner.js +27 -22
  301. package/dist/runner/runner.js.map +1 -1
  302. package/dist/runner/viz/progress-shower.d.ts +11 -0
  303. package/dist/runner/viz/progress-shower.d.ts.map +1 -0
  304. package/dist/runner/viz/progress-shower.js +63 -0
  305. package/dist/runner/viz/progress-shower.js.map +1 -0
  306. package/dist/runner/{summarizer.d.ts → viz/summarizer.d.ts} +5 -5
  307. package/dist/runner/viz/summarizer.d.ts.map +1 -0
  308. package/dist/runner/{summarizer.js → viz/summarizer.js} +9 -10
  309. package/dist/runner/viz/summarizer.js.map +1 -0
  310. package/dist/util/merge.d.ts +2 -0
  311. package/dist/util/merge.d.ts.map +1 -0
  312. package/dist/util/merge.js +3 -0
  313. package/dist/util/merge.js.map +1 -0
  314. package/package.json +12 -12
  315. package/src/common-world.ts +10 -11
  316. package/src/env/env.ts +33 -35
  317. package/src/env/error.ts +7 -0
  318. package/src/env/index.ts +1 -1
  319. package/src/env/types.ts +5 -5
  320. package/src/index.ts +2 -2
  321. package/src/kinds.ts +1 -0
  322. package/src/origins/file/file.ts +25 -33
  323. package/src/origins/file/index.ts +0 -1
  324. package/src/origins/file/section.ts +17 -16
  325. package/src/origins/world.ts +19 -13
  326. package/src/resources/config/configmap.ts +14 -13
  327. package/src/resources/config/index.ts +0 -1
  328. package/src/resources/config/resolver.ts +8 -5
  329. package/src/resources/config/secret.ts +11 -7
  330. package/src/resources/errors.ts +7 -0
  331. package/src/resources/hostpath.ts +1 -1
  332. package/src/resources/index.ts +2 -5
  333. package/src/resources/namespace/namespace.ts +11 -8
  334. package/src/resources/network/http-route/http-route.ts +62 -0
  335. package/src/resources/network/index.ts +2 -0
  336. package/src/resources/network/service/service-port.ts +17 -0
  337. package/src/resources/network/service/service.ts +135 -0
  338. package/src/resources/network/service/utils.ts +20 -0
  339. package/src/resources/persistent/access-mode.ts +20 -24
  340. package/src/resources/persistent/claim/pvc.ts +41 -43
  341. package/src/resources/persistent/index.ts +1 -1
  342. package/src/resources/persistent/volume/parse-backend.ts +3 -3
  343. package/src/resources/persistent/volume/pv.ts +55 -51
  344. package/src/resources/persistent/volume-mode.ts +1 -0
  345. package/src/resources/rbac/cluster-role-binding.ts +19 -17
  346. package/src/resources/rbac/cluster-role.ts +13 -62
  347. package/src/resources/rbac/role-props.ts +26 -0
  348. package/src/resources/rbac/service-account.ts +14 -12
  349. package/src/resources/workload/cronjob/index.ts +74 -0
  350. package/src/resources/workload/daemonset/daemonset.ts +82 -0
  351. package/src/resources/workload/daemonset/index.ts +1 -0
  352. package/src/resources/workload/daemonset/props.ts +19 -0
  353. package/src/resources/workload/deployment/deployment.ts +79 -0
  354. package/src/resources/workload/deployment/props.ts +19 -0
  355. package/src/resources/workload/index.ts +6 -0
  356. package/src/resources/workload/pod/container/container.ts +227 -0
  357. package/src/resources/{pod → workload/pod}/container/index.ts +1 -0
  358. package/src/resources/workload/pod/container/mounts/device.ts +41 -0
  359. package/src/resources/workload/pod/container/mounts/volume.ts +46 -0
  360. package/src/resources/workload/pod/container/ref.ts +6 -0
  361. package/src/resources/workload/pod/container/scope.ts +83 -0
  362. package/src/resources/workload/pod/container/utils.ts +16 -0
  363. package/src/resources/workload/pod/pod.ts +96 -0
  364. package/src/resources/workload/pod/volume/devices.ts +56 -0
  365. package/src/resources/workload/pod/volume/index.ts +2 -0
  366. package/src/resources/workload/pod/volume/volumes.ts +203 -0
  367. package/src/resources/workload/statefulset/index.ts +1 -0
  368. package/src/resources/workload/statefulset/props.ts +34 -0
  369. package/src/resources/workload/statefulset/scope.ts +25 -0
  370. package/src/resources/workload/statefulset/statefulset.ts +137 -0
  371. package/src/resources/workload/util.ts +8 -0
  372. package/src/resources/workload/workload-ref.ts +5 -0
  373. package/src/runner/{exporter → engine}/assembler.ts +83 -54
  374. package/src/runner/engine/index.ts +2 -0
  375. package/src/runner/{exporter → engine}/loader.ts +32 -29
  376. package/src/runner/{exporter → engine}/manifester.ts +20 -32
  377. package/src/runner/{exporter → engine}/saver.ts +8 -9
  378. package/src/runner/{exporter → engine}/serializer.ts +21 -20
  379. package/src/runner/{exporter → engine}/stage.ts +5 -5
  380. package/src/runner/error.ts +7 -0
  381. package/src/runner/index.ts +1 -1
  382. package/src/runner/runner.ts +44 -29
  383. package/src/runner/{exporter → viz}/progress-shower.ts +21 -21
  384. package/src/runner/{summarizer.ts → viz/summarizer.ts} +21 -21
  385. package/dist/_type/prefix$.d.ts +0 -4
  386. package/dist/_type/prefix$.d.ts.map +0 -1
  387. package/dist/_type/prefix$.js.map +0 -1
  388. package/dist/kinds/apps.d.ts +0 -29
  389. package/dist/kinds/apps.d.ts.map +0 -1
  390. package/dist/kinds/apps.js.map +0 -1
  391. package/dist/kinds/batch.d.ts +0 -17
  392. package/dist/kinds/batch.d.ts.map +0 -1
  393. package/dist/kinds/batch.js.map +0 -1
  394. package/dist/kinds/default.d.ts +0 -73
  395. package/dist/kinds/default.d.ts.map +0 -1
  396. package/dist/kinds/default.js.map +0 -1
  397. package/dist/kinds/gateway.d.ts +0 -29
  398. package/dist/kinds/gateway.d.ts.map +0 -1
  399. package/dist/kinds/gateway.js.map +0 -1
  400. package/dist/kinds/index.d.ts.map +0 -1
  401. package/dist/kinds/index.js.map +0 -1
  402. package/dist/kinds/metrics.d.ts +0 -17
  403. package/dist/kinds/metrics.d.ts.map +0 -1
  404. package/dist/kinds/metrics.js.map +0 -1
  405. package/dist/kinds/networking.d.ts +0 -13
  406. package/dist/kinds/networking.d.ts.map +0 -1
  407. package/dist/kinds/networking.js.map +0 -1
  408. package/dist/kinds/rbac.d.ts +0 -25
  409. package/dist/kinds/rbac.d.ts.map +0 -1
  410. package/dist/kinds/rbac.js.map +0 -1
  411. package/dist/kinds/storage.d.ts +0 -17
  412. package/dist/kinds/storage.d.ts.map +0 -1
  413. package/dist/kinds/storage.js.map +0 -1
  414. package/dist/origins/file/modifier.d.ts +0 -10
  415. package/dist/origins/file/modifier.d.ts.map +0 -1
  416. package/dist/origins/file/modifier.js +0 -21
  417. package/dist/origins/file/modifier.js.map +0 -1
  418. package/dist/resources/config/config-keys-of.d.ts +0 -2
  419. package/dist/resources/config/config-keys-of.d.ts.map +0 -1
  420. package/dist/resources/config/config-keys-of.js +0 -3
  421. package/dist/resources/config/config-keys-of.js.map +0 -1
  422. package/dist/resources/config/key-ref.d.ts +0 -7
  423. package/dist/resources/config/key-ref.d.ts.map +0 -1
  424. package/dist/resources/config/key-ref.js +0 -13
  425. package/dist/resources/config/key-ref.js.map +0 -1
  426. package/dist/resources/cronjob/index.d.ts +0 -20
  427. package/dist/resources/cronjob/index.d.ts.map +0 -1
  428. package/dist/resources/cronjob/index.js +0 -37
  429. package/dist/resources/cronjob/index.js.map +0 -1
  430. package/dist/resources/deployment/deployment.d.ts +0 -30
  431. package/dist/resources/deployment/deployment.d.ts.map +0 -1
  432. package/dist/resources/deployment/deployment.js.map +0 -1
  433. package/dist/resources/deployment/index.d.ts.map +0 -1
  434. package/dist/resources/deployment/index.js.map +0 -1
  435. package/dist/resources/http-route/http-route.d.ts +0 -21
  436. package/dist/resources/http-route/http-route.d.ts.map +0 -1
  437. package/dist/resources/http-route/http-route.js +0 -45
  438. package/dist/resources/http-route/http-route.js.map +0 -1
  439. package/dist/resources/http-route/index.d.ts.map +0 -1
  440. package/dist/resources/http-route/index.js.map +0 -1
  441. package/dist/resources/persistent/block-mode.d.ts +0 -2
  442. package/dist/resources/persistent/block-mode.d.ts.map +0 -1
  443. package/dist/resources/persistent/block-mode.js.map +0 -1
  444. package/dist/resources/pod/container/container.d.ts +0 -47
  445. package/dist/resources/pod/container/container.d.ts.map +0 -1
  446. package/dist/resources/pod/container/container.js.map +0 -1
  447. package/dist/resources/pod/container/index.d.ts +0 -2
  448. package/dist/resources/pod/container/index.d.ts.map +0 -1
  449. package/dist/resources/pod/container/index.js.map +0 -1
  450. package/dist/resources/pod/container/mounts/device.d.ts +0 -17
  451. package/dist/resources/pod/container/mounts/device.d.ts.map +0 -1
  452. package/dist/resources/pod/container/mounts/device.js +0 -27
  453. package/dist/resources/pod/container/mounts/device.js.map +0 -1
  454. package/dist/resources/pod/container/mounts/volume.d.ts +0 -21
  455. package/dist/resources/pod/container/mounts/volume.d.ts.map +0 -1
  456. package/dist/resources/pod/container/mounts/volume.js.map +0 -1
  457. package/dist/resources/pod/container/mounts.d.ts +0 -3
  458. package/dist/resources/pod/container/mounts.d.ts.map +0 -1
  459. package/dist/resources/pod/container/mounts.js.map +0 -1
  460. package/dist/resources/pod/index.d.ts +0 -4
  461. package/dist/resources/pod/index.d.ts.map +0 -1
  462. package/dist/resources/pod/index.js.map +0 -1
  463. package/dist/resources/pod/pod-template.d.ts +0 -54
  464. package/dist/resources/pod/pod-template.d.ts.map +0 -1
  465. package/dist/resources/pod/pod-template.js +0 -119
  466. package/dist/resources/pod/pod-template.js.map +0 -1
  467. package/dist/resources/pod/volume/devices.d.ts +0 -24
  468. package/dist/resources/pod/volume/devices.d.ts.map +0 -1
  469. package/dist/resources/pod/volume/devices.js.map +0 -1
  470. package/dist/resources/pod/volume/index.d.ts +0 -3
  471. package/dist/resources/pod/volume/index.d.ts.map +0 -1
  472. package/dist/resources/pod/volume/index.js +0 -8
  473. package/dist/resources/pod/volume/index.js.map +0 -1
  474. package/dist/resources/pod/volume/volumes.d.ts +0 -66
  475. package/dist/resources/pod/volume/volumes.d.ts.map +0 -1
  476. package/dist/resources/pod/volume/volumes.js +0 -97
  477. package/dist/resources/pod/volume/volumes.js.map +0 -1
  478. package/dist/resources/service/index.d.ts.map +0 -1
  479. package/dist/resources/service/index.js.map +0 -1
  480. package/dist/resources/service/service-port.d.ts +0 -12
  481. package/dist/resources/service/service-port.d.ts.map +0 -1
  482. package/dist/resources/service/service-port.js.map +0 -1
  483. package/dist/resources/service/service.d.ts +0 -39
  484. package/dist/resources/service/service.d.ts.map +0 -1
  485. package/dist/resources/service/service.js.map +0 -1
  486. package/dist/resources/utils/adapters.d.ts +0 -7
  487. package/dist/resources/utils/adapters.d.ts.map +0 -1
  488. package/dist/resources/utils/adapters.js +0 -32
  489. package/dist/resources/utils/adapters.js.map +0 -1
  490. package/dist/runner/exporter/assembler.d.ts.map +0 -1
  491. package/dist/runner/exporter/assembler.js.map +0 -1
  492. package/dist/runner/exporter/index.d.ts +0 -3
  493. package/dist/runner/exporter/index.d.ts.map +0 -1
  494. package/dist/runner/exporter/index.js.map +0 -1
  495. package/dist/runner/exporter/loader.d.ts +0 -18
  496. package/dist/runner/exporter/loader.d.ts.map +0 -1
  497. package/dist/runner/exporter/loader.js.map +0 -1
  498. package/dist/runner/exporter/manifester.d.ts.map +0 -1
  499. package/dist/runner/exporter/manifester.js.map +0 -1
  500. package/dist/runner/exporter/meta.d.ts +0 -2
  501. package/dist/runner/exporter/meta.d.ts.map +0 -1
  502. package/dist/runner/exporter/meta.js.map +0 -1
  503. package/dist/runner/exporter/progress-shower.d.ts +0 -11
  504. package/dist/runner/exporter/progress-shower.d.ts.map +0 -1
  505. package/dist/runner/exporter/progress-shower.js +0 -69
  506. package/dist/runner/exporter/progress-shower.js.map +0 -1
  507. package/dist/runner/exporter/saver.d.ts.map +0 -1
  508. package/dist/runner/exporter/saver.js.map +0 -1
  509. package/dist/runner/exporter/serializer.d.ts +0 -19
  510. package/dist/runner/exporter/serializer.d.ts.map +0 -1
  511. package/dist/runner/exporter/serializer.js.map +0 -1
  512. package/dist/runner/exporter/stage.d.ts.map +0 -1
  513. package/dist/runner/exporter/stage.js.map +0 -1
  514. package/dist/runner/exporter/validator.d.ts +0 -16
  515. package/dist/runner/exporter/validator.d.ts.map +0 -1
  516. package/dist/runner/exporter/validator.js +0 -12
  517. package/dist/runner/exporter/validator.js.map +0 -1
  518. package/dist/runner/paths.d.ts +0 -2
  519. package/dist/runner/paths.d.ts.map +0 -1
  520. package/dist/runner/paths.js +0 -5
  521. package/dist/runner/paths.js.map +0 -1
  522. package/dist/runner/proverbs.d.ts +0 -2
  523. package/dist/runner/proverbs.d.ts.map +0 -1
  524. package/dist/runner/proverbs.js.map +0 -1
  525. package/dist/runner/silly/proverbs.d.ts +0 -7
  526. package/dist/runner/silly/proverbs.d.ts.map +0 -1
  527. package/dist/runner/silly/proverbs.js +0 -21
  528. package/dist/runner/silly/proverbs.js.map +0 -1
  529. package/dist/runner/summarizer.d.ts.map +0 -1
  530. package/dist/runner/summarizer.js.map +0 -1
  531. package/proverbs.txt +0 -20
  532. package/src/_type/prefix$.ts +0 -3
  533. package/src/origins/file/modifier.ts +0 -21
  534. package/src/resources/config/key-ref.ts +0 -8
  535. package/src/resources/cronjob/index.ts +0 -50
  536. package/src/resources/deployment/deployment.ts +0 -95
  537. package/src/resources/http-route/http-route.ts +0 -60
  538. package/src/resources/persistent/block-mode.ts +0 -1
  539. package/src/resources/pod/container/container.ts +0 -215
  540. package/src/resources/pod/container/mounts/device.ts +0 -33
  541. package/src/resources/pod/container/mounts/volume.ts +0 -38
  542. package/src/resources/pod/container/mounts.ts +0 -2
  543. package/src/resources/pod/index.ts +0 -3
  544. package/src/resources/pod/pod-template.ts +0 -166
  545. package/src/resources/pod/volume/devices.ts +0 -55
  546. package/src/resources/pod/volume/index.ts +0 -2
  547. package/src/resources/pod/volume/volumes.ts +0 -170
  548. package/src/resources/service/service-port.ts +0 -17
  549. package/src/resources/service/service.ts +0 -101
  550. package/src/resources/utils/adapters.ts +0 -29
  551. package/src/runner/exporter/index.ts +0 -2
  552. package/src/runner/exporter/validator.ts +0 -13
  553. package/src/runner/paths.ts +0 -1
  554. package/src/runner/proverbs.ts +0 -0
  555. package/src/runner/silly/proverbs.ts +0 -14
  556. /package/dist/{kinds → gvks}/apps.js +0 -0
  557. /package/dist/{kinds → gvks}/batch.js +0 -0
  558. /package/dist/{kinds → gvks}/default.js +0 -0
  559. /package/dist/{kinds → gvks}/gateway.js +0 -0
  560. /package/dist/{kinds → gvks}/index.d.ts +0 -0
  561. /package/dist/{kinds → gvks}/index.js +0 -0
  562. /package/dist/{kinds → gvks}/metrics.js +0 -0
  563. /package/dist/{kinds → gvks}/networking.js +0 -0
  564. /package/dist/{kinds → gvks}/rbac.js +0 -0
  565. /package/dist/{kinds → gvks}/storage.js +0 -0
  566. /package/dist/resources/{http-route → network/http-route}/index.d.ts +0 -0
  567. /package/dist/resources/{http-route → network/http-route}/index.js +0 -0
  568. /package/dist/resources/{service → network/service}/index.d.ts +0 -0
  569. /package/dist/resources/{service → network/service}/index.js +0 -0
  570. /package/dist/resources/{deployment → workload/deployment}/index.d.ts +0 -0
  571. /package/dist/resources/{deployment → workload/deployment}/index.js +0 -0
  572. /package/src/{kinds → gvks}/apps.ts +0 -0
  573. /package/src/{kinds → gvks}/batch.ts +0 -0
  574. /package/src/{kinds → gvks}/default.ts +0 -0
  575. /package/src/{kinds → gvks}/gateway.ts +0 -0
  576. /package/src/{kinds → gvks}/index.ts +0 -0
  577. /package/src/{kinds → gvks}/metrics.ts +0 -0
  578. /package/src/{kinds → gvks}/networking.ts +0 -0
  579. /package/src/{kinds → gvks}/rbac.ts +0 -0
  580. /package/src/{kinds → gvks}/storage.ts +0 -0
  581. /package/src/resources/{config/config-keys-of.ts → annotations.ts} +0 -0
  582. /package/src/resources/{http-route → network/http-route}/index.ts +0 -0
  583. /package/src/resources/{service → network/service}/index.ts +0 -0
  584. /package/src/resources/{deployment → workload/deployment}/index.ts +0 -0
  585. /package/src/{runner/exporter/meta.ts → util/merge.ts} +0 -0
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,+CAAsC;AAA7B,qGAAA,KAAK,OAAA;AACd,4CAAyB;AACzB,8CAA2B;AAC3B,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,+CAA0C;AAAjC,yGAAA,SAAS,OAAA;AAClB,4CAAyB;AACzB,8CAA2B;AAC3B,2CAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from "./gvks/index";
2
+ //# sourceMappingURL=kinds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../src/kinds.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
package/dist/kinds.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./gvks/index"), exports);
18
+ //# sourceMappingURL=kinds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kinds.js","sourceRoot":"","sources":["../src/kinds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
@@ -1,24 +1,23 @@
1
- import { Origin_Exporter, Rsc_FwRef_Exports, type Origin_Entity, type Origin_Props, type Rsc_Ctor_Of, type Rsc_Ref } from "@k8ts/instruments";
1
+ import { ExporterOrigin, ForwardExports, type Origin_Props, type ResourceRef, type ResourceRef_Constructor } from "@k8ts/instruments";
2
2
  import type { v1 } from "../../kinds";
3
- import { type File_Section_Props } from "./section";
3
+ import { type K8tsFile_Section_Props } from "./section";
4
4
  export type File_sName = `${string}.yaml`;
5
- export interface File_Props<Kinds extends Rsc_Ctor_Of[] = Rsc_Ctor_Of[], Exports extends Kinds[number]["prototype"] = Kinds[number]["prototype"]> extends Origin_Props<Kinds[number]> {
5
+ export interface K8tsFile_Props<Kinds extends ResourceRef_Constructor[] = ResourceRef_Constructor[], Exports extends Kinds[number]["prototype"] = Kinds[number]["prototype"]> extends Origin_Props<Kinds[number]> {
6
6
  kinds?: Kinds;
7
- namespace?: Rsc_Ref<v1.Namespace._>;
8
- FILE(FILE: Origin_File_Scope<Kinds>): Iterable<Exports | Rsc_FwRef_Exports<Exports>>;
7
+ namespace?: ResourceRef<v1.Namespace._>;
8
+ resources$($file: K8tsFile_Scope<Kinds>): Iterable<Exports | ForwardExports<Exports>>;
9
9
  }
10
- export declare class Origin_File extends Origin_Exporter<File_Props> {
10
+ export declare class K8tsFile extends ExporterOrigin<K8tsFile_Props> {
11
11
  #private;
12
12
  get kind(): string;
13
- protected __exports__(): import("doddle").Seq<Rsc_Ref>;
13
+ get namespace(): string | undefined;
14
+ protected __exports__(): import("doddle").Seq<ResourceRef>;
14
15
  }
15
- export declare function File<Kinds extends Rsc_Ctor_Of[] = Rsc_Ctor_Of[], Exports extends Kinds[number]["prototype"] = Kinds[number]["prototype"]>(parent: Origin_Entity, name: File_sName, props: File_Props<Kinds, Exports>): Rsc_FwRef_Exports<Exports>;
16
- export declare class Origin_File_Scope<Kinds extends Rsc_Ctor_Of[]> {
16
+ export declare class K8tsFile_Scope<Kinds extends ResourceRef_Constructor[]> {
17
17
  private readonly _file;
18
- constructor(_file: Origin_File);
19
- get __entity__(): Origin_File;
20
- on: Origin_File["on"];
21
- Section<Exported extends Kinds[number]["prototype"] = Kinds[number]["prototype"]>(name: string, props: File_Section_Props<Exported>): Rsc_FwRef_Exports<Exported>;
18
+ constructor(_file: K8tsFile);
19
+ get __entity__(): K8tsFile;
20
+ on: K8tsFile["on"];
21
+ Section<Exported extends Kinds[number]["prototype"] = Kinds[number]["prototype"]>(name: string, props: K8tsFile_Section_Props<Exported>): ForwardExports<Exported>;
22
22
  }
23
- export type File<Kinds extends Rsc_Ctor_Of[] = Rsc_Ctor_Of[], T extends Kinds[number]["prototype"] = Kinds[number]["prototype"]> = Rsc_FwRef_Exports<T>;
24
23
  //# sourceMappingURL=file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../src/origins/file/file.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,OAAO,EACf,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAA;AACnE,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,OAAO,CAAA;AACzC,MAAM,WAAW,UAAU,CACvB,KAAK,SAAS,WAAW,EAAE,GAAG,WAAW,EAAE,EAC3C,OAAO,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CACzE,SAAQ,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;I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sB,CAAC,QAAQ,CAAC;CAK9C"}
@@ -34,16 +34,15 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
34
34
  done = true;
35
35
  };
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Origin_File_Scope = exports.Origin_File = void 0;
38
- exports.File = File;
37
+ exports.K8tsFile_Scope = exports.K8tsFile = void 0;
39
38
  const instruments_1 = require("@k8ts/instruments");
40
39
  const doddle_1 = require("doddle");
41
40
  const section_1 = require("./section");
42
- let Origin_File = (() => {
43
- let _classSuper = instruments_1.Origin_Exporter;
41
+ let K8tsFile = (() => {
42
+ let _classSuper = instruments_1.ExporterOrigin;
44
43
  let _instanceExtraInitializers = [];
45
44
  let ___exports___decorators;
46
- return class Origin_File extends _classSuper {
45
+ return class K8tsFile extends _classSuper {
47
46
  static {
48
47
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
49
48
  ___exports___decorators = [doddle_1.doddlify];
@@ -51,25 +50,23 @@ let Origin_File = (() => {
51
50
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
52
51
  }
53
52
  #_ = (__runInitializers(this, _instanceExtraInitializers), (() => {
54
- this.meta.add("source.k8ts.org/", {
53
+ this.metadata.add("source.k8ts.org/", {
55
54
  "^file": this.name
56
55
  });
57
- this.meta.overwrite("namespace", this._props.namespace?.name);
58
56
  })());
59
57
  get kind() {
60
58
  return "[k8ts] File";
61
59
  }
60
+ get namespace() {
61
+ return this._props.namespace?.ident.name;
62
+ }
62
63
  __exports__() {
63
- return (0, doddle_1.seq)(this._props.FILE.call(this, new Origin_File_Scope(this))).cache();
64
+ return (0, doddle_1.seq)(this._props.resources$.call(this, new K8tsFile_Scope(this))).cache();
64
65
  }
65
66
  };
66
67
  })();
67
- exports.Origin_File = Origin_File;
68
- function File(parent, name, props) {
69
- const file = new Origin_File(parent, name, props);
70
- return (0, instruments_1.Rsc_FwRef_Exports)(file);
71
- }
72
- class Origin_File_Scope {
68
+ exports.K8tsFile = K8tsFile;
69
+ class K8tsFile_Scope {
73
70
  _file;
74
71
  constructor(_file) {
75
72
  this._file = _file;
@@ -80,9 +77,9 @@ class Origin_File_Scope {
80
77
  }
81
78
  on;
82
79
  Section(name, props) {
83
- const section = new section_1.Origin_Section(this._file, name, props);
84
- return (0, instruments_1.Rsc_FwRef_Exports)(section);
80
+ const section = new section_1.K8tsFile_Section(this._file, name, props);
81
+ return (0, instruments_1.ForwardExports)(section);
85
82
  }
86
83
  }
87
- exports.Origin_File_Scope = Origin_File_Scope;
84
+ exports.K8tsFile_Scope = K8tsFile_Scope;
88
85
  //# sourceMappingURL=file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../../../src/origins/file/file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,oBAOC;AA7CD,mDAO0B;AAC1B,mCAAsC;AAEtC,uCAAmE;IAUtD,WAAW;sBAAS,6BAAe;;;iBAAnC,WAAY,SAAQ,WAA2B;;;uCAWvD,iBAAQ;YACT,oLAAU,WAAW,6DAIpB;;;QAfD,EAAE,IADO,mDAAW,EACf,CAAC,GAAG,EAAE;YACP,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE;gBAC9B,OAAO,EAAE,IAAI,CAAC,IAAI;aACrB,CAAC,CAAA;YACF,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;QACjE,CAAC,CAAC,EAAE,EAAA;QACJ,IAAI,IAAI;YACJ,OAAO,aAAa,CAAA;QACxB,CAAC;QAGS,WAAW;YACjB,OAAO,IAAA,YAAG,EACN,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,iBAAiB,CAAC,IAAI,CAAQ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Aa,CAAA;QACxB,CAAC;QAED,IAAI,SAAS;YACT,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAA;QAC5C,CAAC;QAGS,WAAW;YACjB,OAAO,IAAA,YAAG,EACN,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CACvB,IAAI,EACJ,IAAI,cAAc,CAAC,IAAI,CAAQ,CACT,CAC7B,CAAC,KAAK,EAAE,CAAA;QACb,CAAC;;;AAtBQ,4BAAQ;AAyBrB,MAAa,cAAc;IACM;IAA7B,YAA6B,KAAe;QAAf,UAAK,GAAL,KAAK,CAAU;QACxC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAA;IAC3B,CAAC;IACD,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,KAAK,CAAA;IACrB,CAAC;IACD,EAAE,CAAgB;IAElB,OAAO,CACH,IAAY,EACZ,KAAuC;QAEvC,MAAM,OAAO,GAAqB,IAAI,0BAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;QAC/E,OAAO,IAAA,4BAAc,EAAW,OAAO,CAAC,CAAA;IAC5C,CAAC;CACJ;AAhBD,wCAgBC"}
@@ -1,4 +1,3 @@
1
1
  export * from "./file";
2
- export * from "./modifier";
3
2
  export * from "./section";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/origins/file/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/origins/file/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA"}
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./file"), exports);
18
- __exportStar(require("./modifier"), exports);
19
18
  __exportStar(require("./section"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/origins/file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,6CAA0B;AAC1B,4CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/origins/file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,4CAAyB"}
@@ -1,18 +1,18 @@
1
- import { type Origin_Exporter_Props, type Rsc_Ref, Origin_Exporter } from "@k8ts/instruments";
1
+ import { type OriginExporter_Props, type ResourceRef, ExporterOrigin } from "@k8ts/instruments";
2
2
  import type { v1 } from "../../kinds";
3
- export declare class File_Section_Scope {
3
+ export declare class K8tsFile_Section_Scope {
4
4
  private readonly _section;
5
- on: Origin_Section["on"];
6
- get __entity__(): Origin_Section;
7
- constructor(_section: Origin_Section);
5
+ on: K8tsFile_Section["on"];
6
+ get __entity__(): K8tsFile_Section;
7
+ constructor(_section: K8tsFile_Section);
8
8
  }
9
- export interface File_Section_Props<Exported extends Rsc_Ref = Rsc_Ref> extends Origin_Exporter_Props {
10
- namespace?: Rsc_Ref<v1.Namespace._>;
11
- SECTION(SCOPE: File_Section_Scope): Iterable<Exported>;
9
+ export interface K8tsFile_Section_Props<Exported extends ResourceRef = ResourceRef> extends OriginExporter_Props {
10
+ namespace?: ResourceRef<v1.Namespace._>;
11
+ resources$(Section: K8tsFile_Section_Scope): Iterable<Exported>;
12
12
  }
13
- export declare class Origin_Section extends Origin_Exporter<File_Section_Props> {
14
- #private;
13
+ export declare class K8tsFile_Section extends ExporterOrigin<K8tsFile_Section_Props> {
15
14
  get kind(): string;
16
- protected __exports__(): import("doddle").Seq<Rsc_Ref>;
15
+ get namespace(): string | undefined;
16
+ protected __exports__(): import("doddle").Seq<ResourceRef>;
17
17
  }
18
18
  //# sourceMappingURL=section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/origins/file/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAE7F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAErC,qBAAa,kBAAkB;IAKf,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJrC,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;IACxB,IAAI,UAAU,mBAEb;gBAC4B,QAAQ,EAAE,cAAc;CAGxD;AACD,MAAM,WAAW,kBAAkB,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO,CAClE,SAAQ,qBAAqB;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IACnC,OAAO,CAAC,KAAK,EAAE,kBAAkB,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;CACzD;AAED,qBAAa,cAAe,SAAQ,eAAe,CAAC,kBAAkB,CAAC;;IACnE,IAAI,IAAI,WAEP;IAQD,SAAS,CAAC,WAAW;CAKxB"}
1
+ {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/origins/file/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAE/F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAErC,qBAAa,sBAAsB;IAKnB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJrC,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;IAC1B,IAAI,UAAU,qBAEb;gBAC4B,QAAQ,EAAE,gBAAgB;CAG1D;AACD,MAAM,WAAW,sBAAsB,CAAC,QAAQ,SAAS,WAAW,GAAG,WAAW,CAC9E,SAAQ,oBAAoB;IAC5B,SAAS,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IACvC,UAAU,CAAC,OAAO,EAAE,sBAAsB,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;CAClE;AAED,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,sBAAsB,CAAC;IACxE,IAAI,IAAI,WAEP;IAED,IAAI,SAAS,uBAEZ;IAED,SAAS,CAAC,WAAW;CAQxB"}
@@ -34,10 +34,10 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
34
34
  done = true;
35
35
  };
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Origin_Section = exports.File_Section_Scope = void 0;
37
+ exports.K8tsFile_Section = exports.K8tsFile_Section_Scope = void 0;
38
38
  const instruments_1 = require("@k8ts/instruments");
39
39
  const doddle_1 = require("doddle");
40
- class File_Section_Scope {
40
+ class K8tsFile_Section_Scope {
41
41
  _section;
42
42
  on;
43
43
  get __entity__() {
@@ -48,12 +48,12 @@ class File_Section_Scope {
48
48
  this.on = this._section.on;
49
49
  }
50
50
  }
51
- exports.File_Section_Scope = File_Section_Scope;
52
- let Origin_Section = (() => {
53
- let _classSuper = instruments_1.Origin_Exporter;
51
+ exports.K8tsFile_Section_Scope = K8tsFile_Section_Scope;
52
+ let K8tsFile_Section = (() => {
53
+ let _classSuper = instruments_1.ExporterOrigin;
54
54
  let _instanceExtraInitializers = [];
55
55
  let ___exports___decorators;
56
- return class Origin_Section extends _classSuper {
56
+ return class K8tsFile_Section extends _classSuper {
57
57
  static {
58
58
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
59
59
  ___exports___decorators = [doddle_1.doddlify];
@@ -63,15 +63,17 @@ let Origin_Section = (() => {
63
63
  get kind() {
64
64
  return "[k8ts] File/Section";
65
65
  }
66
- #_ = (__runInitializers(this, _instanceExtraInitializers), (0, doddle_1.doddle)(() => {
67
- this.meta.overwrite({
68
- namespace: this._props.namespace?.name
69
- });
70
- }).pull());
66
+ get namespace() {
67
+ return this.__parent__.cast(instruments_1.ExporterOrigin).namespace;
68
+ }
71
69
  __exports__() {
72
- return (0, doddle_1.seq)(this._props.SECTION.call(this, new File_Section_Scope(this))).cache();
70
+ return (0, doddle_1.seq)(this._props.resources$.call(this, new K8tsFile_Section_Scope(this))).cache();
71
+ }
72
+ constructor() {
73
+ super(...arguments);
74
+ __runInitializers(this, _instanceExtraInitializers);
73
75
  }
74
76
  };
75
77
  })();
76
- exports.Origin_Section = Origin_Section;
78
+ exports.K8tsFile_Section = K8tsFile_Section;
77
79
  //# sourceMappingURL=section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.js","sourceRoot":"","sources":["../../../src/origins/file/section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA6F;AAC7F,mCAA8C;AAG9C,MAAa,kBAAkB;IAKE;IAJ7B,EAAE,CAAsB;IACxB,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,QAAQ,CAAA;IACxB,CAAC;IACD,YAA6B,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;QACjD,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAA;IAC9B,CAAC;CACJ;AARD,gDAQC;IAOY,cAAc;sBAAS,6BAAe;;;iBAAtC,cAAe,SAAQ,WAAmC;;;uCAUlE,iBAAQ;YACT,oLAAU,WAAW,6DAIpB;;;QAdD,IAAI,IAAI;YACJ,OAAO,qBAAqB,CAAA;QAChC,CAAC;QACD,EAAE,IAJO,mDAAc,EAIlB,IAAA,eAAM,EAAC,GAAG,EAAE;YACb,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;gBAChB,SAAS,EAAE,IAAI,CAAC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, type Origin_Props, type Rsc_Ctor_Of, type Rsc_FwRef_Exports } from "@k8ts/instruments";
2
- import { type File_Props, type File_sName } from "./file";
3
- export type World_Props<Kinds extends Rsc_Ctor_Of[]> = Origin_Props<Kinds[number]>;
4
- export declare class World_Entity<Kinds extends Rsc_Ctor_Of[] = Rsc_Ctor_Of[]> extends Origin_Entity<World_Props<Kinds>> {
1
+ import { ForwardExports, OriginEntity, type Origin_Props, type ResourceRef_Constructor } from "@k8ts/instruments";
2
+ import { type File_sName, type K8tsFile_Props } from "./file";
3
+ export type K8tsWorld_Base_Props<Kinds extends ResourceRef_Constructor[]> = Origin_Props<Kinds[number]>;
4
+ export declare class K8tsWorld_Base<Kinds extends ResourceRef_Constructor[] = ResourceRef_Constructor[]> extends OriginEntity<K8tsWorld_Base_Props<Kinds>> {
5
5
  #private;
6
6
  get kind(): string;
7
- File<Exports extends Rsc_Ctor_Of["prototype"]>(name: File_sName, props: File_Props<Kinds, Exports>): Rsc_FwRef_Exports<Exports>;
7
+ get namespace(): undefined;
8
+ File<Exports extends ResourceRef_Constructor["prototype"]>(name: File_sName, props: K8tsFile_Props<Kinds, Exports>): ForwardExports<Exports>;
8
9
  }
9
10
  export declare const k8ts_namespace: "k8ts.org/";
10
11
  //# sourceMappingURL=world.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../src/origins/world.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACzB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAQ,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAA;AAE/D,MAAM,MAAM,WAAW,CAAC,KAAK,SAAS,WAAW,EAAE,IAAI,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA;AAElF,qBAAa,YAAY,CAAC,KAAK,SAAS,WAAW,EAAE,GAAG,WAAW,EAAE,CAAE,SAAQ,aAAa,CACxF,WAAW,CAAC,KAAK,CAAC,CACrB;;IACG,IAAI,IAAI,WAEP;IAOD,IAAI,CAAC,OAAO,SAAS,WAAW,CAAC,WAAW,CAAC,EACzC,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,GAEC,iBAAiB,CAAC,OAAO,CAAC;CAEnE;AAED,eAAO,MAAM,cAAc,EAAG,WAAoB,CAAA"}
1
+ {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../src/origins/world.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,cAAc,EACd,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC/B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAY,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAA;AAEvE,MAAM,MAAM,oBAAoB,CAAC,KAAK,SAAS,uBAAuB,EAAE,IAAI,YAAY,CACpF,KAAK,CAAC,MAAM,CAAC,CAChB,CAAA;AAED,qBAAa,cAAc,CACvB,KAAK,SAAS,uBAAuB,EAAE,GAAG,uBAAuB,EAAE,CACrE,SAAQ,YAAY,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;;IAC/C,IAAI,IAAI,WAEP;IAMD,IAAI,SAAS,cAEZ;IACD,IAAI,CAAC,OAAO,SAAS,uBAAuB,CAAC,WAAW,CAAC,EACrD,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;CAM5C;AAED,eAAO,MAAM,cAAc,EAAG,WAAoB,CAAA"}
@@ -1,21 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.k8ts_namespace = exports.World_Entity = void 0;
3
+ exports.k8ts_namespace = exports.K8tsWorld_Base = void 0;
4
4
  const instruments_1 = require("@k8ts/instruments");
5
5
  const file_1 = require("./file");
6
- class World_Entity extends instruments_1.Origin_Entity {
6
+ class K8tsWorld_Base extends instruments_1.OriginEntity {
7
7
  get kind() {
8
8
  return "[k8ts] World";
9
9
  }
10
10
  #_ = (() => {
11
- this.meta.add("source.k8ts.org/", {
11
+ this.metadata.add("source.k8ts.org/", {
12
12
  "^world": this.name
13
13
  });
14
14
  })();
15
+ get namespace() {
16
+ return undefined;
17
+ }
15
18
  File(name, props) {
16
- return (0, file_1.File)(this, name, props);
19
+ const file = new file_1.K8tsFile(this, name, props);
20
+ return (0, instruments_1.ForwardExports)(file);
17
21
  }
18
22
  }
19
- exports.World_Entity = World_Entity;
23
+ exports.K8tsWorld_Base = K8tsWorld_Base;
20
24
  exports.k8ts_namespace = "k8ts.org/";
21
25
  //# sourceMappingURL=world.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/origins/world.ts"],"names":[],"mappings":";;;AAAA,mDAK0B;AAE1B,iCAA+D;AAI/D,MAAa,YAA0D,SAAQ,2BAE9E;IACG,IAAI,IAAI;QACJ,OAAO,cAAc,CAAA;IACzB,CAAC;IACD,EAAE,GAAG,CAAC,GAAG,EAAE;QACP,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE;YAC9B,QAAQ,EAAE,IAAI,CAAC,IAAI;SACtB,CAAC,CAAA;IACN,CAAC,CAAC,EAAE,CAAA;IAEJ,IAAI,CACA,IAAgB,EAChB,KAAiC;QAEjC,OAAO,IAAA,WAAI,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAA+B,CAAA;IAChE,CAAC;CACJ;AAlBD,oCAkBC;AAEY,QAAA,cAAc,GAAG,WAAoB,CAAA"}
1
+ {"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/origins/world.ts"],"names":[],"mappings":";;;AAAA,mDAK0B;AAE1B,iCAAuE;AAMvE,MAAa,cAEX,SAAQ,0BAAyC;IAC/C,IAAI,IAAI;QACJ,OAAO,cAAc,CAAA;IACzB,CAAC;IACD,EAAE,GAAG,CAAC,GAAG,EAAE;QACP,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,EAAE;YAClC,QAAQ,EAAE,IAAI,CAAC,IAAI;SACtB,CAAC,CAAA;IACN,CAAC,CAAC,EAAE,CAAA;IACJ,IAAI,SAAS;QACT,OAAO,SAAS,CAAA;IACpB,CAAC;IACD,IAAI,CACA,IAAgB,EAChB,KAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,eAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,KAAY,CAAC,CAAA;QAEnD,OAAO,IAAA,4BAAc,EAAU,IAAI,CAAC,CAAA;IACxC,CAAC;CACJ;AAtBD,wCAsBC;AAEY,QAAA,cAAc,GAAG,WAAoB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=annotations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../src/resources/annotations.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=block-mode.js.map
3
+ //# sourceMappingURL=annotations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../src/resources/annotations.ts"],"names":[],"mappings":""}
@@ -1,11 +1,11 @@
1
- import { Rsc_Top, type DataSource } from "@k8ts/instruments";
2
- import { CDK } from "@k8ts/sample-interfaces";
3
- export interface ConfigMap_Props<Keys extends string = string> {
4
- $data: Record<Keys, DataSource>;
1
+ import { K8sResource, type DataSource, type Resource_Props_Top } from "@k8ts/instruments";
2
+ import { K8S } from "@k8ts/sample-interfaces";
3
+ export interface ConfigMap_Props<Keys extends string = string> extends Resource_Props_Top {
4
+ $data?: Record<Keys, DataSource>;
5
5
  }
6
- export declare class ConfigMap<Name extends string = string, Keys extends string = string> extends Rsc_Top<Name, ConfigMap_Props<Keys>> {
6
+ export declare class ConfigMap<Name extends string = string, Keys extends string = string> extends K8sResource<Name, ConfigMap_Props<Keys>> {
7
7
  get keys(): Keys[];
8
- get kind(): import("@k8ts/instruments").Ident_Kind<"", "v1", "ConfigMap">;
9
- protected body(): Promise<CDK.KubeConfigMapProps>;
8
+ get kind(): import("@k8ts/instruments").Gvk<"v1/ConfigMap">;
9
+ protected __body__(): Promise<K8S.KubeConfigMapProps>;
10
10
  }
11
11
  //# sourceMappingURL=configmap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configmap.d.ts","sourceRoot":"","sources":["../../../src/resources/config/configmap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAA;AAG7C,MAAM,WAAW,eAAe,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACzD,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;CAClC;AAED,qBAAa,SAAS,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,OAAO,CAC9F,IAAI,EACJ,eAAe,CAAC,IAAI,CAAC,CACxB;IACG,IAAI,IAAI,IAAI,IAAI,EAAE,CAEjB;IACD,IAAI,IAAI,kEAEP;cAEe,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;CAI1D"}
1
+ {"version":3,"file":"configmap.d.ts","sourceRoot":"","sources":["../../../src/resources/config/configmap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACzF,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAA;AAI7C,MAAM,WAAW,eAAe,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,kBAAkB;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;CACnC;AAED,qBAAa,SAAS,CAClB,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,IAAI,SAAS,MAAM,GAAG,MAAM,CAC9B,SAAQ,WAAW,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;IAC9C,IAAI,IAAI,IAAI,IAAI,EAAE,CAEjB;IACD,IAAI,IAAI,oDAEP;cAEe,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;CAI9D"}
@@ -2,18 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConfigMap = void 0;
4
4
  const instruments_1 = require("@k8ts/instruments");
5
- const default_1 = require("../../kinds/default");
5
+ const lodash_1 = require("lodash");
6
+ const default_1 = require("../../gvks/default");
6
7
  const resolver_1 = require("./resolver");
7
- class ConfigMap extends instruments_1.Rsc_Top {
8
+ class ConfigMap extends instruments_1.K8sResource {
8
9
  get keys() {
9
- return Object.keys(this.props.$data);
10
+ return Object.keys(this.props.$data ?? {});
10
11
  }
11
12
  get kind() {
12
13
  return default_1.v1.ConfigMap._;
13
14
  }
14
- async body() {
15
- const resolvedRecord = await (0, resolver_1.resolveDataSourceRecord)(this, this.props.$data);
16
- return resolvedRecord;
15
+ async __body__() {
16
+ const resolvedRecord = await (0, resolver_1.resolveDataSourceRecord)(this, this.props.$data ?? {});
17
+ return (0, lodash_1.merge)(resolvedRecord, this.props.$$manifest);
17
18
  }
18
19
  }
19
20
  exports.ConfigMap = ConfigMap;
@@ -1 +1 @@
1
- {"version":3,"file":"configmap.js","sourceRoot":"","sources":["../../../src/resources/config/configmap.ts"],"names":[],"mappings":";;;AAAA,mDAA4D;AAE5D,iDAAwC;AACxC,yCAAoD;AAKpD,MAAa,SAAsE,SAAQ,qBAG1F;IACG,IAAI,IAAI;QACJ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAW,CAAA;IAClD,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,YAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IACzB,CAAC;IAES,KAAK,CAAC,IAAI;QAChB,MAAM,cAAc,GAAG,MAAM,IAAA,kCAAuB,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC5E,OAAO,cAAc,CAAA;IACzB,CAAC;CACJ;AAfD,8BAeC"}
1
+ {"version":3,"file":"configmap.js","sourceRoot":"","sources":["../../../src/resources/config/configmap.ts"],"names":[],"mappings":";;;AAAA,mDAAyF;AAEzF,mCAA8B;AAC9B,gDAAuC;AACvC,yCAAoD;AAKpD,MAAa,SAGX,SAAQ,yBAAwC;IAC9C,IAAI,IAAI;QACJ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAW,CAAA;IACxD,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,YAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IACzB,CAAC;IAES,KAAK,CAAC,QAAQ;QACpB,MAAM,cAAc,GAAG,MAAM,IAAA,kCAAuB,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAClF,OAAO,IAAA,cAAK,EAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;IACvD,CAAC;CACJ;AAfD,8BAeC"}
@@ -1,4 +1,3 @@
1
1
  export * from "./configmap";
2
- export * from "./key-ref";
3
2
  export * from "./secret";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA"}
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./configmap"), exports);
18
- __exportStar(require("./key-ref"), exports);
19
18
  __exportStar(require("./secret"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,4CAAyB;AACzB,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,2CAAwB"}
@@ -1,5 +1,5 @@
1
- import { type DataSource, type Rsc_Ref } from "@k8ts/instruments";
2
- export declare function resolveDataSourceRecord(resource: Rsc_Ref, input: Record<string, DataSource>): Promise<{
1
+ import { type DataSource, type ResourceRef } from "@k8ts/instruments";
2
+ export declare function resolveDataSourceRecord(resource: ResourceRef, input: Record<string, DataSource>): Promise<{
3
3
  data: {
4
4
  [k: string]: string;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/resources/config/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAGlF,wBAAsB,uBAAuB,CACzC,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;;;;;;;GAuBpC"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/resources/config/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAInF,wBAAsB,uBAAuB,CACzC,QAAQ,EAAE,WAAW,EACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;;;;;;;GAyBpC"}
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveDataSourceRecord = resolveDataSourceRecord;
4
4
  const instruments_1 = require("@k8ts/instruments");
5
5
  const what_are_you_1 = require("what-are-you");
6
+ const errors_1 = require("../errors");
6
7
  async function resolveDataSourceRecord(resource, input) {
7
8
  const binaryData = [];
8
9
  const data = [];
9
10
  const entries = Object.entries(input ?? {});
10
11
  for (const [k, v] of entries) {
11
12
  let current = v;
12
- if (current instanceof instruments_1.DataSource_Lazy) {
13
- current = await current.get();
13
+ if ((0, instruments_1.isDataSource)(current)) {
14
+ current = await current.pull();
14
15
  }
15
16
  if ((0, what_are_you_1.isTypedArray)(current) || (0, what_are_you_1.isArrayBufferLike)(current)) {
16
17
  const encoded = Buffer.from(current).toString("base64");
@@ -20,7 +21,7 @@ async function resolveDataSourceRecord(resource, input) {
20
21
  data.push([k, current]);
21
22
  }
22
23
  else {
23
- throw new Error(`Unsupported DataSource for ConfigMap ${resource} key "${k}"`);
24
+ throw new errors_1.K8tsResourceError(`Unsupported DataSource for ConfigMap ${resource} key "${k}"`);
24
25
  }
25
26
  }
26
27
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../../src/resources/config/resolver.ts"],"names":[],"mappings":";;AAGA,0DAyBC;AA5BD,mDAAkF;AAClF,+CAA8D;AAEvD,KAAK,UAAU,uBAAuB,CACzC,QAAiB,EACjB,KAAiC;IAEjC,MAAM,UAAU,GAAuB,EAAE,CAAA;IACzC,MAAM,IAAI,GAAuB,EAAE,CAAA;IACnC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAA2B,CAAA;IACrE,KAAK,MAAM,CAAC,CAAC,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AE,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,OAAO,GAAG,CAAC,CAAA;QACf,IAAI,IAAA,0BAAY,EAAC,OAAO,CAAC,EAAE,CAAC;YACxB,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE,CAAA;QAClC,CAAC;QACD,IAAI,IAAA,2BAAY,EAAC,OAAO,CAAC,IAAI,IAAA,gCAAiB,EAAC,OAAO,CAAC,EAAE,CAAC;YACtD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;YACvD,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAA;QACjC,CAAC;aAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YACrC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAA;QAC3B,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,0BAAiB,CACvB,wCAAwC,QAAQ,SAAS,CAAC,GAAG,CAChE,CAAA;QACL,CAAC;IACL,CAAC;IACD,OAAO;QACH,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;KAC7C,CAAA;AACL,CAAC"}
@@ -1,24 +1,17 @@
1
- import { Rsc_Top, type DataSource } from "@k8ts/instruments";
2
- export interface Secret_Data_Entry {
1
+ import { K8sResource, type DataSource, type Resource_Props_Top } from "@k8ts/instruments";
2
+ import type { K8S } from "../..";
3
+ export interface Secret_Entry {
3
4
  as: "base64" | "plain";
4
5
  value: DataSource;
5
6
  }
6
7
  export type Secret_Types = `kubernetes.io/${"service-account-token" | "dockercfg" | "dockerconfigjson" | "basic-auth" | "ssh-auth" | "tls"}` | "bootstrap.kubernetes.io/token";
7
- export interface Secret_Props<Keys extends string = string> {
8
+ export interface Secret_Props<Keys extends string = string> extends Resource_Props_Top<K8S.KubeSecretProps> {
8
9
  $type?: Secret_Types;
9
10
  $data?: Record<Keys, DataSource>;
10
11
  }
11
- export declare class Secret<Name extends string = string, Keys extends string = string> extends Rsc_Top<Name, Secret_Props<Keys>> {
12
+ export declare class Secret<Name extends string = string, Keys extends string = string> extends K8sResource<Name, Secret_Props<Keys>> {
12
13
  get keys(): Keys[];
13
- get kind(): import("@k8ts/instruments").Ident_Kind<"", "v1", "Secret">;
14
- protected body(): Promise<{
15
- type: string;
16
- data: {
17
- [k: string]: string;
18
- };
19
- stringData: {
20
- [k: string]: string;
21
- };
22
- }>;
14
+ get kind(): import("@k8ts/instruments").Gvk<"v1/Secret">;
15
+ protected __body__(): Promise<K8S.KubeSecretProps>;
23
16
  }
24
17
  //# sourceMappingURL=secret.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"secret.d.ts","sourceRoot":"","sources":["../../../src/resources/config/secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAI5D,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAA;IACtB,KAAK,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,MAAM,YAAY,GAClB,iBACM,uBAAuB,GACvB,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,UAAU,GACV,KAAK,EAAE,GACb,+BAA+B,CAAA;AACrC,MAAM,WAAW,YAAY,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACtD,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;CACnC;AAED,qBAAa,MAAM,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,OAAO,CAC3F,IAAI,EACJ,YAAY,CAAC,IAAI,CAAC,CACrB;IACG,IAAI,IAAI,IAC0C,IAAI,EAAE,CACvD;IACD,IAAI,IAAI,+DAEP;cAEe,IAAI;;;;;;;;;CAQvB"}
1
+ {"version":3,"file":"secret.d.ts","sourceRoot":"","sources":["../../../src/resources/config/secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAEzF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAA;IACtB,KAAK,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,MAAM,YAAY,GAClB,iBACM,uBAAuB,GACvB,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,UAAU,GACV,KAAK,EAAE,GACb,+BAA+B,CAAA;AACrC,MAAM,WAAW,YAAY,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,CACtD,SAAQ,kBAAkB,CAAC,GAAG,CAAC,eAAe,CAAC;IAC/C,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;CACnC;AAED,qBAAa,MAAM,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,WAAW,CAC/F,IAAI,EACJ,YAAY,CAAC,IAAI,CAAC,CACrB;IACG,IAAI,IAAI,IAC0C,IAAI,EAAE,CACvD;IACD,IAAI,IAAI,iDAEP;cAEe,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;CAS3D"}
@@ -2,22 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Secret = void 0;
4
4
  const instruments_1 = require("@k8ts/instruments");
5
- const default_1 = require("../../kinds/default");
5
+ const lodash_1 = require("lodash");
6
+ const default_1 = require("../../gvks/default");
6
7
  const resolver_1 = require("./resolver");
7
- class Secret extends instruments_1.Rsc_Top {
8
+ class Secret extends instruments_1.K8sResource {
8
9
  get keys() {
9
10
  return Object.keys(this.props.$data ?? {});
10
11
  }
11
12
  get kind() {
12
13
  return default_1.v1.Secret._;
13
14
  }
14
- async body() {
15
+ async __body__() {
15
16
  const resolved = await (0, resolver_1.resolveDataSourceRecord)(this, this.props.$data ?? {});
16
- return {
17
+ const body = {
17
18
  type: this.props.$type ?? "Opaque",
18
19
  data: resolved.binaryData,
19
20
  stringData: resolved.data
20
21
  };
22
+ return (0, lodash_1.merge)(body, this.props.$$manifest);
21
23
  }
22
24
  }
23
25
  exports.Secret = Secret;
@@ -1 +1 @@
1
- {"version":3,"file":"secret.js","sourceRoot":"","sources":["../../../src/resources/config/secret.ts"],"names":[],"mappings":";;;AAAA,mDAA4D;AAC5D,iDAAwC;AACxC,yCAAoD;AAqBpD,MAAa,MAAmE,SAAQ,qBAGvF;IACG,IAAI,IAAI;QACJ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAW,CAAA;IACxD,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,YAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IACtB,CAAC;IAES,KAAK,CAAC,IAAI;QAChB,MAAM,QAAQ,GAAG,MAAM,IAAA,kCAAuB,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAC5E,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ;YAClC,IAAI,EAAE,QAAQ,CAAC,UAAU;YACzB,UAAU,EAAE,QAAQ,CAAC,IAAI;SAC5B,CAAA;IACL,CAAC;CACJ;AAnBD,wBAmBC"}
1
+ {"version":3,"file":"secret.js","sourceRoot":"","sources":["../../../src/resources/config/secret.ts"],"names":[],"mappings":";;;AAAA,mDAAyF;AACzF,mCAA8B;AAE9B,gDAAuC;AACvC,yCAAoD;AAsBpD,MAAa,MAAmE,SAAQ,yBAGvF;IACG,IAAI,IAAI;QACJ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAW,CAAA;IACxD,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,YAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IACtB,CAAC;IAES,KAAK,CAAC,QAAQ;QACpB,MAAM,QAAQ,GAAG,MAAM,IAAA,kCAAuB,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAC5E,MAAM,IAAI,GAAG;YACT,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ;YAClC,IAAI,EAAE,QAAQ,CAAC,UAAU;YACzB,UAAU,EAAE,QAAQ,CAAC,IAAI;SAC5B,CAAA;QACD,OAAO,IAAA,cAAK,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;IAC7C,CAAC;CACJ;AApBD,wBAoBC"}
@@ -0,0 +1,7 @@
1
+ export declare class K8tsResourceError extends Error {
2
+ name: "K8tsResourceError";
3
+ constructor(message: string, fields?: Record<string, any> & {
4
+ cause?: Error;
5
+ });
6
+ }
7
+ //# sourceMappingURL=errors.d.ts.map