kustodian 1.0.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 (351) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +346 -0
  3. package/dist/cli/bin.d.ts +3 -0
  4. package/dist/cli/bin.d.ts.map +1 -0
  5. package/dist/cli/bin.js +67 -0
  6. package/dist/cli/bin.js.map +1 -0
  7. package/dist/cli/command.d.ts +57 -0
  8. package/dist/cli/command.d.ts.map +1 -0
  9. package/dist/cli/command.js +26 -0
  10. package/dist/cli/command.js.map +1 -0
  11. package/dist/cli/commands/apply.d.ts +8 -0
  12. package/dist/cli/commands/apply.d.ts.map +1 -0
  13. package/dist/cli/commands/apply.js +802 -0
  14. package/dist/cli/commands/apply.js.map +1 -0
  15. package/dist/cli/commands/init.d.ts +5 -0
  16. package/dist/cli/commands/init.d.ts.map +1 -0
  17. package/dist/cli/commands/init.js +403 -0
  18. package/dist/cli/commands/init.js.map +1 -0
  19. package/dist/cli/commands/sources.d.ts +5 -0
  20. package/dist/cli/commands/sources.d.ts.map +1 -0
  21. package/dist/cli/commands/sources.js +377 -0
  22. package/dist/cli/commands/sources.js.map +1 -0
  23. package/dist/cli/commands/update.d.ts +5 -0
  24. package/dist/cli/commands/update.d.ts.map +1 -0
  25. package/dist/cli/commands/update.js +314 -0
  26. package/dist/cli/commands/update.js.map +1 -0
  27. package/dist/cli/commands/validate.d.ts +5 -0
  28. package/dist/cli/commands/validate.d.ts.map +1 -0
  29. package/dist/cli/commands/validate.js +126 -0
  30. package/dist/cli/commands/validate.js.map +1 -0
  31. package/dist/cli/container.d.ts +48 -0
  32. package/dist/cli/container.d.ts.map +1 -0
  33. package/dist/cli/container.js +49 -0
  34. package/dist/cli/container.js.map +1 -0
  35. package/dist/cli/index.d.ts +8 -0
  36. package/dist/cli/index.d.ts.map +1 -0
  37. package/dist/cli/index.js +9 -0
  38. package/dist/cli/index.js.map +1 -0
  39. package/dist/cli/middleware.d.ts +118 -0
  40. package/dist/cli/middleware.d.ts.map +1 -0
  41. package/dist/cli/middleware.js +280 -0
  42. package/dist/cli/middleware.js.map +1 -0
  43. package/dist/cli/runner.d.ts +34 -0
  44. package/dist/cli/runner.d.ts.map +1 -0
  45. package/dist/cli/runner.js +156 -0
  46. package/dist/cli/runner.js.map +1 -0
  47. package/dist/cli/utils/defaults.d.ts +23 -0
  48. package/dist/cli/utils/defaults.d.ts.map +1 -0
  49. package/dist/cli/utils/defaults.js +43 -0
  50. package/dist/cli/utils/defaults.js.map +1 -0
  51. package/dist/core/error.d.ts +117 -0
  52. package/dist/core/error.d.ts.map +1 -0
  53. package/dist/core/error.js +210 -0
  54. package/dist/core/error.js.map +1 -0
  55. package/dist/core/index.d.ts +6 -0
  56. package/dist/core/index.d.ts.map +1 -0
  57. package/dist/core/index.js +6 -0
  58. package/dist/core/index.js.map +1 -0
  59. package/dist/core/logger.d.ts +31 -0
  60. package/dist/core/logger.d.ts.map +1 -0
  61. package/dist/core/logger.js +78 -0
  62. package/dist/core/logger.js.map +1 -0
  63. package/dist/core/path.d.ts +57 -0
  64. package/dist/core/path.d.ts.map +1 -0
  65. package/dist/core/path.js +154 -0
  66. package/dist/core/path.js.map +1 -0
  67. package/dist/core/result.d.ts +80 -0
  68. package/dist/core/result.d.ts.map +1 -0
  69. package/dist/core/result.js +150 -0
  70. package/dist/core/result.js.map +1 -0
  71. package/dist/core/types.d.ts +80 -0
  72. package/dist/core/types.d.ts.map +1 -0
  73. package/dist/core/types.js +5 -0
  74. package/dist/core/types.js.map +1 -0
  75. package/dist/generator/external-substitutions.d.ts +21 -0
  76. package/dist/generator/external-substitutions.d.ts.map +1 -0
  77. package/dist/generator/external-substitutions.js +49 -0
  78. package/dist/generator/external-substitutions.js.map +1 -0
  79. package/dist/generator/flux.d.ts +61 -0
  80. package/dist/generator/flux.d.ts.map +1 -0
  81. package/dist/generator/flux.js +294 -0
  82. package/dist/generator/flux.js.map +1 -0
  83. package/dist/generator/generator.d.ts +77 -0
  84. package/dist/generator/generator.d.ts.map +1 -0
  85. package/dist/generator/generator.js +183 -0
  86. package/dist/generator/generator.js.map +1 -0
  87. package/dist/generator/index.d.ts +9 -0
  88. package/dist/generator/index.d.ts.map +1 -0
  89. package/dist/generator/index.js +9 -0
  90. package/dist/generator/index.js.map +1 -0
  91. package/dist/generator/kustomization-resolution.d.ts +40 -0
  92. package/dist/generator/kustomization-resolution.d.ts.map +1 -0
  93. package/dist/generator/kustomization-resolution.js +59 -0
  94. package/dist/generator/kustomization-resolution.js.map +1 -0
  95. package/dist/generator/namespace.d.ts +74 -0
  96. package/dist/generator/namespace.d.ts.map +1 -0
  97. package/dist/generator/namespace.js +109 -0
  98. package/dist/generator/namespace.js.map +1 -0
  99. package/dist/generator/output.d.ts +56 -0
  100. package/dist/generator/output.d.ts.map +1 -0
  101. package/dist/generator/output.js +171 -0
  102. package/dist/generator/output.js.map +1 -0
  103. package/dist/generator/preservation.d.ts +45 -0
  104. package/dist/generator/preservation.d.ts.map +1 -0
  105. package/dist/generator/preservation.js +71 -0
  106. package/dist/generator/preservation.js.map +1 -0
  107. package/dist/generator/substitution.d.ts +79 -0
  108. package/dist/generator/substitution.d.ts.map +1 -0
  109. package/dist/generator/substitution.js +210 -0
  110. package/dist/generator/substitution.js.map +1 -0
  111. package/dist/generator/types.d.ts +162 -0
  112. package/dist/generator/types.d.ts.map +1 -0
  113. package/dist/generator/types.js +2 -0
  114. package/dist/generator/types.js.map +1 -0
  115. package/dist/generator/validation/cycle-detection.d.ts +25 -0
  116. package/dist/generator/validation/cycle-detection.d.ts.map +1 -0
  117. package/dist/generator/validation/cycle-detection.js +101 -0
  118. package/dist/generator/validation/cycle-detection.js.map +1 -0
  119. package/dist/generator/validation/enablement.d.ts +24 -0
  120. package/dist/generator/validation/enablement.d.ts.map +1 -0
  121. package/dist/generator/validation/enablement.js +69 -0
  122. package/dist/generator/validation/enablement.js.map +1 -0
  123. package/dist/generator/validation/graph.d.ts +29 -0
  124. package/dist/generator/validation/graph.d.ts.map +1 -0
  125. package/dist/generator/validation/graph.js +106 -0
  126. package/dist/generator/validation/graph.js.map +1 -0
  127. package/dist/generator/validation/index.d.ts +38 -0
  128. package/dist/generator/validation/index.d.ts.map +1 -0
  129. package/dist/generator/validation/index.js +64 -0
  130. package/dist/generator/validation/index.js.map +1 -0
  131. package/dist/generator/validation/reference.d.ts +45 -0
  132. package/dist/generator/validation/reference.d.ts.map +1 -0
  133. package/dist/generator/validation/reference.js +143 -0
  134. package/dist/generator/validation/reference.js.map +1 -0
  135. package/dist/generator/validation/requirements.d.ts +25 -0
  136. package/dist/generator/validation/requirements.d.ts.map +1 -0
  137. package/dist/generator/validation/requirements.js +64 -0
  138. package/dist/generator/validation/requirements.js.map +1 -0
  139. package/dist/generator/validation/types.d.ts +116 -0
  140. package/dist/generator/validation/types.d.ts.map +1 -0
  141. package/dist/generator/validation/types.js +13 -0
  142. package/dist/generator/validation/types.js.map +1 -0
  143. package/dist/k8s/exec.d.ts +20 -0
  144. package/dist/k8s/exec.d.ts.map +1 -0
  145. package/dist/k8s/exec.js +47 -0
  146. package/dist/k8s/exec.js.map +1 -0
  147. package/dist/k8s/flux.d.ts +57 -0
  148. package/dist/k8s/flux.d.ts.map +1 -0
  149. package/dist/k8s/flux.js +202 -0
  150. package/dist/k8s/flux.js.map +1 -0
  151. package/dist/k8s/index.d.ts +6 -0
  152. package/dist/k8s/index.d.ts.map +1 -0
  153. package/dist/k8s/index.js +6 -0
  154. package/dist/k8s/index.js.map +1 -0
  155. package/dist/k8s/kubeconfig.d.ts +45 -0
  156. package/dist/k8s/kubeconfig.d.ts.map +1 -0
  157. package/dist/k8s/kubeconfig.js +152 -0
  158. package/dist/k8s/kubeconfig.js.map +1 -0
  159. package/dist/k8s/kubectl.d.ts +68 -0
  160. package/dist/k8s/kubectl.d.ts.map +1 -0
  161. package/dist/k8s/kubectl.js +187 -0
  162. package/dist/k8s/kubectl.js.map +1 -0
  163. package/dist/k8s/types.d.ts +65 -0
  164. package/dist/k8s/types.d.ts.map +1 -0
  165. package/dist/k8s/types.js +2 -0
  166. package/dist/k8s/types.js.map +1 -0
  167. package/dist/loader/file.d.ts +39 -0
  168. package/dist/loader/file.d.ts.map +1 -0
  169. package/dist/loader/file.js +121 -0
  170. package/dist/loader/file.js.map +1 -0
  171. package/dist/loader/index.d.ts +5 -0
  172. package/dist/loader/index.d.ts.map +1 -0
  173. package/dist/loader/index.js +5 -0
  174. package/dist/loader/index.js.map +1 -0
  175. package/dist/loader/profile.d.ts +23 -0
  176. package/dist/loader/profile.d.ts.map +1 -0
  177. package/dist/loader/profile.js +84 -0
  178. package/dist/loader/profile.js.map +1 -0
  179. package/dist/loader/project.d.ts +76 -0
  180. package/dist/loader/project.d.ts.map +1 -0
  181. package/dist/loader/project.js +279 -0
  182. package/dist/loader/project.js.map +1 -0
  183. package/dist/loader/yaml.d.ts +15 -0
  184. package/dist/loader/yaml.d.ts.map +1 -0
  185. package/dist/loader/yaml.js +44 -0
  186. package/dist/loader/yaml.js.map +1 -0
  187. package/dist/nodes/index.d.ts +5 -0
  188. package/dist/nodes/index.d.ts.map +1 -0
  189. package/dist/nodes/index.js +5 -0
  190. package/dist/nodes/index.js.map +1 -0
  191. package/dist/nodes/kubectl-labeler.d.ts +7 -0
  192. package/dist/nodes/kubectl-labeler.d.ts.map +1 -0
  193. package/dist/nodes/kubectl-labeler.js +89 -0
  194. package/dist/nodes/kubectl-labeler.js.map +1 -0
  195. package/dist/nodes/labeler.d.ts +74 -0
  196. package/dist/nodes/labeler.d.ts.map +1 -0
  197. package/dist/nodes/labeler.js +118 -0
  198. package/dist/nodes/labeler.js.map +1 -0
  199. package/dist/nodes/profile.d.ts +58 -0
  200. package/dist/nodes/profile.d.ts.map +1 -0
  201. package/dist/nodes/profile.js +128 -0
  202. package/dist/nodes/profile.js.map +1 -0
  203. package/dist/nodes/types.d.ts +84 -0
  204. package/dist/nodes/types.d.ts.map +1 -0
  205. package/dist/nodes/types.js +77 -0
  206. package/dist/nodes/types.js.map +1 -0
  207. package/dist/plugins/generators.d.ts +49 -0
  208. package/dist/plugins/generators.d.ts.map +1 -0
  209. package/dist/plugins/generators.js +7 -0
  210. package/dist/plugins/generators.js.map +1 -0
  211. package/dist/plugins/hooks.d.ts +120 -0
  212. package/dist/plugins/hooks.d.ts.map +1 -0
  213. package/dist/plugins/hooks.js +41 -0
  214. package/dist/plugins/hooks.js.map +1 -0
  215. package/dist/plugins/index.d.ts +8 -0
  216. package/dist/plugins/index.d.ts.map +1 -0
  217. package/dist/plugins/index.js +15 -0
  218. package/dist/plugins/index.js.map +1 -0
  219. package/dist/plugins/loader.d.ts +40 -0
  220. package/dist/plugins/loader.d.ts.map +1 -0
  221. package/dist/plugins/loader.js +236 -0
  222. package/dist/plugins/loader.js.map +1 -0
  223. package/dist/plugins/object-types.d.ts +71 -0
  224. package/dist/plugins/object-types.d.ts.map +1 -0
  225. package/dist/plugins/object-types.js +65 -0
  226. package/dist/plugins/object-types.js.map +1 -0
  227. package/dist/plugins/registry.d.ts +87 -0
  228. package/dist/plugins/registry.d.ts.map +1 -0
  229. package/dist/plugins/registry.js +158 -0
  230. package/dist/plugins/registry.js.map +1 -0
  231. package/dist/plugins/substitution-providers.d.ts +48 -0
  232. package/dist/plugins/substitution-providers.d.ts.map +1 -0
  233. package/dist/plugins/substitution-providers.js +2 -0
  234. package/dist/plugins/substitution-providers.js.map +1 -0
  235. package/dist/plugins/types.d.ts +288 -0
  236. package/dist/plugins/types.d.ts.map +1 -0
  237. package/dist/plugins/types.js +25 -0
  238. package/dist/plugins/types.js.map +1 -0
  239. package/dist/registry/auth.d.ts +14 -0
  240. package/dist/registry/auth.d.ts.map +1 -0
  241. package/dist/registry/auth.js +40 -0
  242. package/dist/registry/auth.js.map +1 -0
  243. package/dist/registry/client.d.ts +24 -0
  244. package/dist/registry/client.d.ts.map +1 -0
  245. package/dist/registry/client.js +85 -0
  246. package/dist/registry/client.js.map +1 -0
  247. package/dist/registry/dockerhub.d.ts +6 -0
  248. package/dist/registry/dockerhub.d.ts.map +1 -0
  249. package/dist/registry/dockerhub.js +91 -0
  250. package/dist/registry/dockerhub.js.map +1 -0
  251. package/dist/registry/ghcr.d.ts +6 -0
  252. package/dist/registry/ghcr.d.ts.map +1 -0
  253. package/dist/registry/ghcr.js +95 -0
  254. package/dist/registry/ghcr.js.map +1 -0
  255. package/dist/registry/helm.d.ts +11 -0
  256. package/dist/registry/helm.d.ts.map +1 -0
  257. package/dist/registry/helm.js +124 -0
  258. package/dist/registry/helm.js.map +1 -0
  259. package/dist/registry/index.d.ts +8 -0
  260. package/dist/registry/index.d.ts.map +1 -0
  261. package/dist/registry/index.js +12 -0
  262. package/dist/registry/index.js.map +1 -0
  263. package/dist/registry/types.d.ts +55 -0
  264. package/dist/registry/types.d.ts.map +1 -0
  265. package/dist/registry/types.js +2 -0
  266. package/dist/registry/types.js.map +1 -0
  267. package/dist/registry/version.d.ts +22 -0
  268. package/dist/registry/version.d.ts.map +1 -0
  269. package/dist/registry/version.js +62 -0
  270. package/dist/registry/version.js.map +1 -0
  271. package/dist/schema/cluster.d.ts +2890 -0
  272. package/dist/schema/cluster.d.ts.map +1 -0
  273. package/dist/schema/cluster.js +231 -0
  274. package/dist/schema/cluster.js.map +1 -0
  275. package/dist/schema/common.d.ts +1059 -0
  276. package/dist/schema/common.d.ts.map +1 -0
  277. package/dist/schema/common.js +340 -0
  278. package/dist/schema/common.js.map +1 -0
  279. package/dist/schema/index.d.ts +8 -0
  280. package/dist/schema/index.d.ts.map +1 -0
  281. package/dist/schema/index.js +8 -0
  282. package/dist/schema/index.js.map +1 -0
  283. package/dist/schema/node-list.d.ts +361 -0
  284. package/dist/schema/node-list.d.ts.map +1 -0
  285. package/dist/schema/node-list.js +104 -0
  286. package/dist/schema/node-list.js.map +1 -0
  287. package/dist/schema/profile.d.ts +166 -0
  288. package/dist/schema/profile.d.ts.map +1 -0
  289. package/dist/schema/profile.js +61 -0
  290. package/dist/schema/profile.js.map +1 -0
  291. package/dist/schema/project.d.ts +168 -0
  292. package/dist/schema/project.d.ts.map +1 -0
  293. package/dist/schema/project.js +40 -0
  294. package/dist/schema/project.js.map +1 -0
  295. package/dist/schema/sources.d.ts +338 -0
  296. package/dist/schema/sources.d.ts.map +1 -0
  297. package/dist/schema/sources.js +111 -0
  298. package/dist/schema/sources.js.map +1 -0
  299. package/dist/schema/template.d.ts +2711 -0
  300. package/dist/schema/template.d.ts.map +1 -0
  301. package/dist/schema/template.js +97 -0
  302. package/dist/schema/template.js.map +1 -0
  303. package/dist/sources/cache/index.d.ts +9 -0
  304. package/dist/sources/cache/index.d.ts.map +1 -0
  305. package/dist/sources/cache/index.js +278 -0
  306. package/dist/sources/cache/index.js.map +1 -0
  307. package/dist/sources/cache/metadata.d.ts +36 -0
  308. package/dist/sources/cache/metadata.d.ts.map +1 -0
  309. package/dist/sources/cache/metadata.js +21 -0
  310. package/dist/sources/cache/metadata.js.map +1 -0
  311. package/dist/sources/cache/ttl.d.ts +20 -0
  312. package/dist/sources/cache/ttl.d.ts.map +1 -0
  313. package/dist/sources/cache/ttl.js +53 -0
  314. package/dist/sources/cache/ttl.js.map +1 -0
  315. package/dist/sources/fetchers/git.d.ts +6 -0
  316. package/dist/sources/fetchers/git.d.ts.map +1 -0
  317. package/dist/sources/fetchers/git.js +165 -0
  318. package/dist/sources/fetchers/git.js.map +1 -0
  319. package/dist/sources/fetchers/http.d.ts +6 -0
  320. package/dist/sources/fetchers/http.d.ts.map +1 -0
  321. package/dist/sources/fetchers/http.js +159 -0
  322. package/dist/sources/fetchers/http.js.map +1 -0
  323. package/dist/sources/fetchers/index.d.ts +11 -0
  324. package/dist/sources/fetchers/index.d.ts.map +1 -0
  325. package/dist/sources/fetchers/index.js +24 -0
  326. package/dist/sources/fetchers/index.js.map +1 -0
  327. package/dist/sources/fetchers/oci.d.ts +6 -0
  328. package/dist/sources/fetchers/oci.d.ts.map +1 -0
  329. package/dist/sources/fetchers/oci.js +156 -0
  330. package/dist/sources/fetchers/oci.js.map +1 -0
  331. package/dist/sources/fetchers/types.d.ts +25 -0
  332. package/dist/sources/fetchers/types.d.ts.map +1 -0
  333. package/dist/sources/fetchers/types.js +2 -0
  334. package/dist/sources/fetchers/types.js.map +1 -0
  335. package/dist/sources/index.d.ts +6 -0
  336. package/dist/sources/index.d.ts.map +1 -0
  337. package/dist/sources/index.js +10 -0
  338. package/dist/sources/index.js.map +1 -0
  339. package/dist/sources/loader.d.ts +34 -0
  340. package/dist/sources/loader.d.ts.map +1 -0
  341. package/dist/sources/loader.js +89 -0
  342. package/dist/sources/loader.js.map +1 -0
  343. package/dist/sources/resolver.d.ts +17 -0
  344. package/dist/sources/resolver.d.ts.map +1 -0
  345. package/dist/sources/resolver.js +125 -0
  346. package/dist/sources/resolver.js.map +1 -0
  347. package/dist/sources/types.d.ts +151 -0
  348. package/dist/sources/types.d.ts.map +1 -0
  349. package/dist/sources/types.js +2 -0
  350. package/dist/sources/types.js.map +1 -0
  351. package/package.json +101 -0
