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