@@ -0,0 +1,2890 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Git repository configuration for a cluster.
4
+ *
5
+ * This configuration is used for SOURCE METADATA ONLY - to track which git repository
6
+ * and commit the deployment artifacts came from. Flux does NOT watch this git repository.
7
+ *
8
+ * When you run `kustodian apply`, it:
9
+ * 1. Reads this git config to determine the source repository
10
+ * 2. Gets the current git commit SHA
11
+ * 3. Pushes an OCI artifact with this metadata attached
12
+ *
13
+ * For actual deployment, Flux watches the OCI registry (spec.oci), not the git branch.
14
+ * Changes must be pushed via `kustodian apply` to trigger deployments.
15
+ */
16
+ export declare const git_config_schema: z.ZodObject<{
17
+ owner: z.ZodString;
18
+ repository: z.ZodString;
19
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
20
+ path: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ repository: string;
23
+ owner: string;
24
+ branch: string;
25
+ path?: string | undefined;
26
+ }, {
27
+ repository: string;
28
+ owner: string;
29
+ path?: string | undefined;
30
+ branch?: string | undefined;
31
+ }>;
32
+ export type GitConfigType = z.infer<typeof git_config_schema>;
33
+ /**
34
+ * OCI repository configuration for a cluster.
35
+ *
36
+ * This is the DEPLOYMENT MECHANISM - Flux watches this OCI registry for artifacts.
37
+ *
38
+ * When you run `kustodian apply`, it:
39
+ * 1. Generates Flux manifests locally
40
+ * 2. Pushes them as an OCI artifact to this registry (with git metadata attached)
41
+ * 3. Creates/updates Flux OCIRepository and Kustomization resources in the cluster
42
+ * 4. Flux polls this OCI registry and deploys when new artifacts appear
43
+ *
44
+ * Changes pushed to the git branch do NOT automatically trigger deployments.
45
+ * You must run `kustodian apply` to push artifacts to OCI and trigger reconciliation.
46
+ */
47
+ export declare const oci_config_schema: z.ZodObject<{
48
+ registry: z.ZodString;
49
+ repository: z.ZodString;
50
+ tag_strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cluster", "git-sha", "version", "manual"]>>>;
51
+ tag: z.ZodOptional<z.ZodString>;
52
+ secret_ref: z.ZodOptional<z.ZodString>;
53
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<["aws", "azure", "gcp", "generic"]>>>;
54
+ insecure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ repository: string;
57
+ registry: string;
58
+ provider: "generic" | "aws" | "azure" | "gcp";
59
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
60
+ insecure: boolean;
61
+ tag?: string | undefined;
62
+ secret_ref?: string | undefined;
63
+ }, {
64
+ repository: string;
65
+ registry: string;
66
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
67
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
68
+ tag?: string | undefined;
69
+ secret_ref?: string | undefined;
70
+ insecure?: boolean | undefined;
71
+ }>;
72
+ export type OciConfigType = z.infer<typeof oci_config_schema>;
73
+ /**
74
+ * Kustomization override configuration within a cluster.
75
+ *
76
+ * Allows overriding kustomization preservation from template defaults.
77
+ */
78
+ export declare const kustomization_override_schema: z.ZodObject<{
79
+ preservation: z.ZodOptional<z.ZodObject<{
80
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
81
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ mode: "custom" | "none" | "stateful";
84
+ keep_resources?: string[] | undefined;
85
+ }, {
86
+ mode: "custom" | "none" | "stateful";
87
+ keep_resources?: string[] | undefined;
88
+ }>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ preservation?: {
91
+ mode: "custom" | "none" | "stateful";
92
+ keep_resources?: string[] | undefined;
93
+ } | undefined;
94
+ }, {
95
+ preservation?: {
96
+ mode: "custom" | "none" | "stateful";
97
+ keep_resources?: string[] | undefined;
98
+ } | undefined;
99
+ }>;
100
+ export type KustomizationOverrideType = z.infer<typeof kustomization_override_schema>;
101
+ /**
102
+ * Template configuration within a cluster.
103
+ * Templates listed here will be deployed. Templates not listed will be skipped.
104
+ */
105
+ export declare const template_config_schema: z.ZodObject<{
106
+ name: z.ZodString;
107
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
108
+ kustomizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
109
+ preservation: z.ZodOptional<z.ZodObject<{
110
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
111
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ mode: "custom" | "none" | "stateful";
114
+ keep_resources?: string[] | undefined;
115
+ }, {
116
+ mode: "custom" | "none" | "stateful";
117
+ keep_resources?: string[] | undefined;
118
+ }>>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ preservation?: {
121
+ mode: "custom" | "none" | "stateful";
122
+ keep_resources?: string[] | undefined;
123
+ } | undefined;
124
+ }, {
125
+ preservation?: {
126
+ mode: "custom" | "none" | "stateful";
127
+ keep_resources?: string[] | undefined;
128
+ } | undefined;
129
+ }>>>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ name: string;
132
+ values?: Record<string, string> | undefined;
133
+ kustomizations?: Record<string, {
134
+ preservation?: {
135
+ mode: "custom" | "none" | "stateful";
136
+ keep_resources?: string[] | undefined;
137
+ } | undefined;
138
+ }> | undefined;
139
+ }, {
140
+ name: string;
141
+ values?: Record<string, string> | undefined;
142
+ kustomizations?: Record<string, {
143
+ preservation?: {
144
+ mode: "custom" | "none" | "stateful";
145
+ keep_resources?: string[] | undefined;
146
+ } | undefined;
147
+ }> | undefined;
148
+ }>;
149
+ export type TemplateConfigType = z.infer<typeof template_config_schema>;
150
+ /**
151
+ * Plugin configuration within a cluster.
152
+ */
153
+ export declare const plugin_config_schema: z.ZodObject<{
154
+ name: z.ZodString;
155
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ name: string;
158
+ config?: Record<string, unknown> | undefined;
159
+ }, {
160
+ name: string;
161
+ config?: Record<string, unknown> | undefined;
162
+ }>;
163
+ export type PluginConfigType = z.infer<typeof plugin_config_schema>;
164
+ /**
165
+ * Node defaults configuration within a cluster.
166
+ */
167
+ export declare const node_defaults_schema: z.ZodObject<{
168
+ label_prefix: z.ZodOptional<z.ZodString>;
169
+ ssh: z.ZodOptional<z.ZodObject<{
170
+ user: z.ZodOptional<z.ZodString>;
171
+ key_path: z.ZodOptional<z.ZodString>;
172
+ known_hosts_path: z.ZodOptional<z.ZodString>;
173
+ port: z.ZodOptional<z.ZodNumber>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ user?: string | undefined;
176
+ key_path?: string | undefined;
177
+ known_hosts_path?: string | undefined;
178
+ port?: number | undefined;
179
+ }, {
180
+ user?: string | undefined;
181
+ key_path?: string | undefined;
182
+ known_hosts_path?: string | undefined;
183
+ port?: number | undefined;
184
+ }>>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ ssh?: {
187
+ user?: string | undefined;
188
+ key_path?: string | undefined;
189
+ known_hosts_path?: string | undefined;
190
+ port?: number | undefined;
191
+ } | undefined;
192
+ label_prefix?: string | undefined;
193
+ }, {
194
+ ssh?: {
195
+ user?: string | undefined;
196
+ key_path?: string | undefined;
197
+ known_hosts_path?: string | undefined;
198
+ port?: number | undefined;
199
+ } | undefined;
200
+ label_prefix?: string | undefined;
201
+ }>;
202
+ export type NodeDefaultsType = z.infer<typeof node_defaults_schema>;
203
+ /**
204
+ * GitHub repository configuration for GitOps metadata.
205
+ */
206
+ export declare const github_config_schema: z.ZodObject<{
207
+ organization: z.ZodString;
208
+ repository: z.ZodString;
209
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ repository: string;
212
+ branch: string;
213
+ organization: string;
214
+ }, {
215
+ repository: string;
216
+ organization: string;
217
+ branch?: string | undefined;
218
+ }>;
219
+ export type GithubConfigType = z.infer<typeof github_config_schema>;
220
+ /**
221
+ * Bootstrap credential configuration for secret providers.
222
+ * Allows obtaining credentials from another secret provider.
223
+ */
224
+ export declare const bootstrap_credential_schema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
225
+ type: z.ZodLiteral<"1password">;
226
+ ref: z.ZodString;
227
+ }, "strip", z.ZodTypeAny, {
228
+ type: "1password";
229
+ ref: string;
230
+ }, {
231
+ type: "1password";
232
+ ref: string;
233
+ }>, z.ZodObject<{
234
+ type: z.ZodLiteral<"doppler">;
235
+ project: z.ZodString;
236
+ config: z.ZodString;
237
+ secret: z.ZodString;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type: "doppler";
240
+ secret: string;
241
+ project: string;
242
+ config: string;
243
+ }, {
244
+ type: "doppler";
245
+ secret: string;
246
+ project: string;
247
+ config: string;
248
+ }>]>;
249
+ export type BootstrapCredentialType = z.infer<typeof bootstrap_credential_schema>;
250
+ /**
251
+ * Cluster secret configuration for bootstrapping secrets into the cluster.
252
+ * Used by external-secrets operator to access secret providers.
253
+ */
254
+ export declare const cluster_secret_config_schema: z.ZodObject<{
255
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
256
+ namespace: z.ZodDefault<z.ZodOptional<z.ZodString>>;
257
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
258
+ key: z.ZodDefault<z.ZodOptional<z.ZodString>>;
259
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ name: string;
262
+ namespace: string;
263
+ key: string;
264
+ enabled: boolean;
265
+ annotations?: Record<string, string> | undefined;
266
+ }, {
267
+ name?: string | undefined;
268
+ namespace?: string | undefined;
269
+ key?: string | undefined;
270
+ annotations?: Record<string, string> | undefined;
271
+ enabled?: boolean | undefined;
272
+ }>;
273
+ export type ClusterSecretConfigType = z.infer<typeof cluster_secret_config_schema>;
274
+ /**
275
+ * Doppler secret provider configuration at cluster level.
276
+ */
277
+ export declare const doppler_config_schema: z.ZodObject<{
278
+ project: z.ZodOptional<z.ZodString>;
279
+ config: z.ZodOptional<z.ZodString>;
280
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
281
+ type: z.ZodLiteral<"1password">;
282
+ ref: z.ZodString;
283
+ }, "strip", z.ZodTypeAny, {
284
+ type: "1password";
285
+ ref: string;
286
+ }, {
287
+ type: "1password";
288
+ ref: string;
289
+ }>, z.ZodObject<{
290
+ type: z.ZodLiteral<"doppler">;
291
+ project: z.ZodString;
292
+ config: z.ZodString;
293
+ secret: z.ZodString;
294
+ }, "strip", z.ZodTypeAny, {
295
+ type: "doppler";
296
+ secret: string;
297
+ project: string;
298
+ config: string;
299
+ }, {
300
+ type: "doppler";
301
+ secret: string;
302
+ project: string;
303
+ config: string;
304
+ }>]>>;
305
+ cluster_secret: z.ZodOptional<z.ZodObject<{
306
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
307
+ namespace: z.ZodDefault<z.ZodOptional<z.ZodString>>;
308
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
309
+ key: z.ZodDefault<z.ZodOptional<z.ZodString>>;
310
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ name: string;
313
+ namespace: string;
314
+ key: string;
315
+ enabled: boolean;
316
+ annotations?: Record<string, string> | undefined;
317
+ }, {
318
+ name?: string | undefined;
319
+ namespace?: string | undefined;
320
+ key?: string | undefined;
321
+ annotations?: Record<string, string> | undefined;
322
+ enabled?: boolean | undefined;
323
+ }>>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ project?: string | undefined;
326
+ config?: string | undefined;
327
+ service_token?: {
328
+ type: "1password";
329
+ ref: string;
330
+ } | {
331
+ type: "doppler";
332
+ secret: string;
333
+ project: string;
334
+ config: string;
335
+ } | undefined;
336
+ cluster_secret?: {
337
+ name: string;
338
+ namespace: string;
339
+ key: string;
340
+ enabled: boolean;
341
+ annotations?: Record<string, string> | undefined;
342
+ } | undefined;
343
+ }, {
344
+ project?: string | undefined;
345
+ config?: string | undefined;
346
+ service_token?: {
347
+ type: "1password";
348
+ ref: string;
349
+ } | {
350
+ type: "doppler";
351
+ secret: string;
352
+ project: string;
353
+ config: string;
354
+ } | undefined;
355
+ cluster_secret?: {
356
+ name?: string | undefined;
357
+ namespace?: string | undefined;
358
+ key?: string | undefined;
359
+ annotations?: Record<string, string> | undefined;
360
+ enabled?: boolean | undefined;
361
+ } | undefined;
362
+ }>;
363
+ export type DopplerConfigType = z.infer<typeof doppler_config_schema>;
364
+ /**
365
+ * 1Password secret provider configuration at cluster level.
366
+ */
367
+ export declare const onepassword_config_schema: z.ZodObject<{
368
+ vault: z.ZodString;
369
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
370
+ type: z.ZodLiteral<"1password">;
371
+ ref: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "1password";
374
+ ref: string;
375
+ }, {
376
+ type: "1password";
377
+ ref: string;
378
+ }>, z.ZodObject<{
379
+ type: z.ZodLiteral<"doppler">;
380
+ project: z.ZodString;
381
+ config: z.ZodString;
382
+ secret: z.ZodString;
383
+ }, "strip", z.ZodTypeAny, {
384
+ type: "doppler";
385
+ secret: string;
386
+ project: string;
387
+ config: string;
388
+ }, {
389
+ type: "doppler";
390
+ secret: string;
391
+ project: string;
392
+ config: string;
393
+ }>]>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ vault: string;
396
+ service_account_token?: {
397
+ type: "1password";
398
+ ref: string;
399
+ } | {
400
+ type: "doppler";
401
+ secret: string;
402
+ project: string;
403
+ config: string;
404
+ } | undefined;
405
+ }, {
406
+ vault: string;
407
+ service_account_token?: {
408
+ type: "1password";
409
+ ref: string;
410
+ } | {
411
+ type: "doppler";
412
+ secret: string;
413
+ project: string;
414
+ config: string;
415
+ } | undefined;
416
+ }>;
417
+ export type OnePasswordConfigType = z.infer<typeof onepassword_config_schema>;
418
+ /**
419
+ * Secret providers configuration at cluster level.
420
+ */
421
+ export declare const secrets_config_schema: z.ZodObject<{
422
+ doppler: z.ZodOptional<z.ZodObject<{
423
+ project: z.ZodOptional<z.ZodString>;
424
+ config: z.ZodOptional<z.ZodString>;
425
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
426
+ type: z.ZodLiteral<"1password">;
427
+ ref: z.ZodString;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "1password";
430
+ ref: string;
431
+ }, {
432
+ type: "1password";
433
+ ref: string;
434
+ }>, z.ZodObject<{
435
+ type: z.ZodLiteral<"doppler">;
436
+ project: z.ZodString;
437
+ config: z.ZodString;
438
+ secret: z.ZodString;
439
+ }, "strip", z.ZodTypeAny, {
440
+ type: "doppler";
441
+ secret: string;
442
+ project: string;
443
+ config: string;
444
+ }, {
445
+ type: "doppler";
446
+ secret: string;
447
+ project: string;
448
+ config: string;
449
+ }>]>>;
450
+ cluster_secret: z.ZodOptional<z.ZodObject<{
451
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
452
+ namespace: z.ZodDefault<z.ZodOptional<z.ZodString>>;
453
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
454
+ key: z.ZodDefault<z.ZodOptional<z.ZodString>>;
455
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ name: string;
458
+ namespace: string;
459
+ key: string;
460
+ enabled: boolean;
461
+ annotations?: Record<string, string> | undefined;
462
+ }, {
463
+ name?: string | undefined;
464
+ namespace?: string | undefined;
465
+ key?: string | undefined;
466
+ annotations?: Record<string, string> | undefined;
467
+ enabled?: boolean | undefined;
468
+ }>>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ project?: string | undefined;
471
+ config?: string | undefined;
472
+ service_token?: {
473
+ type: "1password";
474
+ ref: string;
475
+ } | {
476
+ type: "doppler";
477
+ secret: string;
478
+ project: string;
479
+ config: string;
480
+ } | undefined;
481
+ cluster_secret?: {
482
+ name: string;
483
+ namespace: string;
484
+ key: string;
485
+ enabled: boolean;
486
+ annotations?: Record<string, string> | undefined;
487
+ } | undefined;
488
+ }, {
489
+ project?: string | undefined;
490
+ config?: string | undefined;
491
+ service_token?: {
492
+ type: "1password";
493
+ ref: string;
494
+ } | {
495
+ type: "doppler";
496
+ secret: string;
497
+ project: string;
498
+ config: string;
499
+ } | undefined;
500
+ cluster_secret?: {
501
+ name?: string | undefined;
502
+ namespace?: string | undefined;
503
+ key?: string | undefined;
504
+ annotations?: Record<string, string> | undefined;
505
+ enabled?: boolean | undefined;
506
+ } | undefined;
507
+ }>>;
508
+ onepassword: z.ZodOptional<z.ZodObject<{
509
+ vault: z.ZodString;
510
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
511
+ type: z.ZodLiteral<"1password">;
512
+ ref: z.ZodString;
513
+ }, "strip", z.ZodTypeAny, {
514
+ type: "1password";
515
+ ref: string;
516
+ }, {
517
+ type: "1password";
518
+ ref: string;
519
+ }>, z.ZodObject<{
520
+ type: z.ZodLiteral<"doppler">;
521
+ project: z.ZodString;
522
+ config: z.ZodString;
523
+ secret: z.ZodString;
524
+ }, "strip", z.ZodTypeAny, {
525
+ type: "doppler";
526
+ secret: string;
527
+ project: string;
528
+ config: string;
529
+ }, {
530
+ type: "doppler";
531
+ secret: string;
532
+ project: string;
533
+ config: string;
534
+ }>]>>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ vault: string;
537
+ service_account_token?: {
538
+ type: "1password";
539
+ ref: string;
540
+ } | {
541
+ type: "doppler";
542
+ secret: string;
543
+ project: string;
544
+ config: string;
545
+ } | undefined;
546
+ }, {
547
+ vault: string;
548
+ service_account_token?: {
549
+ type: "1password";
550
+ ref: string;
551
+ } | {
552
+ type: "doppler";
553
+ secret: string;
554
+ project: string;
555
+ config: string;
556
+ } | undefined;
557
+ }>>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ doppler?: {
560
+ project?: string | undefined;
561
+ config?: string | undefined;
562
+ service_token?: {
563
+ type: "1password";
564
+ ref: string;
565
+ } | {
566
+ type: "doppler";
567
+ secret: string;
568
+ project: string;
569
+ config: string;
570
+ } | undefined;
571
+ cluster_secret?: {
572
+ name: string;
573
+ namespace: string;
574
+ key: string;
575
+ enabled: boolean;
576
+ annotations?: Record<string, string> | undefined;
577
+ } | undefined;
578
+ } | undefined;
579
+ onepassword?: {
580
+ vault: string;
581
+ service_account_token?: {
582
+ type: "1password";
583
+ ref: string;
584
+ } | {
585
+ type: "doppler";
586
+ secret: string;
587
+ project: string;
588
+ config: string;
589
+ } | undefined;
590
+ } | undefined;
591
+ }, {
592
+ doppler?: {
593
+ project?: string | undefined;
594
+ config?: string | undefined;
595
+ service_token?: {
596
+ type: "1password";
597
+ ref: string;
598
+ } | {
599
+ type: "doppler";
600
+ secret: string;
601
+ project: string;
602
+ config: string;
603
+ } | undefined;
604
+ cluster_secret?: {
605
+ name?: string | undefined;
606
+ namespace?: string | undefined;
607
+ key?: string | undefined;
608
+ annotations?: Record<string, string> | undefined;
609
+ enabled?: boolean | undefined;
610
+ } | undefined;
611
+ } | undefined;
612
+ onepassword?: {
613
+ vault: string;
614
+ service_account_token?: {
615
+ type: "1password";
616
+ ref: string;
617
+ } | {
618
+ type: "doppler";
619
+ secret: string;
620
+ project: string;
621
+ config: string;
622
+ } | undefined;
623
+ } | undefined;
624
+ }>;
625
+ export type SecretsConfigType = z.infer<typeof secrets_config_schema>;
626
+ /**
627
+ * Flux controller settings that can be applied to individual controllers.
628
+ */
629
+ export declare const flux_controller_settings_schema: z.ZodObject<{
630
+ concurrent: z.ZodOptional<z.ZodNumber>;
631
+ requeue_dependency: z.ZodOptional<z.ZodString>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ concurrent?: number | undefined;
634
+ requeue_dependency?: string | undefined;
635
+ }, {
636
+ concurrent?: number | undefined;
637
+ requeue_dependency?: string | undefined;
638
+ }>;
639
+ export type FluxControllerSettingsType = z.infer<typeof flux_controller_settings_schema>;
640
+ /**
641
+ * Flux controllers configuration.
642
+ * Settings can be applied globally or per-controller.
643
+ */
644
+ export declare const flux_controllers_config_schema: z.ZodObject<{
645
+ concurrent: z.ZodOptional<z.ZodNumber>;
646
+ requeue_dependency: z.ZodOptional<z.ZodString>;
647
+ kustomize_controller: z.ZodOptional<z.ZodObject<{
648
+ concurrent: z.ZodOptional<z.ZodNumber>;
649
+ requeue_dependency: z.ZodOptional<z.ZodString>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ concurrent?: number | undefined;
652
+ requeue_dependency?: string | undefined;
653
+ }, {
654
+ concurrent?: number | undefined;
655
+ requeue_dependency?: string | undefined;
656
+ }>>;
657
+ helm_controller: z.ZodOptional<z.ZodObject<{
658
+ concurrent: z.ZodOptional<z.ZodNumber>;
659
+ requeue_dependency: z.ZodOptional<z.ZodString>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ concurrent?: number | undefined;
662
+ requeue_dependency?: string | undefined;
663
+ }, {
664
+ concurrent?: number | undefined;
665
+ requeue_dependency?: string | undefined;
666
+ }>>;
667
+ source_controller: z.ZodOptional<z.ZodObject<{
668
+ concurrent: z.ZodOptional<z.ZodNumber>;
669
+ requeue_dependency: z.ZodOptional<z.ZodString>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ concurrent?: number | undefined;
672
+ requeue_dependency?: string | undefined;
673
+ }, {
674
+ concurrent?: number | undefined;
675
+ requeue_dependency?: string | undefined;
676
+ }>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ concurrent?: number | undefined;
679
+ requeue_dependency?: string | undefined;
680
+ kustomize_controller?: {
681
+ concurrent?: number | undefined;
682
+ requeue_dependency?: string | undefined;
683
+ } | undefined;
684
+ helm_controller?: {
685
+ concurrent?: number | undefined;
686
+ requeue_dependency?: string | undefined;
687
+ } | undefined;
688
+ source_controller?: {
689
+ concurrent?: number | undefined;
690
+ requeue_dependency?: string | undefined;
691
+ } | undefined;
692
+ }, {
693
+ concurrent?: number | undefined;
694
+ requeue_dependency?: string | undefined;
695
+ kustomize_controller?: {
696
+ concurrent?: number | undefined;
697
+ requeue_dependency?: string | undefined;
698
+ } | undefined;
699
+ helm_controller?: {
700
+ concurrent?: number | undefined;
701
+ requeue_dependency?: string | undefined;
702
+ } | undefined;
703
+ source_controller?: {
704
+ concurrent?: number | undefined;
705
+ requeue_dependency?: string | undefined;
706
+ } | undefined;
707
+ }>;
708
+ export type FluxControllersConfigType = z.infer<typeof flux_controllers_config_schema>;
709
+ /**
710
+ * Flux system configuration at cluster level.
711
+ */
712
+ export declare const flux_config_schema: z.ZodObject<{
713
+ controllers: z.ZodOptional<z.ZodObject<{
714
+ concurrent: z.ZodOptional<z.ZodNumber>;
715
+ requeue_dependency: z.ZodOptional<z.ZodString>;
716
+ kustomize_controller: z.ZodOptional<z.ZodObject<{
717
+ concurrent: z.ZodOptional<z.ZodNumber>;
718
+ requeue_dependency: z.ZodOptional<z.ZodString>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ concurrent?: number | undefined;
721
+ requeue_dependency?: string | undefined;
722
+ }, {
723
+ concurrent?: number | undefined;
724
+ requeue_dependency?: string | undefined;
725
+ }>>;
726
+ helm_controller: z.ZodOptional<z.ZodObject<{
727
+ concurrent: z.ZodOptional<z.ZodNumber>;
728
+ requeue_dependency: z.ZodOptional<z.ZodString>;
729
+ }, "strip", z.ZodTypeAny, {
730
+ concurrent?: number | undefined;
731
+ requeue_dependency?: string | undefined;
732
+ }, {
733
+ concurrent?: number | undefined;
734
+ requeue_dependency?: string | undefined;
735
+ }>>;
736
+ source_controller: z.ZodOptional<z.ZodObject<{
737
+ concurrent: z.ZodOptional<z.ZodNumber>;
738
+ requeue_dependency: z.ZodOptional<z.ZodString>;
739
+ }, "strip", z.ZodTypeAny, {
740
+ concurrent?: number | undefined;
741
+ requeue_dependency?: string | undefined;
742
+ }, {
743
+ concurrent?: number | undefined;
744
+ requeue_dependency?: string | undefined;
745
+ }>>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ concurrent?: number | undefined;
748
+ requeue_dependency?: string | undefined;
749
+ kustomize_controller?: {
750
+ concurrent?: number | undefined;
751
+ requeue_dependency?: string | undefined;
752
+ } | undefined;
753
+ helm_controller?: {
754
+ concurrent?: number | undefined;
755
+ requeue_dependency?: string | undefined;
756
+ } | undefined;
757
+ source_controller?: {
758
+ concurrent?: number | undefined;
759
+ requeue_dependency?: string | undefined;
760
+ } | undefined;
761
+ }, {
762
+ concurrent?: number | undefined;
763
+ requeue_dependency?: string | undefined;
764
+ kustomize_controller?: {
765
+ concurrent?: number | undefined;
766
+ requeue_dependency?: string | undefined;
767
+ } | undefined;
768
+ helm_controller?: {
769
+ concurrent?: number | undefined;
770
+ requeue_dependency?: string | undefined;
771
+ } | undefined;
772
+ source_controller?: {
773
+ concurrent?: number | undefined;
774
+ requeue_dependency?: string | undefined;
775
+ } | undefined;
776
+ }>>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ controllers?: {
779
+ concurrent?: number | undefined;
780
+ requeue_dependency?: string | undefined;
781
+ kustomize_controller?: {
782
+ concurrent?: number | undefined;
783
+ requeue_dependency?: string | undefined;
784
+ } | undefined;
785
+ helm_controller?: {
786
+ concurrent?: number | undefined;
787
+ requeue_dependency?: string | undefined;
788
+ } | undefined;
789
+ source_controller?: {
790
+ concurrent?: number | undefined;
791
+ requeue_dependency?: string | undefined;
792
+ } | undefined;
793
+ } | undefined;
794
+ }, {
795
+ controllers?: {
796
+ concurrent?: number | undefined;
797
+ requeue_dependency?: string | undefined;
798
+ kustomize_controller?: {
799
+ concurrent?: number | undefined;
800
+ requeue_dependency?: string | undefined;
801
+ } | undefined;
802
+ helm_controller?: {
803
+ concurrent?: number | undefined;
804
+ requeue_dependency?: string | undefined;
805
+ } | undefined;
806
+ source_controller?: {
807
+ concurrent?: number | undefined;
808
+ requeue_dependency?: string | undefined;
809
+ } | undefined;
810
+ } | undefined;
811
+ }>;
812
+ export type FluxConfigType = z.infer<typeof flux_config_schema>;
813
+ /**
814
+ * Cluster-level defaults that override project defaults.
815
+ * All values are optional - fallback to project defaults, then schema defaults.
816
+ */
817
+ export declare const defaults_config_schema: z.ZodObject<{
818
+ /** Flux system namespace where Flux controllers run */
819
+ flux_namespace: z.ZodOptional<z.ZodString>;
820
+ /** Flux OCIRepository resource name */
821
+ oci_repository_name: z.ZodOptional<z.ZodString>;
822
+ /** Secret name for OCI registry authentication */
823
+ oci_registry_secret_name: z.ZodOptional<z.ZodString>;
824
+ /** Reconciliation interval for Flux resources */
825
+ flux_reconciliation_interval: z.ZodOptional<z.ZodString>;
826
+ /** Timeout for Flux reconciliation */
827
+ flux_reconciliation_timeout: z.ZodOptional<z.ZodString>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ flux_namespace?: string | undefined;
830
+ oci_repository_name?: string | undefined;
831
+ oci_registry_secret_name?: string | undefined;
832
+ flux_reconciliation_interval?: string | undefined;
833
+ flux_reconciliation_timeout?: string | undefined;
834
+ }, {
835
+ flux_namespace?: string | undefined;
836
+ oci_repository_name?: string | undefined;
837
+ oci_registry_secret_name?: string | undefined;
838
+ flux_reconciliation_interval?: string | undefined;
839
+ flux_reconciliation_timeout?: string | undefined;
840
+ }>;
841
+ export type DefaultsConfigType = z.infer<typeof defaults_config_schema>;
842
+ /**
843
+ * Cluster specification.
844
+ *
845
+ * IMPORTANT: Understanding git vs oci configuration:
846
+ * - `git`: Source metadata only (which repo/commit artifacts came from)
847
+ * - `oci`: Deployment mechanism (where Flux watches for artifacts)
848
+ *
849
+ * Deployment flow:
850
+ * 1. You commit changes to git and merge to main
851
+ * 2. Run `kustodian apply` to push artifacts to OCI with git metadata
852
+ * 3. Flux watches the OCI registry and deploys the artifacts
853
+ *
854
+ * The git branch is NOT watched by Flux - only the OCI registry is.
855
+ */
856
+ export declare const cluster_spec_schema: z.ZodEffects<z.ZodObject<{
857
+ code: z.ZodOptional<z.ZodString>;
858
+ git: z.ZodOptional<z.ZodObject<{
859
+ owner: z.ZodString;
860
+ repository: z.ZodString;
861
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
862
+ path: z.ZodOptional<z.ZodString>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ repository: string;
865
+ owner: string;
866
+ branch: string;
867
+ path?: string | undefined;
868
+ }, {
869
+ repository: string;
870
+ owner: string;
871
+ path?: string | undefined;
872
+ branch?: string | undefined;
873
+ }>>;
874
+ oci: z.ZodOptional<z.ZodObject<{
875
+ registry: z.ZodString;
876
+ repository: z.ZodString;
877
+ tag_strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cluster", "git-sha", "version", "manual"]>>>;
878
+ tag: z.ZodOptional<z.ZodString>;
879
+ secret_ref: z.ZodOptional<z.ZodString>;
880
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<["aws", "azure", "gcp", "generic"]>>>;
881
+ insecure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ repository: string;
884
+ registry: string;
885
+ provider: "generic" | "aws" | "azure" | "gcp";
886
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
887
+ insecure: boolean;
888
+ tag?: string | undefined;
889
+ secret_ref?: string | undefined;
890
+ }, {
891
+ repository: string;
892
+ registry: string;
893
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
894
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
895
+ tag?: string | undefined;
896
+ secret_ref?: string | undefined;
897
+ insecure?: boolean | undefined;
898
+ }>>;
899
+ github: z.ZodOptional<z.ZodObject<{
900
+ organization: z.ZodString;
901
+ repository: z.ZodString;
902
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ repository: string;
905
+ branch: string;
906
+ organization: string;
907
+ }, {
908
+ repository: string;
909
+ organization: string;
910
+ branch?: string | undefined;
911
+ }>>;
912
+ flux: z.ZodOptional<z.ZodObject<{
913
+ controllers: z.ZodOptional<z.ZodObject<{
914
+ concurrent: z.ZodOptional<z.ZodNumber>;
915
+ requeue_dependency: z.ZodOptional<z.ZodString>;
916
+ kustomize_controller: z.ZodOptional<z.ZodObject<{
917
+ concurrent: z.ZodOptional<z.ZodNumber>;
918
+ requeue_dependency: z.ZodOptional<z.ZodString>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ concurrent?: number | undefined;
921
+ requeue_dependency?: string | undefined;
922
+ }, {
923
+ concurrent?: number | undefined;
924
+ requeue_dependency?: string | undefined;
925
+ }>>;
926
+ helm_controller: z.ZodOptional<z.ZodObject<{
927
+ concurrent: z.ZodOptional<z.ZodNumber>;
928
+ requeue_dependency: z.ZodOptional<z.ZodString>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ concurrent?: number | undefined;
931
+ requeue_dependency?: string | undefined;
932
+ }, {
933
+ concurrent?: number | undefined;
934
+ requeue_dependency?: string | undefined;
935
+ }>>;
936
+ source_controller: z.ZodOptional<z.ZodObject<{
937
+ concurrent: z.ZodOptional<z.ZodNumber>;
938
+ requeue_dependency: z.ZodOptional<z.ZodString>;
939
+ }, "strip", z.ZodTypeAny, {
940
+ concurrent?: number | undefined;
941
+ requeue_dependency?: string | undefined;
942
+ }, {
943
+ concurrent?: number | undefined;
944
+ requeue_dependency?: string | undefined;
945
+ }>>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ concurrent?: number | undefined;
948
+ requeue_dependency?: string | undefined;
949
+ kustomize_controller?: {
950
+ concurrent?: number | undefined;
951
+ requeue_dependency?: string | undefined;
952
+ } | undefined;
953
+ helm_controller?: {
954
+ concurrent?: number | undefined;
955
+ requeue_dependency?: string | undefined;
956
+ } | undefined;
957
+ source_controller?: {
958
+ concurrent?: number | undefined;
959
+ requeue_dependency?: string | undefined;
960
+ } | undefined;
961
+ }, {
962
+ concurrent?: number | undefined;
963
+ requeue_dependency?: string | undefined;
964
+ kustomize_controller?: {
965
+ concurrent?: number | undefined;
966
+ requeue_dependency?: string | undefined;
967
+ } | undefined;
968
+ helm_controller?: {
969
+ concurrent?: number | undefined;
970
+ requeue_dependency?: string | undefined;
971
+ } | undefined;
972
+ source_controller?: {
973
+ concurrent?: number | undefined;
974
+ requeue_dependency?: string | undefined;
975
+ } | undefined;
976
+ }>>;
977
+ }, "strip", z.ZodTypeAny, {
978
+ controllers?: {
979
+ concurrent?: number | undefined;
980
+ requeue_dependency?: string | undefined;
981
+ kustomize_controller?: {
982
+ concurrent?: number | undefined;
983
+ requeue_dependency?: string | undefined;
984
+ } | undefined;
985
+ helm_controller?: {
986
+ concurrent?: number | undefined;
987
+ requeue_dependency?: string | undefined;
988
+ } | undefined;
989
+ source_controller?: {
990
+ concurrent?: number | undefined;
991
+ requeue_dependency?: string | undefined;
992
+ } | undefined;
993
+ } | undefined;
994
+ }, {
995
+ controllers?: {
996
+ concurrent?: number | undefined;
997
+ requeue_dependency?: string | undefined;
998
+ kustomize_controller?: {
999
+ concurrent?: number | undefined;
1000
+ requeue_dependency?: string | undefined;
1001
+ } | undefined;
1002
+ helm_controller?: {
1003
+ concurrent?: number | undefined;
1004
+ requeue_dependency?: string | undefined;
1005
+ } | undefined;
1006
+ source_controller?: {
1007
+ concurrent?: number | undefined;
1008
+ requeue_dependency?: string | undefined;
1009
+ } | undefined;
1010
+ } | undefined;
1011
+ }>>;
1012
+ defaults: z.ZodOptional<z.ZodObject<{
1013
+ /** Flux system namespace where Flux controllers run */
1014
+ flux_namespace: z.ZodOptional<z.ZodString>;
1015
+ /** Flux OCIRepository resource name */
1016
+ oci_repository_name: z.ZodOptional<z.ZodString>;
1017
+ /** Secret name for OCI registry authentication */
1018
+ oci_registry_secret_name: z.ZodOptional<z.ZodString>;
1019
+ /** Reconciliation interval for Flux resources */
1020
+ flux_reconciliation_interval: z.ZodOptional<z.ZodString>;
1021
+ /** Timeout for Flux reconciliation */
1022
+ flux_reconciliation_timeout: z.ZodOptional<z.ZodString>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ flux_namespace?: string | undefined;
1025
+ oci_repository_name?: string | undefined;
1026
+ oci_registry_secret_name?: string | undefined;
1027
+ flux_reconciliation_interval?: string | undefined;
1028
+ flux_reconciliation_timeout?: string | undefined;
1029
+ }, {
1030
+ flux_namespace?: string | undefined;
1031
+ oci_repository_name?: string | undefined;
1032
+ oci_registry_secret_name?: string | undefined;
1033
+ flux_reconciliation_interval?: string | undefined;
1034
+ flux_reconciliation_timeout?: string | undefined;
1035
+ }>>;
1036
+ templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1037
+ name: z.ZodString;
1038
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1039
+ kustomizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1040
+ preservation: z.ZodOptional<z.ZodObject<{
1041
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
1042
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ mode: "custom" | "none" | "stateful";
1045
+ keep_resources?: string[] | undefined;
1046
+ }, {
1047
+ mode: "custom" | "none" | "stateful";
1048
+ keep_resources?: string[] | undefined;
1049
+ }>>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ preservation?: {
1052
+ mode: "custom" | "none" | "stateful";
1053
+ keep_resources?: string[] | undefined;
1054
+ } | undefined;
1055
+ }, {
1056
+ preservation?: {
1057
+ mode: "custom" | "none" | "stateful";
1058
+ keep_resources?: string[] | undefined;
1059
+ } | undefined;
1060
+ }>>>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ name: string;
1063
+ values?: Record<string, string> | undefined;
1064
+ kustomizations?: Record<string, {
1065
+ preservation?: {
1066
+ mode: "custom" | "none" | "stateful";
1067
+ keep_resources?: string[] | undefined;
1068
+ } | undefined;
1069
+ }> | undefined;
1070
+ }, {
1071
+ name: string;
1072
+ values?: Record<string, string> | undefined;
1073
+ kustomizations?: Record<string, {
1074
+ preservation?: {
1075
+ mode: "custom" | "none" | "stateful";
1076
+ keep_resources?: string[] | undefined;
1077
+ } | undefined;
1078
+ }> | undefined;
1079
+ }>, "many">>;
1080
+ plugins: z.ZodOptional<z.ZodArray<z.ZodObject<{
1081
+ name: z.ZodString;
1082
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ name: string;
1085
+ config?: Record<string, unknown> | undefined;
1086
+ }, {
1087
+ name: string;
1088
+ config?: Record<string, unknown> | undefined;
1089
+ }>, "many">>;
1090
+ node_defaults: z.ZodOptional<z.ZodObject<{
1091
+ label_prefix: z.ZodOptional<z.ZodString>;
1092
+ ssh: z.ZodOptional<z.ZodObject<{
1093
+ user: z.ZodOptional<z.ZodString>;
1094
+ key_path: z.ZodOptional<z.ZodString>;
1095
+ known_hosts_path: z.ZodOptional<z.ZodString>;
1096
+ port: z.ZodOptional<z.ZodNumber>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ user?: string | undefined;
1099
+ key_path?: string | undefined;
1100
+ known_hosts_path?: string | undefined;
1101
+ port?: number | undefined;
1102
+ }, {
1103
+ user?: string | undefined;
1104
+ key_path?: string | undefined;
1105
+ known_hosts_path?: string | undefined;
1106
+ port?: number | undefined;
1107
+ }>>;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ ssh?: {
1110
+ user?: string | undefined;
1111
+ key_path?: string | undefined;
1112
+ known_hosts_path?: string | undefined;
1113
+ port?: number | undefined;
1114
+ } | undefined;
1115
+ label_prefix?: string | undefined;
1116
+ }, {
1117
+ ssh?: {
1118
+ user?: string | undefined;
1119
+ key_path?: string | undefined;
1120
+ known_hosts_path?: string | undefined;
1121
+ port?: number | undefined;
1122
+ } | undefined;
1123
+ label_prefix?: string | undefined;
1124
+ }>>;
1125
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1126
+ secrets: z.ZodOptional<z.ZodObject<{
1127
+ doppler: z.ZodOptional<z.ZodObject<{
1128
+ project: z.ZodOptional<z.ZodString>;
1129
+ config: z.ZodOptional<z.ZodString>;
1130
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1131
+ type: z.ZodLiteral<"1password">;
1132
+ ref: z.ZodString;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ type: "1password";
1135
+ ref: string;
1136
+ }, {
1137
+ type: "1password";
1138
+ ref: string;
1139
+ }>, z.ZodObject<{
1140
+ type: z.ZodLiteral<"doppler">;
1141
+ project: z.ZodString;
1142
+ config: z.ZodString;
1143
+ secret: z.ZodString;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ type: "doppler";
1146
+ secret: string;
1147
+ project: string;
1148
+ config: string;
1149
+ }, {
1150
+ type: "doppler";
1151
+ secret: string;
1152
+ project: string;
1153
+ config: string;
1154
+ }>]>>;
1155
+ cluster_secret: z.ZodOptional<z.ZodObject<{
1156
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1157
+ namespace: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1158
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1159
+ key: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1160
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ name: string;
1163
+ namespace: string;
1164
+ key: string;
1165
+ enabled: boolean;
1166
+ annotations?: Record<string, string> | undefined;
1167
+ }, {
1168
+ name?: string | undefined;
1169
+ namespace?: string | undefined;
1170
+ key?: string | undefined;
1171
+ annotations?: Record<string, string> | undefined;
1172
+ enabled?: boolean | undefined;
1173
+ }>>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ project?: string | undefined;
1176
+ config?: string | undefined;
1177
+ service_token?: {
1178
+ type: "1password";
1179
+ ref: string;
1180
+ } | {
1181
+ type: "doppler";
1182
+ secret: string;
1183
+ project: string;
1184
+ config: string;
1185
+ } | undefined;
1186
+ cluster_secret?: {
1187
+ name: string;
1188
+ namespace: string;
1189
+ key: string;
1190
+ enabled: boolean;
1191
+ annotations?: Record<string, string> | undefined;
1192
+ } | undefined;
1193
+ }, {
1194
+ project?: string | undefined;
1195
+ config?: string | undefined;
1196
+ service_token?: {
1197
+ type: "1password";
1198
+ ref: string;
1199
+ } | {
1200
+ type: "doppler";
1201
+ secret: string;
1202
+ project: string;
1203
+ config: string;
1204
+ } | undefined;
1205
+ cluster_secret?: {
1206
+ name?: string | undefined;
1207
+ namespace?: string | undefined;
1208
+ key?: string | undefined;
1209
+ annotations?: Record<string, string> | undefined;
1210
+ enabled?: boolean | undefined;
1211
+ } | undefined;
1212
+ }>>;
1213
+ onepassword: z.ZodOptional<z.ZodObject<{
1214
+ vault: z.ZodString;
1215
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1216
+ type: z.ZodLiteral<"1password">;
1217
+ ref: z.ZodString;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ type: "1password";
1220
+ ref: string;
1221
+ }, {
1222
+ type: "1password";
1223
+ ref: string;
1224
+ }>, z.ZodObject<{
1225
+ type: z.ZodLiteral<"doppler">;
1226
+ project: z.ZodString;
1227
+ config: z.ZodString;
1228
+ secret: z.ZodString;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ type: "doppler";
1231
+ secret: string;
1232
+ project: string;
1233
+ config: string;
1234
+ }, {
1235
+ type: "doppler";
1236
+ secret: string;
1237
+ project: string;
1238
+ config: string;
1239
+ }>]>>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ vault: string;
1242
+ service_account_token?: {
1243
+ type: "1password";
1244
+ ref: string;
1245
+ } | {
1246
+ type: "doppler";
1247
+ secret: string;
1248
+ project: string;
1249
+ config: string;
1250
+ } | undefined;
1251
+ }, {
1252
+ vault: string;
1253
+ service_account_token?: {
1254
+ type: "1password";
1255
+ ref: string;
1256
+ } | {
1257
+ type: "doppler";
1258
+ secret: string;
1259
+ project: string;
1260
+ config: string;
1261
+ } | undefined;
1262
+ }>>;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ doppler?: {
1265
+ project?: string | undefined;
1266
+ config?: string | undefined;
1267
+ service_token?: {
1268
+ type: "1password";
1269
+ ref: string;
1270
+ } | {
1271
+ type: "doppler";
1272
+ secret: string;
1273
+ project: string;
1274
+ config: string;
1275
+ } | undefined;
1276
+ cluster_secret?: {
1277
+ name: string;
1278
+ namespace: string;
1279
+ key: string;
1280
+ enabled: boolean;
1281
+ annotations?: Record<string, string> | undefined;
1282
+ } | undefined;
1283
+ } | undefined;
1284
+ onepassword?: {
1285
+ vault: string;
1286
+ service_account_token?: {
1287
+ type: "1password";
1288
+ ref: string;
1289
+ } | {
1290
+ type: "doppler";
1291
+ secret: string;
1292
+ project: string;
1293
+ config: string;
1294
+ } | undefined;
1295
+ } | undefined;
1296
+ }, {
1297
+ doppler?: {
1298
+ project?: string | undefined;
1299
+ config?: string | undefined;
1300
+ service_token?: {
1301
+ type: "1password";
1302
+ ref: string;
1303
+ } | {
1304
+ type: "doppler";
1305
+ secret: string;
1306
+ project: string;
1307
+ config: string;
1308
+ } | undefined;
1309
+ cluster_secret?: {
1310
+ name?: string | undefined;
1311
+ namespace?: string | undefined;
1312
+ key?: string | undefined;
1313
+ annotations?: Record<string, string> | undefined;
1314
+ enabled?: boolean | undefined;
1315
+ } | undefined;
1316
+ } | undefined;
1317
+ onepassword?: {
1318
+ vault: string;
1319
+ service_account_token?: {
1320
+ type: "1password";
1321
+ ref: string;
1322
+ } | {
1323
+ type: "doppler";
1324
+ secret: string;
1325
+ project: string;
1326
+ config: string;
1327
+ } | undefined;
1328
+ } | undefined;
1329
+ }>>;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ code?: string | undefined;
1332
+ oci?: {
1333
+ repository: string;
1334
+ registry: string;
1335
+ provider: "generic" | "aws" | "azure" | "gcp";
1336
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
1337
+ insecure: boolean;
1338
+ tag?: string | undefined;
1339
+ secret_ref?: string | undefined;
1340
+ } | undefined;
1341
+ git?: {
1342
+ repository: string;
1343
+ owner: string;
1344
+ branch: string;
1345
+ path?: string | undefined;
1346
+ } | undefined;
1347
+ github?: {
1348
+ repository: string;
1349
+ branch: string;
1350
+ organization: string;
1351
+ } | undefined;
1352
+ flux?: {
1353
+ controllers?: {
1354
+ concurrent?: number | undefined;
1355
+ requeue_dependency?: string | undefined;
1356
+ kustomize_controller?: {
1357
+ concurrent?: number | undefined;
1358
+ requeue_dependency?: string | undefined;
1359
+ } | undefined;
1360
+ helm_controller?: {
1361
+ concurrent?: number | undefined;
1362
+ requeue_dependency?: string | undefined;
1363
+ } | undefined;
1364
+ source_controller?: {
1365
+ concurrent?: number | undefined;
1366
+ requeue_dependency?: string | undefined;
1367
+ } | undefined;
1368
+ } | undefined;
1369
+ } | undefined;
1370
+ defaults?: {
1371
+ flux_namespace?: string | undefined;
1372
+ oci_repository_name?: string | undefined;
1373
+ oci_registry_secret_name?: string | undefined;
1374
+ flux_reconciliation_interval?: string | undefined;
1375
+ flux_reconciliation_timeout?: string | undefined;
1376
+ } | undefined;
1377
+ templates?: {
1378
+ name: string;
1379
+ values?: Record<string, string> | undefined;
1380
+ kustomizations?: Record<string, {
1381
+ preservation?: {
1382
+ mode: "custom" | "none" | "stateful";
1383
+ keep_resources?: string[] | undefined;
1384
+ } | undefined;
1385
+ }> | undefined;
1386
+ }[] | undefined;
1387
+ plugins?: {
1388
+ name: string;
1389
+ config?: Record<string, unknown> | undefined;
1390
+ }[] | undefined;
1391
+ node_defaults?: {
1392
+ ssh?: {
1393
+ user?: string | undefined;
1394
+ key_path?: string | undefined;
1395
+ known_hosts_path?: string | undefined;
1396
+ port?: number | undefined;
1397
+ } | undefined;
1398
+ label_prefix?: string | undefined;
1399
+ } | undefined;
1400
+ nodes?: string[] | undefined;
1401
+ secrets?: {
1402
+ doppler?: {
1403
+ project?: string | undefined;
1404
+ config?: string | undefined;
1405
+ service_token?: {
1406
+ type: "1password";
1407
+ ref: string;
1408
+ } | {
1409
+ type: "doppler";
1410
+ secret: string;
1411
+ project: string;
1412
+ config: string;
1413
+ } | undefined;
1414
+ cluster_secret?: {
1415
+ name: string;
1416
+ namespace: string;
1417
+ key: string;
1418
+ enabled: boolean;
1419
+ annotations?: Record<string, string> | undefined;
1420
+ } | undefined;
1421
+ } | undefined;
1422
+ onepassword?: {
1423
+ vault: string;
1424
+ service_account_token?: {
1425
+ type: "1password";
1426
+ ref: string;
1427
+ } | {
1428
+ type: "doppler";
1429
+ secret: string;
1430
+ project: string;
1431
+ config: string;
1432
+ } | undefined;
1433
+ } | undefined;
1434
+ } | undefined;
1435
+ }, {
1436
+ code?: string | undefined;
1437
+ oci?: {
1438
+ repository: string;
1439
+ registry: string;
1440
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
1441
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
1442
+ tag?: string | undefined;
1443
+ secret_ref?: string | undefined;
1444
+ insecure?: boolean | undefined;
1445
+ } | undefined;
1446
+ git?: {
1447
+ repository: string;
1448
+ owner: string;
1449
+ path?: string | undefined;
1450
+ branch?: string | undefined;
1451
+ } | undefined;
1452
+ github?: {
1453
+ repository: string;
1454
+ organization: string;
1455
+ branch?: string | undefined;
1456
+ } | undefined;
1457
+ flux?: {
1458
+ controllers?: {
1459
+ concurrent?: number | undefined;
1460
+ requeue_dependency?: string | undefined;
1461
+ kustomize_controller?: {
1462
+ concurrent?: number | undefined;
1463
+ requeue_dependency?: string | undefined;
1464
+ } | undefined;
1465
+ helm_controller?: {
1466
+ concurrent?: number | undefined;
1467
+ requeue_dependency?: string | undefined;
1468
+ } | undefined;
1469
+ source_controller?: {
1470
+ concurrent?: number | undefined;
1471
+ requeue_dependency?: string | undefined;
1472
+ } | undefined;
1473
+ } | undefined;
1474
+ } | undefined;
1475
+ defaults?: {
1476
+ flux_namespace?: string | undefined;
1477
+ oci_repository_name?: string | undefined;
1478
+ oci_registry_secret_name?: string | undefined;
1479
+ flux_reconciliation_interval?: string | undefined;
1480
+ flux_reconciliation_timeout?: string | undefined;
1481
+ } | undefined;
1482
+ templates?: {
1483
+ name: string;
1484
+ values?: Record<string, string> | undefined;
1485
+ kustomizations?: Record<string, {
1486
+ preservation?: {
1487
+ mode: "custom" | "none" | "stateful";
1488
+ keep_resources?: string[] | undefined;
1489
+ } | undefined;
1490
+ }> | undefined;
1491
+ }[] | undefined;
1492
+ plugins?: {
1493
+ name: string;
1494
+ config?: Record<string, unknown> | undefined;
1495
+ }[] | undefined;
1496
+ node_defaults?: {
1497
+ ssh?: {
1498
+ user?: string | undefined;
1499
+ key_path?: string | undefined;
1500
+ known_hosts_path?: string | undefined;
1501
+ port?: number | undefined;
1502
+ } | undefined;
1503
+ label_prefix?: string | undefined;
1504
+ } | undefined;
1505
+ nodes?: string[] | undefined;
1506
+ secrets?: {
1507
+ doppler?: {
1508
+ project?: string | undefined;
1509
+ config?: string | undefined;
1510
+ service_token?: {
1511
+ type: "1password";
1512
+ ref: string;
1513
+ } | {
1514
+ type: "doppler";
1515
+ secret: string;
1516
+ project: string;
1517
+ config: string;
1518
+ } | undefined;
1519
+ cluster_secret?: {
1520
+ name?: string | undefined;
1521
+ namespace?: string | undefined;
1522
+ key?: string | undefined;
1523
+ annotations?: Record<string, string> | undefined;
1524
+ enabled?: boolean | undefined;
1525
+ } | undefined;
1526
+ } | undefined;
1527
+ onepassword?: {
1528
+ vault: string;
1529
+ service_account_token?: {
1530
+ type: "1password";
1531
+ ref: string;
1532
+ } | {
1533
+ type: "doppler";
1534
+ secret: string;
1535
+ project: string;
1536
+ config: string;
1537
+ } | undefined;
1538
+ } | undefined;
1539
+ } | undefined;
1540
+ }>, {
1541
+ code?: string | undefined;
1542
+ oci?: {
1543
+ repository: string;
1544
+ registry: string;
1545
+ provider: "generic" | "aws" | "azure" | "gcp";
1546
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
1547
+ insecure: boolean;
1548
+ tag?: string | undefined;
1549
+ secret_ref?: string | undefined;
1550
+ } | undefined;
1551
+ git?: {
1552
+ repository: string;
1553
+ owner: string;
1554
+ branch: string;
1555
+ path?: string | undefined;
1556
+ } | undefined;
1557
+ github?: {
1558
+ repository: string;
1559
+ branch: string;
1560
+ organization: string;
1561
+ } | undefined;
1562
+ flux?: {
1563
+ controllers?: {
1564
+ concurrent?: number | undefined;
1565
+ requeue_dependency?: string | undefined;
1566
+ kustomize_controller?: {
1567
+ concurrent?: number | undefined;
1568
+ requeue_dependency?: string | undefined;
1569
+ } | undefined;
1570
+ helm_controller?: {
1571
+ concurrent?: number | undefined;
1572
+ requeue_dependency?: string | undefined;
1573
+ } | undefined;
1574
+ source_controller?: {
1575
+ concurrent?: number | undefined;
1576
+ requeue_dependency?: string | undefined;
1577
+ } | undefined;
1578
+ } | undefined;
1579
+ } | undefined;
1580
+ defaults?: {
1581
+ flux_namespace?: string | undefined;
1582
+ oci_repository_name?: string | undefined;
1583
+ oci_registry_secret_name?: string | undefined;
1584
+ flux_reconciliation_interval?: string | undefined;
1585
+ flux_reconciliation_timeout?: string | undefined;
1586
+ } | undefined;
1587
+ templates?: {
1588
+ name: string;
1589
+ values?: Record<string, string> | undefined;
1590
+ kustomizations?: Record<string, {
1591
+ preservation?: {
1592
+ mode: "custom" | "none" | "stateful";
1593
+ keep_resources?: string[] | undefined;
1594
+ } | undefined;
1595
+ }> | undefined;
1596
+ }[] | undefined;
1597
+ plugins?: {
1598
+ name: string;
1599
+ config?: Record<string, unknown> | undefined;
1600
+ }[] | undefined;
1601
+ node_defaults?: {
1602
+ ssh?: {
1603
+ user?: string | undefined;
1604
+ key_path?: string | undefined;
1605
+ known_hosts_path?: string | undefined;
1606
+ port?: number | undefined;
1607
+ } | undefined;
1608
+ label_prefix?: string | undefined;
1609
+ } | undefined;
1610
+ nodes?: string[] | undefined;
1611
+ secrets?: {
1612
+ doppler?: {
1613
+ project?: string | undefined;
1614
+ config?: string | undefined;
1615
+ service_token?: {
1616
+ type: "1password";
1617
+ ref: string;
1618
+ } | {
1619
+ type: "doppler";
1620
+ secret: string;
1621
+ project: string;
1622
+ config: string;
1623
+ } | undefined;
1624
+ cluster_secret?: {
1625
+ name: string;
1626
+ namespace: string;
1627
+ key: string;
1628
+ enabled: boolean;
1629
+ annotations?: Record<string, string> | undefined;
1630
+ } | undefined;
1631
+ } | undefined;
1632
+ onepassword?: {
1633
+ vault: string;
1634
+ service_account_token?: {
1635
+ type: "1password";
1636
+ ref: string;
1637
+ } | {
1638
+ type: "doppler";
1639
+ secret: string;
1640
+ project: string;
1641
+ config: string;
1642
+ } | undefined;
1643
+ } | undefined;
1644
+ } | undefined;
1645
+ }, {
1646
+ code?: string | undefined;
1647
+ oci?: {
1648
+ repository: string;
1649
+ registry: string;
1650
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
1651
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
1652
+ tag?: string | undefined;
1653
+ secret_ref?: string | undefined;
1654
+ insecure?: boolean | undefined;
1655
+ } | undefined;
1656
+ git?: {
1657
+ repository: string;
1658
+ owner: string;
1659
+ path?: string | undefined;
1660
+ branch?: string | undefined;
1661
+ } | undefined;
1662
+ github?: {
1663
+ repository: string;
1664
+ organization: string;
1665
+ branch?: string | undefined;
1666
+ } | undefined;
1667
+ flux?: {
1668
+ controllers?: {
1669
+ concurrent?: number | undefined;
1670
+ requeue_dependency?: string | undefined;
1671
+ kustomize_controller?: {
1672
+ concurrent?: number | undefined;
1673
+ requeue_dependency?: string | undefined;
1674
+ } | undefined;
1675
+ helm_controller?: {
1676
+ concurrent?: number | undefined;
1677
+ requeue_dependency?: string | undefined;
1678
+ } | undefined;
1679
+ source_controller?: {
1680
+ concurrent?: number | undefined;
1681
+ requeue_dependency?: string | undefined;
1682
+ } | undefined;
1683
+ } | undefined;
1684
+ } | undefined;
1685
+ defaults?: {
1686
+ flux_namespace?: string | undefined;
1687
+ oci_repository_name?: string | undefined;
1688
+ oci_registry_secret_name?: string | undefined;
1689
+ flux_reconciliation_interval?: string | undefined;
1690
+ flux_reconciliation_timeout?: string | undefined;
1691
+ } | undefined;
1692
+ templates?: {
1693
+ name: string;
1694
+ values?: Record<string, string> | undefined;
1695
+ kustomizations?: Record<string, {
1696
+ preservation?: {
1697
+ mode: "custom" | "none" | "stateful";
1698
+ keep_resources?: string[] | undefined;
1699
+ } | undefined;
1700
+ }> | undefined;
1701
+ }[] | undefined;
1702
+ plugins?: {
1703
+ name: string;
1704
+ config?: Record<string, unknown> | undefined;
1705
+ }[] | undefined;
1706
+ node_defaults?: {
1707
+ ssh?: {
1708
+ user?: string | undefined;
1709
+ key_path?: string | undefined;
1710
+ known_hosts_path?: string | undefined;
1711
+ port?: number | undefined;
1712
+ } | undefined;
1713
+ label_prefix?: string | undefined;
1714
+ } | undefined;
1715
+ nodes?: string[] | undefined;
1716
+ secrets?: {
1717
+ doppler?: {
1718
+ project?: string | undefined;
1719
+ config?: string | undefined;
1720
+ service_token?: {
1721
+ type: "1password";
1722
+ ref: string;
1723
+ } | {
1724
+ type: "doppler";
1725
+ secret: string;
1726
+ project: string;
1727
+ config: string;
1728
+ } | undefined;
1729
+ cluster_secret?: {
1730
+ name?: string | undefined;
1731
+ namespace?: string | undefined;
1732
+ key?: string | undefined;
1733
+ annotations?: Record<string, string> | undefined;
1734
+ enabled?: boolean | undefined;
1735
+ } | undefined;
1736
+ } | undefined;
1737
+ onepassword?: {
1738
+ vault: string;
1739
+ service_account_token?: {
1740
+ type: "1password";
1741
+ ref: string;
1742
+ } | {
1743
+ type: "doppler";
1744
+ secret: string;
1745
+ project: string;
1746
+ config: string;
1747
+ } | undefined;
1748
+ } | undefined;
1749
+ } | undefined;
1750
+ }>;
1751
+ export type ClusterSpecType = z.infer<typeof cluster_spec_schema>;
1752
+ /**
1753
+ * Complete Cluster resource definition.
1754
+ */
1755
+ export declare const cluster_schema: z.ZodObject<{
1756
+ apiVersion: z.ZodLiteral<"kustodian.io/v1">;
1757
+ kind: z.ZodLiteral<"Cluster">;
1758
+ metadata: z.ZodObject<{
1759
+ name: z.ZodString;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ name: string;
1762
+ }, {
1763
+ name: string;
1764
+ }>;
1765
+ spec: z.ZodEffects<z.ZodObject<{
1766
+ code: z.ZodOptional<z.ZodString>;
1767
+ git: z.ZodOptional<z.ZodObject<{
1768
+ owner: z.ZodString;
1769
+ repository: z.ZodString;
1770
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1771
+ path: z.ZodOptional<z.ZodString>;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ repository: string;
1774
+ owner: string;
1775
+ branch: string;
1776
+ path?: string | undefined;
1777
+ }, {
1778
+ repository: string;
1779
+ owner: string;
1780
+ path?: string | undefined;
1781
+ branch?: string | undefined;
1782
+ }>>;
1783
+ oci: z.ZodOptional<z.ZodObject<{
1784
+ registry: z.ZodString;
1785
+ repository: z.ZodString;
1786
+ tag_strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cluster", "git-sha", "version", "manual"]>>>;
1787
+ tag: z.ZodOptional<z.ZodString>;
1788
+ secret_ref: z.ZodOptional<z.ZodString>;
1789
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<["aws", "azure", "gcp", "generic"]>>>;
1790
+ insecure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1791
+ }, "strip", z.ZodTypeAny, {
1792
+ repository: string;
1793
+ registry: string;
1794
+ provider: "generic" | "aws" | "azure" | "gcp";
1795
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
1796
+ insecure: boolean;
1797
+ tag?: string | undefined;
1798
+ secret_ref?: string | undefined;
1799
+ }, {
1800
+ repository: string;
1801
+ registry: string;
1802
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
1803
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
1804
+ tag?: string | undefined;
1805
+ secret_ref?: string | undefined;
1806
+ insecure?: boolean | undefined;
1807
+ }>>;
1808
+ github: z.ZodOptional<z.ZodObject<{
1809
+ organization: z.ZodString;
1810
+ repository: z.ZodString;
1811
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ repository: string;
1814
+ branch: string;
1815
+ organization: string;
1816
+ }, {
1817
+ repository: string;
1818
+ organization: string;
1819
+ branch?: string | undefined;
1820
+ }>>;
1821
+ flux: z.ZodOptional<z.ZodObject<{
1822
+ controllers: z.ZodOptional<z.ZodObject<{
1823
+ concurrent: z.ZodOptional<z.ZodNumber>;
1824
+ requeue_dependency: z.ZodOptional<z.ZodString>;
1825
+ kustomize_controller: z.ZodOptional<z.ZodObject<{
1826
+ concurrent: z.ZodOptional<z.ZodNumber>;
1827
+ requeue_dependency: z.ZodOptional<z.ZodString>;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ concurrent?: number | undefined;
1830
+ requeue_dependency?: string | undefined;
1831
+ }, {
1832
+ concurrent?: number | undefined;
1833
+ requeue_dependency?: string | undefined;
1834
+ }>>;
1835
+ helm_controller: z.ZodOptional<z.ZodObject<{
1836
+ concurrent: z.ZodOptional<z.ZodNumber>;
1837
+ requeue_dependency: z.ZodOptional<z.ZodString>;
1838
+ }, "strip", z.ZodTypeAny, {
1839
+ concurrent?: number | undefined;
1840
+ requeue_dependency?: string | undefined;
1841
+ }, {
1842
+ concurrent?: number | undefined;
1843
+ requeue_dependency?: string | undefined;
1844
+ }>>;
1845
+ source_controller: z.ZodOptional<z.ZodObject<{
1846
+ concurrent: z.ZodOptional<z.ZodNumber>;
1847
+ requeue_dependency: z.ZodOptional<z.ZodString>;
1848
+ }, "strip", z.ZodTypeAny, {
1849
+ concurrent?: number | undefined;
1850
+ requeue_dependency?: string | undefined;
1851
+ }, {
1852
+ concurrent?: number | undefined;
1853
+ requeue_dependency?: string | undefined;
1854
+ }>>;
1855
+ }, "strip", z.ZodTypeAny, {
1856
+ concurrent?: number | undefined;
1857
+ requeue_dependency?: string | undefined;
1858
+ kustomize_controller?: {
1859
+ concurrent?: number | undefined;
1860
+ requeue_dependency?: string | undefined;
1861
+ } | undefined;
1862
+ helm_controller?: {
1863
+ concurrent?: number | undefined;
1864
+ requeue_dependency?: string | undefined;
1865
+ } | undefined;
1866
+ source_controller?: {
1867
+ concurrent?: number | undefined;
1868
+ requeue_dependency?: string | undefined;
1869
+ } | undefined;
1870
+ }, {
1871
+ concurrent?: number | undefined;
1872
+ requeue_dependency?: string | undefined;
1873
+ kustomize_controller?: {
1874
+ concurrent?: number | undefined;
1875
+ requeue_dependency?: string | undefined;
1876
+ } | undefined;
1877
+ helm_controller?: {
1878
+ concurrent?: number | undefined;
1879
+ requeue_dependency?: string | undefined;
1880
+ } | undefined;
1881
+ source_controller?: {
1882
+ concurrent?: number | undefined;
1883
+ requeue_dependency?: string | undefined;
1884
+ } | undefined;
1885
+ }>>;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ controllers?: {
1888
+ concurrent?: number | undefined;
1889
+ requeue_dependency?: string | undefined;
1890
+ kustomize_controller?: {
1891
+ concurrent?: number | undefined;
1892
+ requeue_dependency?: string | undefined;
1893
+ } | undefined;
1894
+ helm_controller?: {
1895
+ concurrent?: number | undefined;
1896
+ requeue_dependency?: string | undefined;
1897
+ } | undefined;
1898
+ source_controller?: {
1899
+ concurrent?: number | undefined;
1900
+ requeue_dependency?: string | undefined;
1901
+ } | undefined;
1902
+ } | undefined;
1903
+ }, {
1904
+ controllers?: {
1905
+ concurrent?: number | undefined;
1906
+ requeue_dependency?: string | undefined;
1907
+ kustomize_controller?: {
1908
+ concurrent?: number | undefined;
1909
+ requeue_dependency?: string | undefined;
1910
+ } | undefined;
1911
+ helm_controller?: {
1912
+ concurrent?: number | undefined;
1913
+ requeue_dependency?: string | undefined;
1914
+ } | undefined;
1915
+ source_controller?: {
1916
+ concurrent?: number | undefined;
1917
+ requeue_dependency?: string | undefined;
1918
+ } | undefined;
1919
+ } | undefined;
1920
+ }>>;
1921
+ defaults: z.ZodOptional<z.ZodObject<{
1922
+ /** Flux system namespace where Flux controllers run */
1923
+ flux_namespace: z.ZodOptional<z.ZodString>;
1924
+ /** Flux OCIRepository resource name */
1925
+ oci_repository_name: z.ZodOptional<z.ZodString>;
1926
+ /** Secret name for OCI registry authentication */
1927
+ oci_registry_secret_name: z.ZodOptional<z.ZodString>;
1928
+ /** Reconciliation interval for Flux resources */
1929
+ flux_reconciliation_interval: z.ZodOptional<z.ZodString>;
1930
+ /** Timeout for Flux reconciliation */
1931
+ flux_reconciliation_timeout: z.ZodOptional<z.ZodString>;
1932
+ }, "strip", z.ZodTypeAny, {
1933
+ flux_namespace?: string | undefined;
1934
+ oci_repository_name?: string | undefined;
1935
+ oci_registry_secret_name?: string | undefined;
1936
+ flux_reconciliation_interval?: string | undefined;
1937
+ flux_reconciliation_timeout?: string | undefined;
1938
+ }, {
1939
+ flux_namespace?: string | undefined;
1940
+ oci_repository_name?: string | undefined;
1941
+ oci_registry_secret_name?: string | undefined;
1942
+ flux_reconciliation_interval?: string | undefined;
1943
+ flux_reconciliation_timeout?: string | undefined;
1944
+ }>>;
1945
+ templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1946
+ name: z.ZodString;
1947
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1948
+ kustomizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1949
+ preservation: z.ZodOptional<z.ZodObject<{
1950
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
1951
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ mode: "custom" | "none" | "stateful";
1954
+ keep_resources?: string[] | undefined;
1955
+ }, {
1956
+ mode: "custom" | "none" | "stateful";
1957
+ keep_resources?: string[] | undefined;
1958
+ }>>;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ preservation?: {
1961
+ mode: "custom" | "none" | "stateful";
1962
+ keep_resources?: string[] | undefined;
1963
+ } | undefined;
1964
+ }, {
1965
+ preservation?: {
1966
+ mode: "custom" | "none" | "stateful";
1967
+ keep_resources?: string[] | undefined;
1968
+ } | undefined;
1969
+ }>>>;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ name: string;
1972
+ values?: Record<string, string> | undefined;
1973
+ kustomizations?: Record<string, {
1974
+ preservation?: {
1975
+ mode: "custom" | "none" | "stateful";
1976
+ keep_resources?: string[] | undefined;
1977
+ } | undefined;
1978
+ }> | undefined;
1979
+ }, {
1980
+ name: string;
1981
+ values?: Record<string, string> | undefined;
1982
+ kustomizations?: Record<string, {
1983
+ preservation?: {
1984
+ mode: "custom" | "none" | "stateful";
1985
+ keep_resources?: string[] | undefined;
1986
+ } | undefined;
1987
+ }> | undefined;
1988
+ }>, "many">>;
1989
+ plugins: z.ZodOptional<z.ZodArray<z.ZodObject<{
1990
+ name: z.ZodString;
1991
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ name: string;
1994
+ config?: Record<string, unknown> | undefined;
1995
+ }, {
1996
+ name: string;
1997
+ config?: Record<string, unknown> | undefined;
1998
+ }>, "many">>;
1999
+ node_defaults: z.ZodOptional<z.ZodObject<{
2000
+ label_prefix: z.ZodOptional<z.ZodString>;
2001
+ ssh: z.ZodOptional<z.ZodObject<{
2002
+ user: z.ZodOptional<z.ZodString>;
2003
+ key_path: z.ZodOptional<z.ZodString>;
2004
+ known_hosts_path: z.ZodOptional<z.ZodString>;
2005
+ port: z.ZodOptional<z.ZodNumber>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ user?: string | undefined;
2008
+ key_path?: string | undefined;
2009
+ known_hosts_path?: string | undefined;
2010
+ port?: number | undefined;
2011
+ }, {
2012
+ user?: string | undefined;
2013
+ key_path?: string | undefined;
2014
+ known_hosts_path?: string | undefined;
2015
+ port?: number | undefined;
2016
+ }>>;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ ssh?: {
2019
+ user?: string | undefined;
2020
+ key_path?: string | undefined;
2021
+ known_hosts_path?: string | undefined;
2022
+ port?: number | undefined;
2023
+ } | undefined;
2024
+ label_prefix?: string | undefined;
2025
+ }, {
2026
+ ssh?: {
2027
+ user?: string | undefined;
2028
+ key_path?: string | undefined;
2029
+ known_hosts_path?: string | undefined;
2030
+ port?: number | undefined;
2031
+ } | undefined;
2032
+ label_prefix?: string | undefined;
2033
+ }>>;
2034
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2035
+ secrets: z.ZodOptional<z.ZodObject<{
2036
+ doppler: z.ZodOptional<z.ZodObject<{
2037
+ project: z.ZodOptional<z.ZodString>;
2038
+ config: z.ZodOptional<z.ZodString>;
2039
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2040
+ type: z.ZodLiteral<"1password">;
2041
+ ref: z.ZodString;
2042
+ }, "strip", z.ZodTypeAny, {
2043
+ type: "1password";
2044
+ ref: string;
2045
+ }, {
2046
+ type: "1password";
2047
+ ref: string;
2048
+ }>, z.ZodObject<{
2049
+ type: z.ZodLiteral<"doppler">;
2050
+ project: z.ZodString;
2051
+ config: z.ZodString;
2052
+ secret: z.ZodString;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ type: "doppler";
2055
+ secret: string;
2056
+ project: string;
2057
+ config: string;
2058
+ }, {
2059
+ type: "doppler";
2060
+ secret: string;
2061
+ project: string;
2062
+ config: string;
2063
+ }>]>>;
2064
+ cluster_secret: z.ZodOptional<z.ZodObject<{
2065
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2066
+ namespace: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2067
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2068
+ key: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2069
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2070
+ }, "strip", z.ZodTypeAny, {
2071
+ name: string;
2072
+ namespace: string;
2073
+ key: string;
2074
+ enabled: boolean;
2075
+ annotations?: Record<string, string> | undefined;
2076
+ }, {
2077
+ name?: string | undefined;
2078
+ namespace?: string | undefined;
2079
+ key?: string | undefined;
2080
+ annotations?: Record<string, string> | undefined;
2081
+ enabled?: boolean | undefined;
2082
+ }>>;
2083
+ }, "strip", z.ZodTypeAny, {
2084
+ project?: string | undefined;
2085
+ config?: string | undefined;
2086
+ service_token?: {
2087
+ type: "1password";
2088
+ ref: string;
2089
+ } | {
2090
+ type: "doppler";
2091
+ secret: string;
2092
+ project: string;
2093
+ config: string;
2094
+ } | undefined;
2095
+ cluster_secret?: {
2096
+ name: string;
2097
+ namespace: string;
2098
+ key: string;
2099
+ enabled: boolean;
2100
+ annotations?: Record<string, string> | undefined;
2101
+ } | undefined;
2102
+ }, {
2103
+ project?: string | undefined;
2104
+ config?: string | undefined;
2105
+ service_token?: {
2106
+ type: "1password";
2107
+ ref: string;
2108
+ } | {
2109
+ type: "doppler";
2110
+ secret: string;
2111
+ project: string;
2112
+ config: string;
2113
+ } | undefined;
2114
+ cluster_secret?: {
2115
+ name?: string | undefined;
2116
+ namespace?: string | undefined;
2117
+ key?: string | undefined;
2118
+ annotations?: Record<string, string> | undefined;
2119
+ enabled?: boolean | undefined;
2120
+ } | undefined;
2121
+ }>>;
2122
+ onepassword: z.ZodOptional<z.ZodObject<{
2123
+ vault: z.ZodString;
2124
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2125
+ type: z.ZodLiteral<"1password">;
2126
+ ref: z.ZodString;
2127
+ }, "strip", z.ZodTypeAny, {
2128
+ type: "1password";
2129
+ ref: string;
2130
+ }, {
2131
+ type: "1password";
2132
+ ref: string;
2133
+ }>, z.ZodObject<{
2134
+ type: z.ZodLiteral<"doppler">;
2135
+ project: z.ZodString;
2136
+ config: z.ZodString;
2137
+ secret: z.ZodString;
2138
+ }, "strip", z.ZodTypeAny, {
2139
+ type: "doppler";
2140
+ secret: string;
2141
+ project: string;
2142
+ config: string;
2143
+ }, {
2144
+ type: "doppler";
2145
+ secret: string;
2146
+ project: string;
2147
+ config: string;
2148
+ }>]>>;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ vault: string;
2151
+ service_account_token?: {
2152
+ type: "1password";
2153
+ ref: string;
2154
+ } | {
2155
+ type: "doppler";
2156
+ secret: string;
2157
+ project: string;
2158
+ config: string;
2159
+ } | undefined;
2160
+ }, {
2161
+ vault: string;
2162
+ service_account_token?: {
2163
+ type: "1password";
2164
+ ref: string;
2165
+ } | {
2166
+ type: "doppler";
2167
+ secret: string;
2168
+ project: string;
2169
+ config: string;
2170
+ } | undefined;
2171
+ }>>;
2172
+ }, "strip", z.ZodTypeAny, {
2173
+ doppler?: {
2174
+ project?: string | undefined;
2175
+ config?: string | undefined;
2176
+ service_token?: {
2177
+ type: "1password";
2178
+ ref: string;
2179
+ } | {
2180
+ type: "doppler";
2181
+ secret: string;
2182
+ project: string;
2183
+ config: string;
2184
+ } | undefined;
2185
+ cluster_secret?: {
2186
+ name: string;
2187
+ namespace: string;
2188
+ key: string;
2189
+ enabled: boolean;
2190
+ annotations?: Record<string, string> | undefined;
2191
+ } | undefined;
2192
+ } | undefined;
2193
+ onepassword?: {
2194
+ vault: string;
2195
+ service_account_token?: {
2196
+ type: "1password";
2197
+ ref: string;
2198
+ } | {
2199
+ type: "doppler";
2200
+ secret: string;
2201
+ project: string;
2202
+ config: string;
2203
+ } | undefined;
2204
+ } | undefined;
2205
+ }, {
2206
+ doppler?: {
2207
+ project?: string | undefined;
2208
+ config?: string | undefined;
2209
+ service_token?: {
2210
+ type: "1password";
2211
+ ref: string;
2212
+ } | {
2213
+ type: "doppler";
2214
+ secret: string;
2215
+ project: string;
2216
+ config: string;
2217
+ } | undefined;
2218
+ cluster_secret?: {
2219
+ name?: string | undefined;
2220
+ namespace?: string | undefined;
2221
+ key?: string | undefined;
2222
+ annotations?: Record<string, string> | undefined;
2223
+ enabled?: boolean | undefined;
2224
+ } | undefined;
2225
+ } | undefined;
2226
+ onepassword?: {
2227
+ vault: string;
2228
+ service_account_token?: {
2229
+ type: "1password";
2230
+ ref: string;
2231
+ } | {
2232
+ type: "doppler";
2233
+ secret: string;
2234
+ project: string;
2235
+ config: string;
2236
+ } | undefined;
2237
+ } | undefined;
2238
+ }>>;
2239
+ }, "strip", z.ZodTypeAny, {
2240
+ code?: string | undefined;
2241
+ oci?: {
2242
+ repository: string;
2243
+ registry: string;
2244
+ provider: "generic" | "aws" | "azure" | "gcp";
2245
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
2246
+ insecure: boolean;
2247
+ tag?: string | undefined;
2248
+ secret_ref?: string | undefined;
2249
+ } | undefined;
2250
+ git?: {
2251
+ repository: string;
2252
+ owner: string;
2253
+ branch: string;
2254
+ path?: string | undefined;
2255
+ } | undefined;
2256
+ github?: {
2257
+ repository: string;
2258
+ branch: string;
2259
+ organization: string;
2260
+ } | undefined;
2261
+ flux?: {
2262
+ controllers?: {
2263
+ concurrent?: number | undefined;
2264
+ requeue_dependency?: string | undefined;
2265
+ kustomize_controller?: {
2266
+ concurrent?: number | undefined;
2267
+ requeue_dependency?: string | undefined;
2268
+ } | undefined;
2269
+ helm_controller?: {
2270
+ concurrent?: number | undefined;
2271
+ requeue_dependency?: string | undefined;
2272
+ } | undefined;
2273
+ source_controller?: {
2274
+ concurrent?: number | undefined;
2275
+ requeue_dependency?: string | undefined;
2276
+ } | undefined;
2277
+ } | undefined;
2278
+ } | undefined;
2279
+ defaults?: {
2280
+ flux_namespace?: string | undefined;
2281
+ oci_repository_name?: string | undefined;
2282
+ oci_registry_secret_name?: string | undefined;
2283
+ flux_reconciliation_interval?: string | undefined;
2284
+ flux_reconciliation_timeout?: string | undefined;
2285
+ } | undefined;
2286
+ templates?: {
2287
+ name: string;
2288
+ values?: Record<string, string> | undefined;
2289
+ kustomizations?: Record<string, {
2290
+ preservation?: {
2291
+ mode: "custom" | "none" | "stateful";
2292
+ keep_resources?: string[] | undefined;
2293
+ } | undefined;
2294
+ }> | undefined;
2295
+ }[] | undefined;
2296
+ plugins?: {
2297
+ name: string;
2298
+ config?: Record<string, unknown> | undefined;
2299
+ }[] | undefined;
2300
+ node_defaults?: {
2301
+ ssh?: {
2302
+ user?: string | undefined;
2303
+ key_path?: string | undefined;
2304
+ known_hosts_path?: string | undefined;
2305
+ port?: number | undefined;
2306
+ } | undefined;
2307
+ label_prefix?: string | undefined;
2308
+ } | undefined;
2309
+ nodes?: string[] | undefined;
2310
+ secrets?: {
2311
+ doppler?: {
2312
+ project?: string | undefined;
2313
+ config?: string | undefined;
2314
+ service_token?: {
2315
+ type: "1password";
2316
+ ref: string;
2317
+ } | {
2318
+ type: "doppler";
2319
+ secret: string;
2320
+ project: string;
2321
+ config: string;
2322
+ } | undefined;
2323
+ cluster_secret?: {
2324
+ name: string;
2325
+ namespace: string;
2326
+ key: string;
2327
+ enabled: boolean;
2328
+ annotations?: Record<string, string> | undefined;
2329
+ } | undefined;
2330
+ } | undefined;
2331
+ onepassword?: {
2332
+ vault: string;
2333
+ service_account_token?: {
2334
+ type: "1password";
2335
+ ref: string;
2336
+ } | {
2337
+ type: "doppler";
2338
+ secret: string;
2339
+ project: string;
2340
+ config: string;
2341
+ } | undefined;
2342
+ } | undefined;
2343
+ } | undefined;
2344
+ }, {
2345
+ code?: string | undefined;
2346
+ oci?: {
2347
+ repository: string;
2348
+ registry: string;
2349
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
2350
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
2351
+ tag?: string | undefined;
2352
+ secret_ref?: string | undefined;
2353
+ insecure?: boolean | undefined;
2354
+ } | undefined;
2355
+ git?: {
2356
+ repository: string;
2357
+ owner: string;
2358
+ path?: string | undefined;
2359
+ branch?: string | undefined;
2360
+ } | undefined;
2361
+ github?: {
2362
+ repository: string;
2363
+ organization: string;
2364
+ branch?: string | undefined;
2365
+ } | undefined;
2366
+ flux?: {
2367
+ controllers?: {
2368
+ concurrent?: number | undefined;
2369
+ requeue_dependency?: string | undefined;
2370
+ kustomize_controller?: {
2371
+ concurrent?: number | undefined;
2372
+ requeue_dependency?: string | undefined;
2373
+ } | undefined;
2374
+ helm_controller?: {
2375
+ concurrent?: number | undefined;
2376
+ requeue_dependency?: string | undefined;
2377
+ } | undefined;
2378
+ source_controller?: {
2379
+ concurrent?: number | undefined;
2380
+ requeue_dependency?: string | undefined;
2381
+ } | undefined;
2382
+ } | undefined;
2383
+ } | undefined;
2384
+ defaults?: {
2385
+ flux_namespace?: string | undefined;
2386
+ oci_repository_name?: string | undefined;
2387
+ oci_registry_secret_name?: string | undefined;
2388
+ flux_reconciliation_interval?: string | undefined;
2389
+ flux_reconciliation_timeout?: string | undefined;
2390
+ } | undefined;
2391
+ templates?: {
2392
+ name: string;
2393
+ values?: Record<string, string> | undefined;
2394
+ kustomizations?: Record<string, {
2395
+ preservation?: {
2396
+ mode: "custom" | "none" | "stateful";
2397
+ keep_resources?: string[] | undefined;
2398
+ } | undefined;
2399
+ }> | undefined;
2400
+ }[] | undefined;
2401
+ plugins?: {
2402
+ name: string;
2403
+ config?: Record<string, unknown> | undefined;
2404
+ }[] | undefined;
2405
+ node_defaults?: {
2406
+ ssh?: {
2407
+ user?: string | undefined;
2408
+ key_path?: string | undefined;
2409
+ known_hosts_path?: string | undefined;
2410
+ port?: number | undefined;
2411
+ } | undefined;
2412
+ label_prefix?: string | undefined;
2413
+ } | undefined;
2414
+ nodes?: string[] | undefined;
2415
+ secrets?: {
2416
+ doppler?: {
2417
+ project?: string | undefined;
2418
+ config?: string | undefined;
2419
+ service_token?: {
2420
+ type: "1password";
2421
+ ref: string;
2422
+ } | {
2423
+ type: "doppler";
2424
+ secret: string;
2425
+ project: string;
2426
+ config: string;
2427
+ } | undefined;
2428
+ cluster_secret?: {
2429
+ name?: string | undefined;
2430
+ namespace?: string | undefined;
2431
+ key?: string | undefined;
2432
+ annotations?: Record<string, string> | undefined;
2433
+ enabled?: boolean | undefined;
2434
+ } | undefined;
2435
+ } | undefined;
2436
+ onepassword?: {
2437
+ vault: string;
2438
+ service_account_token?: {
2439
+ type: "1password";
2440
+ ref: string;
2441
+ } | {
2442
+ type: "doppler";
2443
+ secret: string;
2444
+ project: string;
2445
+ config: string;
2446
+ } | undefined;
2447
+ } | undefined;
2448
+ } | undefined;
2449
+ }>, {
2450
+ code?: string | undefined;
2451
+ oci?: {
2452
+ repository: string;
2453
+ registry: string;
2454
+ provider: "generic" | "aws" | "azure" | "gcp";
2455
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
2456
+ insecure: boolean;
2457
+ tag?: string | undefined;
2458
+ secret_ref?: string | undefined;
2459
+ } | undefined;
2460
+ git?: {
2461
+ repository: string;
2462
+ owner: string;
2463
+ branch: string;
2464
+ path?: string | undefined;
2465
+ } | undefined;
2466
+ github?: {
2467
+ repository: string;
2468
+ branch: string;
2469
+ organization: string;
2470
+ } | undefined;
2471
+ flux?: {
2472
+ controllers?: {
2473
+ concurrent?: number | undefined;
2474
+ requeue_dependency?: string | undefined;
2475
+ kustomize_controller?: {
2476
+ concurrent?: number | undefined;
2477
+ requeue_dependency?: string | undefined;
2478
+ } | undefined;
2479
+ helm_controller?: {
2480
+ concurrent?: number | undefined;
2481
+ requeue_dependency?: string | undefined;
2482
+ } | undefined;
2483
+ source_controller?: {
2484
+ concurrent?: number | undefined;
2485
+ requeue_dependency?: string | undefined;
2486
+ } | undefined;
2487
+ } | undefined;
2488
+ } | undefined;
2489
+ defaults?: {
2490
+ flux_namespace?: string | undefined;
2491
+ oci_repository_name?: string | undefined;
2492
+ oci_registry_secret_name?: string | undefined;
2493
+ flux_reconciliation_interval?: string | undefined;
2494
+ flux_reconciliation_timeout?: string | undefined;
2495
+ } | undefined;
2496
+ templates?: {
2497
+ name: string;
2498
+ values?: Record<string, string> | undefined;
2499
+ kustomizations?: Record<string, {
2500
+ preservation?: {
2501
+ mode: "custom" | "none" | "stateful";
2502
+ keep_resources?: string[] | undefined;
2503
+ } | undefined;
2504
+ }> | undefined;
2505
+ }[] | undefined;
2506
+ plugins?: {
2507
+ name: string;
2508
+ config?: Record<string, unknown> | undefined;
2509
+ }[] | undefined;
2510
+ node_defaults?: {
2511
+ ssh?: {
2512
+ user?: string | undefined;
2513
+ key_path?: string | undefined;
2514
+ known_hosts_path?: string | undefined;
2515
+ port?: number | undefined;
2516
+ } | undefined;
2517
+ label_prefix?: string | undefined;
2518
+ } | undefined;
2519
+ nodes?: string[] | undefined;
2520
+ secrets?: {
2521
+ doppler?: {
2522
+ project?: string | undefined;
2523
+ config?: string | undefined;
2524
+ service_token?: {
2525
+ type: "1password";
2526
+ ref: string;
2527
+ } | {
2528
+ type: "doppler";
2529
+ secret: string;
2530
+ project: string;
2531
+ config: string;
2532
+ } | undefined;
2533
+ cluster_secret?: {
2534
+ name: string;
2535
+ namespace: string;
2536
+ key: string;
2537
+ enabled: boolean;
2538
+ annotations?: Record<string, string> | undefined;
2539
+ } | undefined;
2540
+ } | undefined;
2541
+ onepassword?: {
2542
+ vault: string;
2543
+ service_account_token?: {
2544
+ type: "1password";
2545
+ ref: string;
2546
+ } | {
2547
+ type: "doppler";
2548
+ secret: string;
2549
+ project: string;
2550
+ config: string;
2551
+ } | undefined;
2552
+ } | undefined;
2553
+ } | undefined;
2554
+ }, {
2555
+ code?: string | undefined;
2556
+ oci?: {
2557
+ repository: string;
2558
+ registry: string;
2559
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
2560
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
2561
+ tag?: string | undefined;
2562
+ secret_ref?: string | undefined;
2563
+ insecure?: boolean | undefined;
2564
+ } | undefined;
2565
+ git?: {
2566
+ repository: string;
2567
+ owner: string;
2568
+ path?: string | undefined;
2569
+ branch?: string | undefined;
2570
+ } | undefined;
2571
+ github?: {
2572
+ repository: string;
2573
+ organization: string;
2574
+ branch?: string | undefined;
2575
+ } | undefined;
2576
+ flux?: {
2577
+ controllers?: {
2578
+ concurrent?: number | undefined;
2579
+ requeue_dependency?: string | undefined;
2580
+ kustomize_controller?: {
2581
+ concurrent?: number | undefined;
2582
+ requeue_dependency?: string | undefined;
2583
+ } | undefined;
2584
+ helm_controller?: {
2585
+ concurrent?: number | undefined;
2586
+ requeue_dependency?: string | undefined;
2587
+ } | undefined;
2588
+ source_controller?: {
2589
+ concurrent?: number | undefined;
2590
+ requeue_dependency?: string | undefined;
2591
+ } | undefined;
2592
+ } | undefined;
2593
+ } | undefined;
2594
+ defaults?: {
2595
+ flux_namespace?: string | undefined;
2596
+ oci_repository_name?: string | undefined;
2597
+ oci_registry_secret_name?: string | undefined;
2598
+ flux_reconciliation_interval?: string | undefined;
2599
+ flux_reconciliation_timeout?: string | undefined;
2600
+ } | undefined;
2601
+ templates?: {
2602
+ name: string;
2603
+ values?: Record<string, string> | undefined;
2604
+ kustomizations?: Record<string, {
2605
+ preservation?: {
2606
+ mode: "custom" | "none" | "stateful";
2607
+ keep_resources?: string[] | undefined;
2608
+ } | undefined;
2609
+ }> | undefined;
2610
+ }[] | undefined;
2611
+ plugins?: {
2612
+ name: string;
2613
+ config?: Record<string, unknown> | undefined;
2614
+ }[] | undefined;
2615
+ node_defaults?: {
2616
+ ssh?: {
2617
+ user?: string | undefined;
2618
+ key_path?: string | undefined;
2619
+ known_hosts_path?: string | undefined;
2620
+ port?: number | undefined;
2621
+ } | undefined;
2622
+ label_prefix?: string | undefined;
2623
+ } | undefined;
2624
+ nodes?: string[] | undefined;
2625
+ secrets?: {
2626
+ doppler?: {
2627
+ project?: string | undefined;
2628
+ config?: string | undefined;
2629
+ service_token?: {
2630
+ type: "1password";
2631
+ ref: string;
2632
+ } | {
2633
+ type: "doppler";
2634
+ secret: string;
2635
+ project: string;
2636
+ config: string;
2637
+ } | undefined;
2638
+ cluster_secret?: {
2639
+ name?: string | undefined;
2640
+ namespace?: string | undefined;
2641
+ key?: string | undefined;
2642
+ annotations?: Record<string, string> | undefined;
2643
+ enabled?: boolean | undefined;
2644
+ } | undefined;
2645
+ } | undefined;
2646
+ onepassword?: {
2647
+ vault: string;
2648
+ service_account_token?: {
2649
+ type: "1password";
2650
+ ref: string;
2651
+ } | {
2652
+ type: "doppler";
2653
+ secret: string;
2654
+ project: string;
2655
+ config: string;
2656
+ } | undefined;
2657
+ } | undefined;
2658
+ } | undefined;
2659
+ }>;
2660
+ }, "strip", z.ZodTypeAny, {
2661
+ kind: "Cluster";
2662
+ apiVersion: "kustodian.io/v1";
2663
+ metadata: {
2664
+ name: string;
2665
+ };
2666
+ spec: {
2667
+ code?: string | undefined;
2668
+ oci?: {
2669
+ repository: string;
2670
+ registry: string;
2671
+ provider: "generic" | "aws" | "azure" | "gcp";
2672
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
2673
+ insecure: boolean;
2674
+ tag?: string | undefined;
2675
+ secret_ref?: string | undefined;
2676
+ } | undefined;
2677
+ git?: {
2678
+ repository: string;
2679
+ owner: string;
2680
+ branch: string;
2681
+ path?: string | undefined;
2682
+ } | undefined;
2683
+ github?: {
2684
+ repository: string;
2685
+ branch: string;
2686
+ organization: string;
2687
+ } | undefined;
2688
+ flux?: {
2689
+ controllers?: {
2690
+ concurrent?: number | undefined;
2691
+ requeue_dependency?: string | undefined;
2692
+ kustomize_controller?: {
2693
+ concurrent?: number | undefined;
2694
+ requeue_dependency?: string | undefined;
2695
+ } | undefined;
2696
+ helm_controller?: {
2697
+ concurrent?: number | undefined;
2698
+ requeue_dependency?: string | undefined;
2699
+ } | undefined;
2700
+ source_controller?: {
2701
+ concurrent?: number | undefined;
2702
+ requeue_dependency?: string | undefined;
2703
+ } | undefined;
2704
+ } | undefined;
2705
+ } | undefined;
2706
+ defaults?: {
2707
+ flux_namespace?: string | undefined;
2708
+ oci_repository_name?: string | undefined;
2709
+ oci_registry_secret_name?: string | undefined;
2710
+ flux_reconciliation_interval?: string | undefined;
2711
+ flux_reconciliation_timeout?: string | undefined;
2712
+ } | undefined;
2713
+ templates?: {
2714
+ name: string;
2715
+ values?: Record<string, string> | undefined;
2716
+ kustomizations?: Record<string, {
2717
+ preservation?: {
2718
+ mode: "custom" | "none" | "stateful";
2719
+ keep_resources?: string[] | undefined;
2720
+ } | undefined;
2721
+ }> | undefined;
2722
+ }[] | undefined;
2723
+ plugins?: {
2724
+ name: string;
2725
+ config?: Record<string, unknown> | undefined;
2726
+ }[] | undefined;
2727
+ node_defaults?: {
2728
+ ssh?: {
2729
+ user?: string | undefined;
2730
+ key_path?: string | undefined;
2731
+ known_hosts_path?: string | undefined;
2732
+ port?: number | undefined;
2733
+ } | undefined;
2734
+ label_prefix?: string | undefined;
2735
+ } | undefined;
2736
+ nodes?: string[] | undefined;
2737
+ secrets?: {
2738
+ doppler?: {
2739
+ project?: string | undefined;
2740
+ config?: string | undefined;
2741
+ service_token?: {
2742
+ type: "1password";
2743
+ ref: string;
2744
+ } | {
2745
+ type: "doppler";
2746
+ secret: string;
2747
+ project: string;
2748
+ config: string;
2749
+ } | undefined;
2750
+ cluster_secret?: {
2751
+ name: string;
2752
+ namespace: string;
2753
+ key: string;
2754
+ enabled: boolean;
2755
+ annotations?: Record<string, string> | undefined;
2756
+ } | undefined;
2757
+ } | undefined;
2758
+ onepassword?: {
2759
+ vault: string;
2760
+ service_account_token?: {
2761
+ type: "1password";
2762
+ ref: string;
2763
+ } | {
2764
+ type: "doppler";
2765
+ secret: string;
2766
+ project: string;
2767
+ config: string;
2768
+ } | undefined;
2769
+ } | undefined;
2770
+ } | undefined;
2771
+ };
2772
+ }, {
2773
+ kind: "Cluster";
2774
+ apiVersion: "kustodian.io/v1";
2775
+ metadata: {
2776
+ name: string;
2777
+ };
2778
+ spec: {
2779
+ code?: string | undefined;
2780
+ oci?: {
2781
+ repository: string;
2782
+ registry: string;
2783
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
2784
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
2785
+ tag?: string | undefined;
2786
+ secret_ref?: string | undefined;
2787
+ insecure?: boolean | undefined;
2788
+ } | undefined;
2789
+ git?: {
2790
+ repository: string;
2791
+ owner: string;
2792
+ path?: string | undefined;
2793
+ branch?: string | undefined;
2794
+ } | undefined;
2795
+ github?: {
2796
+ repository: string;
2797
+ organization: string;
2798
+ branch?: string | undefined;
2799
+ } | undefined;
2800
+ flux?: {
2801
+ controllers?: {
2802
+ concurrent?: number | undefined;
2803
+ requeue_dependency?: string | undefined;
2804
+ kustomize_controller?: {
2805
+ concurrent?: number | undefined;
2806
+ requeue_dependency?: string | undefined;
2807
+ } | undefined;
2808
+ helm_controller?: {
2809
+ concurrent?: number | undefined;
2810
+ requeue_dependency?: string | undefined;
2811
+ } | undefined;
2812
+ source_controller?: {
2813
+ concurrent?: number | undefined;
2814
+ requeue_dependency?: string | undefined;
2815
+ } | undefined;
2816
+ } | undefined;
2817
+ } | undefined;
2818
+ defaults?: {
2819
+ flux_namespace?: string | undefined;
2820
+ oci_repository_name?: string | undefined;
2821
+ oci_registry_secret_name?: string | undefined;
2822
+ flux_reconciliation_interval?: string | undefined;
2823
+ flux_reconciliation_timeout?: string | undefined;
2824
+ } | undefined;
2825
+ templates?: {
2826
+ name: string;
2827
+ values?: Record<string, string> | undefined;
2828
+ kustomizations?: Record<string, {
2829
+ preservation?: {
2830
+ mode: "custom" | "none" | "stateful";
2831
+ keep_resources?: string[] | undefined;
2832
+ } | undefined;
2833
+ }> | undefined;
2834
+ }[] | undefined;
2835
+ plugins?: {
2836
+ name: string;
2837
+ config?: Record<string, unknown> | undefined;
2838
+ }[] | undefined;
2839
+ node_defaults?: {
2840
+ ssh?: {
2841
+ user?: string | undefined;
2842
+ key_path?: string | undefined;
2843
+ known_hosts_path?: string | undefined;
2844
+ port?: number | undefined;
2845
+ } | undefined;
2846
+ label_prefix?: string | undefined;
2847
+ } | undefined;
2848
+ nodes?: string[] | undefined;
2849
+ secrets?: {
2850
+ doppler?: {
2851
+ project?: string | undefined;
2852
+ config?: string | undefined;
2853
+ service_token?: {
2854
+ type: "1password";
2855
+ ref: string;
2856
+ } | {
2857
+ type: "doppler";
2858
+ secret: string;
2859
+ project: string;
2860
+ config: string;
2861
+ } | undefined;
2862
+ cluster_secret?: {
2863
+ name?: string | undefined;
2864
+ namespace?: string | undefined;
2865
+ key?: string | undefined;
2866
+ annotations?: Record<string, string> | undefined;
2867
+ enabled?: boolean | undefined;
2868
+ } | undefined;
2869
+ } | undefined;
2870
+ onepassword?: {
2871
+ vault: string;
2872
+ service_account_token?: {
2873
+ type: "1password";
2874
+ ref: string;
2875
+ } | {
2876
+ type: "doppler";
2877
+ secret: string;
2878
+ project: string;
2879
+ config: string;
2880
+ } | undefined;
2881
+ } | undefined;
2882
+ } | undefined;
2883
+ };
2884
+ }>;
2885
+ export type ClusterType = z.infer<typeof cluster_schema>;
2886
+ /**
2887
+ * Validates a cluster object and returns the result.
2888
+ */
2889
+ export declare function validate_cluster(data: unknown): z.SafeParseReturnType<unknown, ClusterType>;
2890
+ //# sourceMappingURL=cluster.d.ts.map