@kustodian/schema 1.4.0 → 2.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.
@@ -0,0 +1,1887 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Git repository configuration for a cluster.
4
+ */
5
+ export declare const git_config_schema: z.ZodObject<{
6
+ owner: z.ZodString;
7
+ repository: z.ZodString;
8
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9
+ path: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ repository: string;
12
+ owner: string;
13
+ branch: string;
14
+ path?: string | undefined;
15
+ }, {
16
+ repository: string;
17
+ owner: string;
18
+ path?: string | undefined;
19
+ branch?: string | undefined;
20
+ }>;
21
+ export type GitConfigType = z.infer<typeof git_config_schema>;
22
+ /**
23
+ * OCI repository configuration for a cluster.
24
+ */
25
+ export declare const oci_config_schema: z.ZodObject<{
26
+ registry: z.ZodString;
27
+ repository: z.ZodString;
28
+ tag_strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cluster", "git-sha", "version", "manual"]>>>;
29
+ tag: z.ZodOptional<z.ZodString>;
30
+ secret_ref: z.ZodOptional<z.ZodString>;
31
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<["aws", "azure", "gcp", "generic"]>>>;
32
+ insecure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ repository: string;
35
+ registry: string;
36
+ provider: "generic" | "aws" | "azure" | "gcp";
37
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
38
+ insecure: boolean;
39
+ tag?: string | undefined;
40
+ secret_ref?: string | undefined;
41
+ }, {
42
+ repository: string;
43
+ registry: string;
44
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
45
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
46
+ tag?: string | undefined;
47
+ secret_ref?: string | undefined;
48
+ insecure?: boolean | undefined;
49
+ }>;
50
+ export type OciConfigType = z.infer<typeof oci_config_schema>;
51
+ /**
52
+ * Kustomization override configuration within a cluster.
53
+ *
54
+ * Allows overriding kustomization preservation from template defaults.
55
+ */
56
+ export declare const kustomization_override_schema: z.ZodObject<{
57
+ preservation: z.ZodOptional<z.ZodObject<{
58
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
59
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ mode: "custom" | "none" | "stateful";
62
+ keep_resources?: string[] | undefined;
63
+ }, {
64
+ mode: "custom" | "none" | "stateful";
65
+ keep_resources?: string[] | undefined;
66
+ }>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ preservation?: {
69
+ mode: "custom" | "none" | "stateful";
70
+ keep_resources?: string[] | undefined;
71
+ } | undefined;
72
+ }, {
73
+ preservation?: {
74
+ mode: "custom" | "none" | "stateful";
75
+ keep_resources?: string[] | undefined;
76
+ } | undefined;
77
+ }>;
78
+ export type KustomizationOverrideType = z.infer<typeof kustomization_override_schema>;
79
+ /**
80
+ * Template configuration within a cluster.
81
+ * Templates listed here will be deployed. Templates not listed will be skipped.
82
+ */
83
+ export declare const template_config_schema: z.ZodObject<{
84
+ name: z.ZodString;
85
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
86
+ kustomizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
87
+ preservation: z.ZodOptional<z.ZodObject<{
88
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
89
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ mode: "custom" | "none" | "stateful";
92
+ keep_resources?: string[] | undefined;
93
+ }, {
94
+ mode: "custom" | "none" | "stateful";
95
+ keep_resources?: string[] | undefined;
96
+ }>>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ preservation?: {
99
+ mode: "custom" | "none" | "stateful";
100
+ keep_resources?: string[] | undefined;
101
+ } | undefined;
102
+ }, {
103
+ preservation?: {
104
+ mode: "custom" | "none" | "stateful";
105
+ keep_resources?: string[] | undefined;
106
+ } | undefined;
107
+ }>>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ name: string;
110
+ values?: Record<string, string> | undefined;
111
+ kustomizations?: Record<string, {
112
+ preservation?: {
113
+ mode: "custom" | "none" | "stateful";
114
+ keep_resources?: string[] | undefined;
115
+ } | undefined;
116
+ }> | undefined;
117
+ }, {
118
+ name: string;
119
+ values?: Record<string, string> | undefined;
120
+ kustomizations?: Record<string, {
121
+ preservation?: {
122
+ mode: "custom" | "none" | "stateful";
123
+ keep_resources?: string[] | undefined;
124
+ } | undefined;
125
+ }> | undefined;
126
+ }>;
127
+ export type TemplateConfigType = z.infer<typeof template_config_schema>;
128
+ /**
129
+ * Plugin configuration within a cluster.
130
+ */
131
+ export declare const plugin_config_schema: z.ZodObject<{
132
+ name: z.ZodString;
133
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ name: string;
136
+ config?: Record<string, unknown> | undefined;
137
+ }, {
138
+ name: string;
139
+ config?: Record<string, unknown> | undefined;
140
+ }>;
141
+ export type PluginConfigType = z.infer<typeof plugin_config_schema>;
142
+ /**
143
+ * Node defaults configuration within a cluster.
144
+ */
145
+ export declare const node_defaults_schema: z.ZodObject<{
146
+ label_prefix: z.ZodOptional<z.ZodString>;
147
+ ssh: z.ZodOptional<z.ZodObject<{
148
+ user: z.ZodOptional<z.ZodString>;
149
+ key_path: z.ZodOptional<z.ZodString>;
150
+ known_hosts_path: z.ZodOptional<z.ZodString>;
151
+ port: z.ZodOptional<z.ZodNumber>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ user?: string | undefined;
154
+ key_path?: string | undefined;
155
+ known_hosts_path?: string | undefined;
156
+ port?: number | undefined;
157
+ }, {
158
+ user?: string | undefined;
159
+ key_path?: string | undefined;
160
+ known_hosts_path?: string | undefined;
161
+ port?: number | undefined;
162
+ }>>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ ssh?: {
165
+ user?: string | undefined;
166
+ key_path?: string | undefined;
167
+ known_hosts_path?: string | undefined;
168
+ port?: number | undefined;
169
+ } | undefined;
170
+ label_prefix?: string | undefined;
171
+ }, {
172
+ ssh?: {
173
+ user?: string | undefined;
174
+ key_path?: string | undefined;
175
+ known_hosts_path?: string | undefined;
176
+ port?: number | undefined;
177
+ } | undefined;
178
+ label_prefix?: string | undefined;
179
+ }>;
180
+ export type NodeDefaultsType = z.infer<typeof node_defaults_schema>;
181
+ /**
182
+ * GitHub repository configuration for GitOps metadata.
183
+ */
184
+ export declare const github_config_schema: z.ZodObject<{
185
+ organization: z.ZodString;
186
+ repository: z.ZodString;
187
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ repository: string;
190
+ branch: string;
191
+ organization: string;
192
+ }, {
193
+ repository: string;
194
+ organization: string;
195
+ branch?: string | undefined;
196
+ }>;
197
+ export type GithubConfigType = z.infer<typeof github_config_schema>;
198
+ /**
199
+ * Bootstrap credential configuration for secret providers.
200
+ * Allows obtaining credentials from another secret provider.
201
+ */
202
+ export declare const bootstrap_credential_schema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
203
+ type: z.ZodLiteral<"1password">;
204
+ ref: z.ZodString;
205
+ }, "strip", z.ZodTypeAny, {
206
+ type: "1password";
207
+ ref: string;
208
+ }, {
209
+ type: "1password";
210
+ ref: string;
211
+ }>, z.ZodObject<{
212
+ type: z.ZodLiteral<"doppler">;
213
+ project: z.ZodString;
214
+ config: z.ZodString;
215
+ secret: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ type: "doppler";
218
+ secret: string;
219
+ project: string;
220
+ config: string;
221
+ }, {
222
+ type: "doppler";
223
+ secret: string;
224
+ project: string;
225
+ config: string;
226
+ }>]>;
227
+ export type BootstrapCredentialType = z.infer<typeof bootstrap_credential_schema>;
228
+ /**
229
+ * Doppler secret provider configuration at cluster level.
230
+ */
231
+ export declare const doppler_config_schema: z.ZodObject<{
232
+ project: z.ZodString;
233
+ config: z.ZodString;
234
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
235
+ type: z.ZodLiteral<"1password">;
236
+ ref: z.ZodString;
237
+ }, "strip", z.ZodTypeAny, {
238
+ type: "1password";
239
+ ref: string;
240
+ }, {
241
+ type: "1password";
242
+ ref: string;
243
+ }>, z.ZodObject<{
244
+ type: z.ZodLiteral<"doppler">;
245
+ project: z.ZodString;
246
+ config: z.ZodString;
247
+ secret: z.ZodString;
248
+ }, "strip", z.ZodTypeAny, {
249
+ type: "doppler";
250
+ secret: string;
251
+ project: string;
252
+ config: string;
253
+ }, {
254
+ type: "doppler";
255
+ secret: string;
256
+ project: string;
257
+ config: string;
258
+ }>]>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ project: string;
261
+ config: string;
262
+ service_token?: {
263
+ type: "1password";
264
+ ref: string;
265
+ } | {
266
+ type: "doppler";
267
+ secret: string;
268
+ project: string;
269
+ config: string;
270
+ } | undefined;
271
+ }, {
272
+ project: string;
273
+ config: string;
274
+ service_token?: {
275
+ type: "1password";
276
+ ref: string;
277
+ } | {
278
+ type: "doppler";
279
+ secret: string;
280
+ project: string;
281
+ config: string;
282
+ } | undefined;
283
+ }>;
284
+ export type DopplerConfigType = z.infer<typeof doppler_config_schema>;
285
+ /**
286
+ * 1Password secret provider configuration at cluster level.
287
+ */
288
+ export declare const onepassword_config_schema: z.ZodObject<{
289
+ vault: z.ZodString;
290
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
291
+ type: z.ZodLiteral<"1password">;
292
+ ref: z.ZodString;
293
+ }, "strip", z.ZodTypeAny, {
294
+ type: "1password";
295
+ ref: string;
296
+ }, {
297
+ type: "1password";
298
+ ref: string;
299
+ }>, z.ZodObject<{
300
+ type: z.ZodLiteral<"doppler">;
301
+ project: z.ZodString;
302
+ config: z.ZodString;
303
+ secret: z.ZodString;
304
+ }, "strip", z.ZodTypeAny, {
305
+ type: "doppler";
306
+ secret: string;
307
+ project: string;
308
+ config: string;
309
+ }, {
310
+ type: "doppler";
311
+ secret: string;
312
+ project: string;
313
+ config: string;
314
+ }>]>>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ vault: string;
317
+ service_account_token?: {
318
+ type: "1password";
319
+ ref: string;
320
+ } | {
321
+ type: "doppler";
322
+ secret: string;
323
+ project: string;
324
+ config: string;
325
+ } | undefined;
326
+ }, {
327
+ vault: string;
328
+ service_account_token?: {
329
+ type: "1password";
330
+ ref: string;
331
+ } | {
332
+ type: "doppler";
333
+ secret: string;
334
+ project: string;
335
+ config: string;
336
+ } | undefined;
337
+ }>;
338
+ export type OnePasswordConfigType = z.infer<typeof onepassword_config_schema>;
339
+ /**
340
+ * Secret providers configuration at cluster level.
341
+ */
342
+ export declare const secrets_config_schema: z.ZodObject<{
343
+ doppler: z.ZodOptional<z.ZodObject<{
344
+ project: z.ZodString;
345
+ config: z.ZodString;
346
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
347
+ type: z.ZodLiteral<"1password">;
348
+ ref: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ type: "1password";
351
+ ref: string;
352
+ }, {
353
+ type: "1password";
354
+ ref: string;
355
+ }>, z.ZodObject<{
356
+ type: z.ZodLiteral<"doppler">;
357
+ project: z.ZodString;
358
+ config: z.ZodString;
359
+ secret: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ type: "doppler";
362
+ secret: string;
363
+ project: string;
364
+ config: string;
365
+ }, {
366
+ type: "doppler";
367
+ secret: string;
368
+ project: string;
369
+ config: string;
370
+ }>]>>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ project: string;
373
+ config: string;
374
+ service_token?: {
375
+ type: "1password";
376
+ ref: string;
377
+ } | {
378
+ type: "doppler";
379
+ secret: string;
380
+ project: string;
381
+ config: string;
382
+ } | undefined;
383
+ }, {
384
+ project: string;
385
+ config: string;
386
+ service_token?: {
387
+ type: "1password";
388
+ ref: string;
389
+ } | {
390
+ type: "doppler";
391
+ secret: string;
392
+ project: string;
393
+ config: string;
394
+ } | undefined;
395
+ }>>;
396
+ onepassword: z.ZodOptional<z.ZodObject<{
397
+ vault: z.ZodString;
398
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
399
+ type: z.ZodLiteral<"1password">;
400
+ ref: z.ZodString;
401
+ }, "strip", z.ZodTypeAny, {
402
+ type: "1password";
403
+ ref: string;
404
+ }, {
405
+ type: "1password";
406
+ ref: string;
407
+ }>, z.ZodObject<{
408
+ type: z.ZodLiteral<"doppler">;
409
+ project: z.ZodString;
410
+ config: z.ZodString;
411
+ secret: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ type: "doppler";
414
+ secret: string;
415
+ project: string;
416
+ config: string;
417
+ }, {
418
+ type: "doppler";
419
+ secret: string;
420
+ project: string;
421
+ config: string;
422
+ }>]>>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ vault: string;
425
+ service_account_token?: {
426
+ type: "1password";
427
+ ref: string;
428
+ } | {
429
+ type: "doppler";
430
+ secret: string;
431
+ project: string;
432
+ config: string;
433
+ } | undefined;
434
+ }, {
435
+ vault: string;
436
+ service_account_token?: {
437
+ type: "1password";
438
+ ref: string;
439
+ } | {
440
+ type: "doppler";
441
+ secret: string;
442
+ project: string;
443
+ config: string;
444
+ } | undefined;
445
+ }>>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ doppler?: {
448
+ project: string;
449
+ config: string;
450
+ service_token?: {
451
+ type: "1password";
452
+ ref: string;
453
+ } | {
454
+ type: "doppler";
455
+ secret: string;
456
+ project: string;
457
+ config: string;
458
+ } | undefined;
459
+ } | undefined;
460
+ onepassword?: {
461
+ vault: string;
462
+ service_account_token?: {
463
+ type: "1password";
464
+ ref: string;
465
+ } | {
466
+ type: "doppler";
467
+ secret: string;
468
+ project: string;
469
+ config: string;
470
+ } | undefined;
471
+ } | undefined;
472
+ }, {
473
+ doppler?: {
474
+ project: string;
475
+ config: string;
476
+ service_token?: {
477
+ type: "1password";
478
+ ref: string;
479
+ } | {
480
+ type: "doppler";
481
+ secret: string;
482
+ project: string;
483
+ config: string;
484
+ } | undefined;
485
+ } | undefined;
486
+ onepassword?: {
487
+ vault: string;
488
+ service_account_token?: {
489
+ type: "1password";
490
+ ref: string;
491
+ } | {
492
+ type: "doppler";
493
+ secret: string;
494
+ project: string;
495
+ config: string;
496
+ } | undefined;
497
+ } | undefined;
498
+ }>;
499
+ export type SecretsConfigType = z.infer<typeof secrets_config_schema>;
500
+ /**
501
+ * Cluster specification.
502
+ */
503
+ export declare const cluster_spec_schema: z.ZodEffects<z.ZodObject<{
504
+ code: z.ZodOptional<z.ZodString>;
505
+ domain: z.ZodString;
506
+ git: z.ZodOptional<z.ZodObject<{
507
+ owner: z.ZodString;
508
+ repository: z.ZodString;
509
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
510
+ path: z.ZodOptional<z.ZodString>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ repository: string;
513
+ owner: string;
514
+ branch: string;
515
+ path?: string | undefined;
516
+ }, {
517
+ repository: string;
518
+ owner: string;
519
+ path?: string | undefined;
520
+ branch?: string | undefined;
521
+ }>>;
522
+ oci: z.ZodOptional<z.ZodObject<{
523
+ registry: z.ZodString;
524
+ repository: z.ZodString;
525
+ tag_strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cluster", "git-sha", "version", "manual"]>>>;
526
+ tag: z.ZodOptional<z.ZodString>;
527
+ secret_ref: z.ZodOptional<z.ZodString>;
528
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<["aws", "azure", "gcp", "generic"]>>>;
529
+ insecure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ repository: string;
532
+ registry: string;
533
+ provider: "generic" | "aws" | "azure" | "gcp";
534
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
535
+ insecure: boolean;
536
+ tag?: string | undefined;
537
+ secret_ref?: string | undefined;
538
+ }, {
539
+ repository: string;
540
+ registry: string;
541
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
542
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
543
+ tag?: string | undefined;
544
+ secret_ref?: string | undefined;
545
+ insecure?: boolean | undefined;
546
+ }>>;
547
+ github: z.ZodOptional<z.ZodObject<{
548
+ organization: z.ZodString;
549
+ repository: z.ZodString;
550
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ repository: string;
553
+ branch: string;
554
+ organization: string;
555
+ }, {
556
+ repository: string;
557
+ organization: string;
558
+ branch?: string | undefined;
559
+ }>>;
560
+ templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
561
+ name: z.ZodString;
562
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
563
+ kustomizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
564
+ preservation: z.ZodOptional<z.ZodObject<{
565
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
566
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ mode: "custom" | "none" | "stateful";
569
+ keep_resources?: string[] | undefined;
570
+ }, {
571
+ mode: "custom" | "none" | "stateful";
572
+ keep_resources?: string[] | undefined;
573
+ }>>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ preservation?: {
576
+ mode: "custom" | "none" | "stateful";
577
+ keep_resources?: string[] | undefined;
578
+ } | undefined;
579
+ }, {
580
+ preservation?: {
581
+ mode: "custom" | "none" | "stateful";
582
+ keep_resources?: string[] | undefined;
583
+ } | undefined;
584
+ }>>>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ name: string;
587
+ values?: Record<string, string> | undefined;
588
+ kustomizations?: Record<string, {
589
+ preservation?: {
590
+ mode: "custom" | "none" | "stateful";
591
+ keep_resources?: string[] | undefined;
592
+ } | undefined;
593
+ }> | undefined;
594
+ }, {
595
+ name: string;
596
+ values?: Record<string, string> | undefined;
597
+ kustomizations?: Record<string, {
598
+ preservation?: {
599
+ mode: "custom" | "none" | "stateful";
600
+ keep_resources?: string[] | undefined;
601
+ } | undefined;
602
+ }> | undefined;
603
+ }>, "many">>;
604
+ plugins: z.ZodOptional<z.ZodArray<z.ZodObject<{
605
+ name: z.ZodString;
606
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ name: string;
609
+ config?: Record<string, unknown> | undefined;
610
+ }, {
611
+ name: string;
612
+ config?: Record<string, unknown> | undefined;
613
+ }>, "many">>;
614
+ node_defaults: z.ZodOptional<z.ZodObject<{
615
+ label_prefix: z.ZodOptional<z.ZodString>;
616
+ ssh: z.ZodOptional<z.ZodObject<{
617
+ user: z.ZodOptional<z.ZodString>;
618
+ key_path: z.ZodOptional<z.ZodString>;
619
+ known_hosts_path: z.ZodOptional<z.ZodString>;
620
+ port: z.ZodOptional<z.ZodNumber>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ user?: string | undefined;
623
+ key_path?: string | undefined;
624
+ known_hosts_path?: string | undefined;
625
+ port?: number | undefined;
626
+ }, {
627
+ user?: string | undefined;
628
+ key_path?: string | undefined;
629
+ known_hosts_path?: string | undefined;
630
+ port?: number | undefined;
631
+ }>>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ ssh?: {
634
+ user?: string | undefined;
635
+ key_path?: string | undefined;
636
+ known_hosts_path?: string | undefined;
637
+ port?: number | undefined;
638
+ } | undefined;
639
+ label_prefix?: string | undefined;
640
+ }, {
641
+ ssh?: {
642
+ user?: string | undefined;
643
+ key_path?: string | undefined;
644
+ known_hosts_path?: string | undefined;
645
+ port?: number | undefined;
646
+ } | undefined;
647
+ label_prefix?: string | undefined;
648
+ }>>;
649
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
650
+ secrets: z.ZodOptional<z.ZodObject<{
651
+ doppler: z.ZodOptional<z.ZodObject<{
652
+ project: z.ZodString;
653
+ config: z.ZodString;
654
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
655
+ type: z.ZodLiteral<"1password">;
656
+ ref: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ type: "1password";
659
+ ref: string;
660
+ }, {
661
+ type: "1password";
662
+ ref: string;
663
+ }>, z.ZodObject<{
664
+ type: z.ZodLiteral<"doppler">;
665
+ project: z.ZodString;
666
+ config: z.ZodString;
667
+ secret: z.ZodString;
668
+ }, "strip", z.ZodTypeAny, {
669
+ type: "doppler";
670
+ secret: string;
671
+ project: string;
672
+ config: string;
673
+ }, {
674
+ type: "doppler";
675
+ secret: string;
676
+ project: string;
677
+ config: string;
678
+ }>]>>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ project: string;
681
+ config: string;
682
+ service_token?: {
683
+ type: "1password";
684
+ ref: string;
685
+ } | {
686
+ type: "doppler";
687
+ secret: string;
688
+ project: string;
689
+ config: string;
690
+ } | undefined;
691
+ }, {
692
+ project: string;
693
+ config: string;
694
+ service_token?: {
695
+ type: "1password";
696
+ ref: string;
697
+ } | {
698
+ type: "doppler";
699
+ secret: string;
700
+ project: string;
701
+ config: string;
702
+ } | undefined;
703
+ }>>;
704
+ onepassword: z.ZodOptional<z.ZodObject<{
705
+ vault: z.ZodString;
706
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
707
+ type: z.ZodLiteral<"1password">;
708
+ ref: z.ZodString;
709
+ }, "strip", z.ZodTypeAny, {
710
+ type: "1password";
711
+ ref: string;
712
+ }, {
713
+ type: "1password";
714
+ ref: string;
715
+ }>, z.ZodObject<{
716
+ type: z.ZodLiteral<"doppler">;
717
+ project: z.ZodString;
718
+ config: z.ZodString;
719
+ secret: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ type: "doppler";
722
+ secret: string;
723
+ project: string;
724
+ config: string;
725
+ }, {
726
+ type: "doppler";
727
+ secret: string;
728
+ project: string;
729
+ config: string;
730
+ }>]>>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ vault: string;
733
+ service_account_token?: {
734
+ type: "1password";
735
+ ref: string;
736
+ } | {
737
+ type: "doppler";
738
+ secret: string;
739
+ project: string;
740
+ config: string;
741
+ } | undefined;
742
+ }, {
743
+ vault: string;
744
+ service_account_token?: {
745
+ type: "1password";
746
+ ref: string;
747
+ } | {
748
+ type: "doppler";
749
+ secret: string;
750
+ project: string;
751
+ config: string;
752
+ } | undefined;
753
+ }>>;
754
+ }, "strip", z.ZodTypeAny, {
755
+ doppler?: {
756
+ project: string;
757
+ config: string;
758
+ service_token?: {
759
+ type: "1password";
760
+ ref: string;
761
+ } | {
762
+ type: "doppler";
763
+ secret: string;
764
+ project: string;
765
+ config: string;
766
+ } | undefined;
767
+ } | undefined;
768
+ onepassword?: {
769
+ vault: string;
770
+ service_account_token?: {
771
+ type: "1password";
772
+ ref: string;
773
+ } | {
774
+ type: "doppler";
775
+ secret: string;
776
+ project: string;
777
+ config: string;
778
+ } | undefined;
779
+ } | undefined;
780
+ }, {
781
+ doppler?: {
782
+ project: string;
783
+ config: string;
784
+ service_token?: {
785
+ type: "1password";
786
+ ref: string;
787
+ } | {
788
+ type: "doppler";
789
+ secret: string;
790
+ project: string;
791
+ config: string;
792
+ } | undefined;
793
+ } | undefined;
794
+ onepassword?: {
795
+ vault: string;
796
+ service_account_token?: {
797
+ type: "1password";
798
+ ref: string;
799
+ } | {
800
+ type: "doppler";
801
+ secret: string;
802
+ project: string;
803
+ config: string;
804
+ } | undefined;
805
+ } | undefined;
806
+ }>>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ domain: string;
809
+ code?: string | undefined;
810
+ oci?: {
811
+ repository: string;
812
+ registry: string;
813
+ provider: "generic" | "aws" | "azure" | "gcp";
814
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
815
+ insecure: boolean;
816
+ tag?: string | undefined;
817
+ secret_ref?: string | undefined;
818
+ } | undefined;
819
+ git?: {
820
+ repository: string;
821
+ owner: string;
822
+ branch: string;
823
+ path?: string | undefined;
824
+ } | undefined;
825
+ github?: {
826
+ repository: string;
827
+ branch: string;
828
+ organization: string;
829
+ } | undefined;
830
+ templates?: {
831
+ name: string;
832
+ values?: Record<string, string> | undefined;
833
+ kustomizations?: Record<string, {
834
+ preservation?: {
835
+ mode: "custom" | "none" | "stateful";
836
+ keep_resources?: string[] | undefined;
837
+ } | undefined;
838
+ }> | undefined;
839
+ }[] | undefined;
840
+ plugins?: {
841
+ name: string;
842
+ config?: Record<string, unknown> | undefined;
843
+ }[] | undefined;
844
+ node_defaults?: {
845
+ ssh?: {
846
+ user?: string | undefined;
847
+ key_path?: string | undefined;
848
+ known_hosts_path?: string | undefined;
849
+ port?: number | undefined;
850
+ } | undefined;
851
+ label_prefix?: string | undefined;
852
+ } | undefined;
853
+ nodes?: string[] | undefined;
854
+ secrets?: {
855
+ doppler?: {
856
+ project: string;
857
+ config: string;
858
+ service_token?: {
859
+ type: "1password";
860
+ ref: string;
861
+ } | {
862
+ type: "doppler";
863
+ secret: string;
864
+ project: string;
865
+ config: string;
866
+ } | undefined;
867
+ } | undefined;
868
+ onepassword?: {
869
+ vault: string;
870
+ service_account_token?: {
871
+ type: "1password";
872
+ ref: string;
873
+ } | {
874
+ type: "doppler";
875
+ secret: string;
876
+ project: string;
877
+ config: string;
878
+ } | undefined;
879
+ } | undefined;
880
+ } | undefined;
881
+ }, {
882
+ domain: string;
883
+ code?: string | undefined;
884
+ oci?: {
885
+ repository: string;
886
+ registry: string;
887
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
888
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
889
+ tag?: string | undefined;
890
+ secret_ref?: string | undefined;
891
+ insecure?: boolean | undefined;
892
+ } | undefined;
893
+ git?: {
894
+ repository: string;
895
+ owner: string;
896
+ path?: string | undefined;
897
+ branch?: string | undefined;
898
+ } | undefined;
899
+ github?: {
900
+ repository: string;
901
+ organization: string;
902
+ branch?: string | undefined;
903
+ } | undefined;
904
+ templates?: {
905
+ name: string;
906
+ values?: Record<string, string> | undefined;
907
+ kustomizations?: Record<string, {
908
+ preservation?: {
909
+ mode: "custom" | "none" | "stateful";
910
+ keep_resources?: string[] | undefined;
911
+ } | undefined;
912
+ }> | undefined;
913
+ }[] | undefined;
914
+ plugins?: {
915
+ name: string;
916
+ config?: Record<string, unknown> | undefined;
917
+ }[] | undefined;
918
+ node_defaults?: {
919
+ ssh?: {
920
+ user?: string | undefined;
921
+ key_path?: string | undefined;
922
+ known_hosts_path?: string | undefined;
923
+ port?: number | undefined;
924
+ } | undefined;
925
+ label_prefix?: string | undefined;
926
+ } | undefined;
927
+ nodes?: string[] | undefined;
928
+ secrets?: {
929
+ doppler?: {
930
+ project: string;
931
+ config: string;
932
+ service_token?: {
933
+ type: "1password";
934
+ ref: string;
935
+ } | {
936
+ type: "doppler";
937
+ secret: string;
938
+ project: string;
939
+ config: string;
940
+ } | undefined;
941
+ } | undefined;
942
+ onepassword?: {
943
+ vault: string;
944
+ service_account_token?: {
945
+ type: "1password";
946
+ ref: string;
947
+ } | {
948
+ type: "doppler";
949
+ secret: string;
950
+ project: string;
951
+ config: string;
952
+ } | undefined;
953
+ } | undefined;
954
+ } | undefined;
955
+ }>, {
956
+ domain: string;
957
+ code?: string | undefined;
958
+ oci?: {
959
+ repository: string;
960
+ registry: string;
961
+ provider: "generic" | "aws" | "azure" | "gcp";
962
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
963
+ insecure: boolean;
964
+ tag?: string | undefined;
965
+ secret_ref?: string | undefined;
966
+ } | undefined;
967
+ git?: {
968
+ repository: string;
969
+ owner: string;
970
+ branch: string;
971
+ path?: string | undefined;
972
+ } | undefined;
973
+ github?: {
974
+ repository: string;
975
+ branch: string;
976
+ organization: string;
977
+ } | undefined;
978
+ templates?: {
979
+ name: string;
980
+ values?: Record<string, string> | undefined;
981
+ kustomizations?: Record<string, {
982
+ preservation?: {
983
+ mode: "custom" | "none" | "stateful";
984
+ keep_resources?: string[] | undefined;
985
+ } | undefined;
986
+ }> | undefined;
987
+ }[] | undefined;
988
+ plugins?: {
989
+ name: string;
990
+ config?: Record<string, unknown> | undefined;
991
+ }[] | undefined;
992
+ node_defaults?: {
993
+ ssh?: {
994
+ user?: string | undefined;
995
+ key_path?: string | undefined;
996
+ known_hosts_path?: string | undefined;
997
+ port?: number | undefined;
998
+ } | undefined;
999
+ label_prefix?: string | undefined;
1000
+ } | undefined;
1001
+ nodes?: string[] | undefined;
1002
+ secrets?: {
1003
+ doppler?: {
1004
+ project: string;
1005
+ config: string;
1006
+ service_token?: {
1007
+ type: "1password";
1008
+ ref: string;
1009
+ } | {
1010
+ type: "doppler";
1011
+ secret: string;
1012
+ project: string;
1013
+ config: string;
1014
+ } | undefined;
1015
+ } | undefined;
1016
+ onepassword?: {
1017
+ vault: string;
1018
+ service_account_token?: {
1019
+ type: "1password";
1020
+ ref: string;
1021
+ } | {
1022
+ type: "doppler";
1023
+ secret: string;
1024
+ project: string;
1025
+ config: string;
1026
+ } | undefined;
1027
+ } | undefined;
1028
+ } | undefined;
1029
+ }, {
1030
+ domain: string;
1031
+ code?: string | undefined;
1032
+ oci?: {
1033
+ repository: string;
1034
+ registry: string;
1035
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
1036
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
1037
+ tag?: string | undefined;
1038
+ secret_ref?: string | undefined;
1039
+ insecure?: boolean | undefined;
1040
+ } | undefined;
1041
+ git?: {
1042
+ repository: string;
1043
+ owner: string;
1044
+ path?: string | undefined;
1045
+ branch?: string | undefined;
1046
+ } | undefined;
1047
+ github?: {
1048
+ repository: string;
1049
+ organization: string;
1050
+ branch?: string | undefined;
1051
+ } | undefined;
1052
+ templates?: {
1053
+ name: string;
1054
+ values?: Record<string, string> | undefined;
1055
+ kustomizations?: Record<string, {
1056
+ preservation?: {
1057
+ mode: "custom" | "none" | "stateful";
1058
+ keep_resources?: string[] | undefined;
1059
+ } | undefined;
1060
+ }> | undefined;
1061
+ }[] | undefined;
1062
+ plugins?: {
1063
+ name: string;
1064
+ config?: Record<string, unknown> | undefined;
1065
+ }[] | undefined;
1066
+ node_defaults?: {
1067
+ ssh?: {
1068
+ user?: string | undefined;
1069
+ key_path?: string | undefined;
1070
+ known_hosts_path?: string | undefined;
1071
+ port?: number | undefined;
1072
+ } | undefined;
1073
+ label_prefix?: string | undefined;
1074
+ } | undefined;
1075
+ nodes?: string[] | undefined;
1076
+ secrets?: {
1077
+ doppler?: {
1078
+ project: string;
1079
+ config: string;
1080
+ service_token?: {
1081
+ type: "1password";
1082
+ ref: string;
1083
+ } | {
1084
+ type: "doppler";
1085
+ secret: string;
1086
+ project: string;
1087
+ config: string;
1088
+ } | undefined;
1089
+ } | undefined;
1090
+ onepassword?: {
1091
+ vault: string;
1092
+ service_account_token?: {
1093
+ type: "1password";
1094
+ ref: string;
1095
+ } | {
1096
+ type: "doppler";
1097
+ secret: string;
1098
+ project: string;
1099
+ config: string;
1100
+ } | undefined;
1101
+ } | undefined;
1102
+ } | undefined;
1103
+ }>;
1104
+ export type ClusterSpecType = z.infer<typeof cluster_spec_schema>;
1105
+ /**
1106
+ * Complete Cluster resource definition.
1107
+ */
1108
+ export declare const cluster_schema: z.ZodObject<{
1109
+ apiVersion: z.ZodLiteral<"kustodian.io/v1">;
1110
+ kind: z.ZodLiteral<"Cluster">;
1111
+ metadata: z.ZodObject<{
1112
+ name: z.ZodString;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ name: string;
1115
+ }, {
1116
+ name: string;
1117
+ }>;
1118
+ spec: z.ZodEffects<z.ZodObject<{
1119
+ code: z.ZodOptional<z.ZodString>;
1120
+ domain: z.ZodString;
1121
+ git: z.ZodOptional<z.ZodObject<{
1122
+ owner: z.ZodString;
1123
+ repository: z.ZodString;
1124
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1125
+ path: z.ZodOptional<z.ZodString>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ repository: string;
1128
+ owner: string;
1129
+ branch: string;
1130
+ path?: string | undefined;
1131
+ }, {
1132
+ repository: string;
1133
+ owner: string;
1134
+ path?: string | undefined;
1135
+ branch?: string | undefined;
1136
+ }>>;
1137
+ oci: z.ZodOptional<z.ZodObject<{
1138
+ registry: z.ZodString;
1139
+ repository: z.ZodString;
1140
+ tag_strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cluster", "git-sha", "version", "manual"]>>>;
1141
+ tag: z.ZodOptional<z.ZodString>;
1142
+ secret_ref: z.ZodOptional<z.ZodString>;
1143
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<["aws", "azure", "gcp", "generic"]>>>;
1144
+ insecure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ repository: string;
1147
+ registry: string;
1148
+ provider: "generic" | "aws" | "azure" | "gcp";
1149
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
1150
+ insecure: boolean;
1151
+ tag?: string | undefined;
1152
+ secret_ref?: string | undefined;
1153
+ }, {
1154
+ repository: string;
1155
+ registry: string;
1156
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
1157
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
1158
+ tag?: string | undefined;
1159
+ secret_ref?: string | undefined;
1160
+ insecure?: boolean | undefined;
1161
+ }>>;
1162
+ github: z.ZodOptional<z.ZodObject<{
1163
+ organization: z.ZodString;
1164
+ repository: z.ZodString;
1165
+ branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ repository: string;
1168
+ branch: string;
1169
+ organization: string;
1170
+ }, {
1171
+ repository: string;
1172
+ organization: string;
1173
+ branch?: string | undefined;
1174
+ }>>;
1175
+ templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1176
+ name: z.ZodString;
1177
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1178
+ kustomizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1179
+ preservation: z.ZodOptional<z.ZodObject<{
1180
+ mode: z.ZodEnum<["none", "stateful", "custom"]>;
1181
+ keep_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ mode: "custom" | "none" | "stateful";
1184
+ keep_resources?: string[] | undefined;
1185
+ }, {
1186
+ mode: "custom" | "none" | "stateful";
1187
+ keep_resources?: string[] | undefined;
1188
+ }>>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ preservation?: {
1191
+ mode: "custom" | "none" | "stateful";
1192
+ keep_resources?: string[] | undefined;
1193
+ } | undefined;
1194
+ }, {
1195
+ preservation?: {
1196
+ mode: "custom" | "none" | "stateful";
1197
+ keep_resources?: string[] | undefined;
1198
+ } | undefined;
1199
+ }>>>;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ name: string;
1202
+ values?: Record<string, string> | undefined;
1203
+ kustomizations?: Record<string, {
1204
+ preservation?: {
1205
+ mode: "custom" | "none" | "stateful";
1206
+ keep_resources?: string[] | undefined;
1207
+ } | undefined;
1208
+ }> | undefined;
1209
+ }, {
1210
+ name: string;
1211
+ values?: Record<string, string> | undefined;
1212
+ kustomizations?: Record<string, {
1213
+ preservation?: {
1214
+ mode: "custom" | "none" | "stateful";
1215
+ keep_resources?: string[] | undefined;
1216
+ } | undefined;
1217
+ }> | undefined;
1218
+ }>, "many">>;
1219
+ plugins: z.ZodOptional<z.ZodArray<z.ZodObject<{
1220
+ name: z.ZodString;
1221
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ name: string;
1224
+ config?: Record<string, unknown> | undefined;
1225
+ }, {
1226
+ name: string;
1227
+ config?: Record<string, unknown> | undefined;
1228
+ }>, "many">>;
1229
+ node_defaults: z.ZodOptional<z.ZodObject<{
1230
+ label_prefix: z.ZodOptional<z.ZodString>;
1231
+ ssh: z.ZodOptional<z.ZodObject<{
1232
+ user: z.ZodOptional<z.ZodString>;
1233
+ key_path: z.ZodOptional<z.ZodString>;
1234
+ known_hosts_path: z.ZodOptional<z.ZodString>;
1235
+ port: z.ZodOptional<z.ZodNumber>;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ user?: string | undefined;
1238
+ key_path?: string | undefined;
1239
+ known_hosts_path?: string | undefined;
1240
+ port?: number | undefined;
1241
+ }, {
1242
+ user?: string | undefined;
1243
+ key_path?: string | undefined;
1244
+ known_hosts_path?: string | undefined;
1245
+ port?: number | undefined;
1246
+ }>>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ ssh?: {
1249
+ user?: string | undefined;
1250
+ key_path?: string | undefined;
1251
+ known_hosts_path?: string | undefined;
1252
+ port?: number | undefined;
1253
+ } | undefined;
1254
+ label_prefix?: string | undefined;
1255
+ }, {
1256
+ ssh?: {
1257
+ user?: string | undefined;
1258
+ key_path?: string | undefined;
1259
+ known_hosts_path?: string | undefined;
1260
+ port?: number | undefined;
1261
+ } | undefined;
1262
+ label_prefix?: string | undefined;
1263
+ }>>;
1264
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1265
+ secrets: z.ZodOptional<z.ZodObject<{
1266
+ doppler: z.ZodOptional<z.ZodObject<{
1267
+ project: z.ZodString;
1268
+ config: z.ZodString;
1269
+ service_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1270
+ type: z.ZodLiteral<"1password">;
1271
+ ref: z.ZodString;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ type: "1password";
1274
+ ref: string;
1275
+ }, {
1276
+ type: "1password";
1277
+ ref: string;
1278
+ }>, z.ZodObject<{
1279
+ type: z.ZodLiteral<"doppler">;
1280
+ project: z.ZodString;
1281
+ config: z.ZodString;
1282
+ secret: z.ZodString;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ type: "doppler";
1285
+ secret: string;
1286
+ project: string;
1287
+ config: string;
1288
+ }, {
1289
+ type: "doppler";
1290
+ secret: string;
1291
+ project: string;
1292
+ config: string;
1293
+ }>]>>;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ project: string;
1296
+ config: string;
1297
+ service_token?: {
1298
+ type: "1password";
1299
+ ref: string;
1300
+ } | {
1301
+ type: "doppler";
1302
+ secret: string;
1303
+ project: string;
1304
+ config: string;
1305
+ } | undefined;
1306
+ }, {
1307
+ project: string;
1308
+ config: string;
1309
+ service_token?: {
1310
+ type: "1password";
1311
+ ref: string;
1312
+ } | {
1313
+ type: "doppler";
1314
+ secret: string;
1315
+ project: string;
1316
+ config: string;
1317
+ } | undefined;
1318
+ }>>;
1319
+ onepassword: z.ZodOptional<z.ZodObject<{
1320
+ vault: z.ZodString;
1321
+ service_account_token: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1322
+ type: z.ZodLiteral<"1password">;
1323
+ ref: z.ZodString;
1324
+ }, "strip", z.ZodTypeAny, {
1325
+ type: "1password";
1326
+ ref: string;
1327
+ }, {
1328
+ type: "1password";
1329
+ ref: string;
1330
+ }>, z.ZodObject<{
1331
+ type: z.ZodLiteral<"doppler">;
1332
+ project: z.ZodString;
1333
+ config: z.ZodString;
1334
+ secret: z.ZodString;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ type: "doppler";
1337
+ secret: string;
1338
+ project: string;
1339
+ config: string;
1340
+ }, {
1341
+ type: "doppler";
1342
+ secret: string;
1343
+ project: string;
1344
+ config: string;
1345
+ }>]>>;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ vault: string;
1348
+ service_account_token?: {
1349
+ type: "1password";
1350
+ ref: string;
1351
+ } | {
1352
+ type: "doppler";
1353
+ secret: string;
1354
+ project: string;
1355
+ config: string;
1356
+ } | undefined;
1357
+ }, {
1358
+ vault: string;
1359
+ service_account_token?: {
1360
+ type: "1password";
1361
+ ref: string;
1362
+ } | {
1363
+ type: "doppler";
1364
+ secret: string;
1365
+ project: string;
1366
+ config: string;
1367
+ } | undefined;
1368
+ }>>;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ doppler?: {
1371
+ project: string;
1372
+ config: string;
1373
+ service_token?: {
1374
+ type: "1password";
1375
+ ref: string;
1376
+ } | {
1377
+ type: "doppler";
1378
+ secret: string;
1379
+ project: string;
1380
+ config: string;
1381
+ } | undefined;
1382
+ } | undefined;
1383
+ onepassword?: {
1384
+ vault: string;
1385
+ service_account_token?: {
1386
+ type: "1password";
1387
+ ref: string;
1388
+ } | {
1389
+ type: "doppler";
1390
+ secret: string;
1391
+ project: string;
1392
+ config: string;
1393
+ } | undefined;
1394
+ } | undefined;
1395
+ }, {
1396
+ doppler?: {
1397
+ project: string;
1398
+ config: string;
1399
+ service_token?: {
1400
+ type: "1password";
1401
+ ref: string;
1402
+ } | {
1403
+ type: "doppler";
1404
+ secret: string;
1405
+ project: string;
1406
+ config: string;
1407
+ } | undefined;
1408
+ } | undefined;
1409
+ onepassword?: {
1410
+ vault: string;
1411
+ service_account_token?: {
1412
+ type: "1password";
1413
+ ref: string;
1414
+ } | {
1415
+ type: "doppler";
1416
+ secret: string;
1417
+ project: string;
1418
+ config: string;
1419
+ } | undefined;
1420
+ } | undefined;
1421
+ }>>;
1422
+ }, "strip", z.ZodTypeAny, {
1423
+ domain: string;
1424
+ code?: string | undefined;
1425
+ oci?: {
1426
+ repository: string;
1427
+ registry: string;
1428
+ provider: "generic" | "aws" | "azure" | "gcp";
1429
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
1430
+ insecure: boolean;
1431
+ tag?: string | undefined;
1432
+ secret_ref?: string | undefined;
1433
+ } | undefined;
1434
+ git?: {
1435
+ repository: string;
1436
+ owner: string;
1437
+ branch: string;
1438
+ path?: string | undefined;
1439
+ } | undefined;
1440
+ github?: {
1441
+ repository: string;
1442
+ branch: string;
1443
+ organization: string;
1444
+ } | undefined;
1445
+ templates?: {
1446
+ name: string;
1447
+ values?: Record<string, string> | undefined;
1448
+ kustomizations?: Record<string, {
1449
+ preservation?: {
1450
+ mode: "custom" | "none" | "stateful";
1451
+ keep_resources?: string[] | undefined;
1452
+ } | undefined;
1453
+ }> | undefined;
1454
+ }[] | undefined;
1455
+ plugins?: {
1456
+ name: string;
1457
+ config?: Record<string, unknown> | undefined;
1458
+ }[] | undefined;
1459
+ node_defaults?: {
1460
+ ssh?: {
1461
+ user?: string | undefined;
1462
+ key_path?: string | undefined;
1463
+ known_hosts_path?: string | undefined;
1464
+ port?: number | undefined;
1465
+ } | undefined;
1466
+ label_prefix?: string | undefined;
1467
+ } | undefined;
1468
+ nodes?: string[] | undefined;
1469
+ secrets?: {
1470
+ doppler?: {
1471
+ project: string;
1472
+ config: string;
1473
+ service_token?: {
1474
+ type: "1password";
1475
+ ref: string;
1476
+ } | {
1477
+ type: "doppler";
1478
+ secret: string;
1479
+ project: string;
1480
+ config: string;
1481
+ } | undefined;
1482
+ } | undefined;
1483
+ onepassword?: {
1484
+ vault: string;
1485
+ service_account_token?: {
1486
+ type: "1password";
1487
+ ref: string;
1488
+ } | {
1489
+ type: "doppler";
1490
+ secret: string;
1491
+ project: string;
1492
+ config: string;
1493
+ } | undefined;
1494
+ } | undefined;
1495
+ } | undefined;
1496
+ }, {
1497
+ domain: string;
1498
+ code?: string | undefined;
1499
+ oci?: {
1500
+ repository: string;
1501
+ registry: string;
1502
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
1503
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
1504
+ tag?: string | undefined;
1505
+ secret_ref?: string | undefined;
1506
+ insecure?: boolean | undefined;
1507
+ } | undefined;
1508
+ git?: {
1509
+ repository: string;
1510
+ owner: string;
1511
+ path?: string | undefined;
1512
+ branch?: string | undefined;
1513
+ } | undefined;
1514
+ github?: {
1515
+ repository: string;
1516
+ organization: string;
1517
+ branch?: string | undefined;
1518
+ } | undefined;
1519
+ templates?: {
1520
+ name: string;
1521
+ values?: Record<string, string> | undefined;
1522
+ kustomizations?: Record<string, {
1523
+ preservation?: {
1524
+ mode: "custom" | "none" | "stateful";
1525
+ keep_resources?: string[] | undefined;
1526
+ } | undefined;
1527
+ }> | undefined;
1528
+ }[] | undefined;
1529
+ plugins?: {
1530
+ name: string;
1531
+ config?: Record<string, unknown> | undefined;
1532
+ }[] | undefined;
1533
+ node_defaults?: {
1534
+ ssh?: {
1535
+ user?: string | undefined;
1536
+ key_path?: string | undefined;
1537
+ known_hosts_path?: string | undefined;
1538
+ port?: number | undefined;
1539
+ } | undefined;
1540
+ label_prefix?: string | undefined;
1541
+ } | undefined;
1542
+ nodes?: string[] | undefined;
1543
+ secrets?: {
1544
+ doppler?: {
1545
+ project: string;
1546
+ config: string;
1547
+ service_token?: {
1548
+ type: "1password";
1549
+ ref: string;
1550
+ } | {
1551
+ type: "doppler";
1552
+ secret: string;
1553
+ project: string;
1554
+ config: string;
1555
+ } | undefined;
1556
+ } | undefined;
1557
+ onepassword?: {
1558
+ vault: string;
1559
+ service_account_token?: {
1560
+ type: "1password";
1561
+ ref: string;
1562
+ } | {
1563
+ type: "doppler";
1564
+ secret: string;
1565
+ project: string;
1566
+ config: string;
1567
+ } | undefined;
1568
+ } | undefined;
1569
+ } | undefined;
1570
+ }>, {
1571
+ domain: string;
1572
+ code?: string | undefined;
1573
+ oci?: {
1574
+ repository: string;
1575
+ registry: string;
1576
+ provider: "generic" | "aws" | "azure" | "gcp";
1577
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
1578
+ insecure: boolean;
1579
+ tag?: string | undefined;
1580
+ secret_ref?: string | undefined;
1581
+ } | undefined;
1582
+ git?: {
1583
+ repository: string;
1584
+ owner: string;
1585
+ branch: string;
1586
+ path?: string | undefined;
1587
+ } | undefined;
1588
+ github?: {
1589
+ repository: string;
1590
+ branch: string;
1591
+ organization: string;
1592
+ } | undefined;
1593
+ templates?: {
1594
+ name: string;
1595
+ values?: Record<string, string> | undefined;
1596
+ kustomizations?: Record<string, {
1597
+ preservation?: {
1598
+ mode: "custom" | "none" | "stateful";
1599
+ keep_resources?: string[] | undefined;
1600
+ } | undefined;
1601
+ }> | undefined;
1602
+ }[] | undefined;
1603
+ plugins?: {
1604
+ name: string;
1605
+ config?: Record<string, unknown> | undefined;
1606
+ }[] | undefined;
1607
+ node_defaults?: {
1608
+ ssh?: {
1609
+ user?: string | undefined;
1610
+ key_path?: string | undefined;
1611
+ known_hosts_path?: string | undefined;
1612
+ port?: number | undefined;
1613
+ } | undefined;
1614
+ label_prefix?: string | undefined;
1615
+ } | undefined;
1616
+ nodes?: string[] | undefined;
1617
+ secrets?: {
1618
+ doppler?: {
1619
+ project: string;
1620
+ config: string;
1621
+ service_token?: {
1622
+ type: "1password";
1623
+ ref: string;
1624
+ } | {
1625
+ type: "doppler";
1626
+ secret: string;
1627
+ project: string;
1628
+ config: string;
1629
+ } | undefined;
1630
+ } | undefined;
1631
+ onepassword?: {
1632
+ vault: string;
1633
+ service_account_token?: {
1634
+ type: "1password";
1635
+ ref: string;
1636
+ } | {
1637
+ type: "doppler";
1638
+ secret: string;
1639
+ project: string;
1640
+ config: string;
1641
+ } | undefined;
1642
+ } | undefined;
1643
+ } | undefined;
1644
+ }, {
1645
+ domain: string;
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
+ 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;
1694
+ config: string;
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
+ } | undefined;
1705
+ onepassword?: {
1706
+ vault: string;
1707
+ service_account_token?: {
1708
+ type: "1password";
1709
+ ref: string;
1710
+ } | {
1711
+ type: "doppler";
1712
+ secret: string;
1713
+ project: string;
1714
+ config: string;
1715
+ } | undefined;
1716
+ } | undefined;
1717
+ } | undefined;
1718
+ }>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ kind: "Cluster";
1721
+ apiVersion: "kustodian.io/v1";
1722
+ metadata: {
1723
+ name: string;
1724
+ };
1725
+ spec: {
1726
+ domain: string;
1727
+ code?: string | undefined;
1728
+ oci?: {
1729
+ repository: string;
1730
+ registry: string;
1731
+ provider: "generic" | "aws" | "azure" | "gcp";
1732
+ tag_strategy: "version" | "cluster" | "git-sha" | "manual";
1733
+ insecure: boolean;
1734
+ tag?: string | undefined;
1735
+ secret_ref?: string | undefined;
1736
+ } | undefined;
1737
+ git?: {
1738
+ repository: string;
1739
+ owner: string;
1740
+ branch: string;
1741
+ path?: string | undefined;
1742
+ } | undefined;
1743
+ github?: {
1744
+ repository: string;
1745
+ branch: string;
1746
+ organization: string;
1747
+ } | undefined;
1748
+ templates?: {
1749
+ name: string;
1750
+ values?: Record<string, string> | undefined;
1751
+ kustomizations?: Record<string, {
1752
+ preservation?: {
1753
+ mode: "custom" | "none" | "stateful";
1754
+ keep_resources?: string[] | undefined;
1755
+ } | undefined;
1756
+ }> | undefined;
1757
+ }[] | undefined;
1758
+ plugins?: {
1759
+ name: string;
1760
+ config?: Record<string, unknown> | undefined;
1761
+ }[] | undefined;
1762
+ node_defaults?: {
1763
+ ssh?: {
1764
+ user?: string | undefined;
1765
+ key_path?: string | undefined;
1766
+ known_hosts_path?: string | undefined;
1767
+ port?: number | undefined;
1768
+ } | undefined;
1769
+ label_prefix?: string | undefined;
1770
+ } | undefined;
1771
+ nodes?: string[] | undefined;
1772
+ secrets?: {
1773
+ doppler?: {
1774
+ project: string;
1775
+ config: string;
1776
+ service_token?: {
1777
+ type: "1password";
1778
+ ref: string;
1779
+ } | {
1780
+ type: "doppler";
1781
+ secret: string;
1782
+ project: string;
1783
+ config: string;
1784
+ } | undefined;
1785
+ } | undefined;
1786
+ onepassword?: {
1787
+ vault: string;
1788
+ service_account_token?: {
1789
+ type: "1password";
1790
+ ref: string;
1791
+ } | {
1792
+ type: "doppler";
1793
+ secret: string;
1794
+ project: string;
1795
+ config: string;
1796
+ } | undefined;
1797
+ } | undefined;
1798
+ } | undefined;
1799
+ };
1800
+ }, {
1801
+ kind: "Cluster";
1802
+ apiVersion: "kustodian.io/v1";
1803
+ metadata: {
1804
+ name: string;
1805
+ };
1806
+ spec: {
1807
+ domain: string;
1808
+ code?: string | undefined;
1809
+ oci?: {
1810
+ repository: string;
1811
+ registry: string;
1812
+ provider?: "generic" | "aws" | "azure" | "gcp" | undefined;
1813
+ tag_strategy?: "version" | "cluster" | "git-sha" | "manual" | undefined;
1814
+ tag?: string | undefined;
1815
+ secret_ref?: string | undefined;
1816
+ insecure?: boolean | undefined;
1817
+ } | undefined;
1818
+ git?: {
1819
+ repository: string;
1820
+ owner: string;
1821
+ path?: string | undefined;
1822
+ branch?: string | undefined;
1823
+ } | undefined;
1824
+ github?: {
1825
+ repository: string;
1826
+ organization: string;
1827
+ branch?: string | undefined;
1828
+ } | undefined;
1829
+ templates?: {
1830
+ name: string;
1831
+ values?: Record<string, string> | undefined;
1832
+ kustomizations?: Record<string, {
1833
+ preservation?: {
1834
+ mode: "custom" | "none" | "stateful";
1835
+ keep_resources?: string[] | undefined;
1836
+ } | undefined;
1837
+ }> | undefined;
1838
+ }[] | undefined;
1839
+ plugins?: {
1840
+ name: string;
1841
+ config?: Record<string, unknown> | undefined;
1842
+ }[] | undefined;
1843
+ node_defaults?: {
1844
+ ssh?: {
1845
+ user?: string | undefined;
1846
+ key_path?: string | undefined;
1847
+ known_hosts_path?: string | undefined;
1848
+ port?: number | undefined;
1849
+ } | undefined;
1850
+ label_prefix?: string | undefined;
1851
+ } | undefined;
1852
+ nodes?: string[] | undefined;
1853
+ secrets?: {
1854
+ doppler?: {
1855
+ project: string;
1856
+ config: string;
1857
+ service_token?: {
1858
+ type: "1password";
1859
+ ref: string;
1860
+ } | {
1861
+ type: "doppler";
1862
+ secret: string;
1863
+ project: string;
1864
+ config: string;
1865
+ } | undefined;
1866
+ } | undefined;
1867
+ onepassword?: {
1868
+ vault: string;
1869
+ service_account_token?: {
1870
+ type: "1password";
1871
+ ref: string;
1872
+ } | {
1873
+ type: "doppler";
1874
+ secret: string;
1875
+ project: string;
1876
+ config: string;
1877
+ } | undefined;
1878
+ } | undefined;
1879
+ } | undefined;
1880
+ };
1881
+ }>;
1882
+ export type ClusterType = z.infer<typeof cluster_schema>;
1883
+ /**
1884
+ * Validates a cluster object and returns the result.
1885
+ */
1886
+ export declare function validate_cluster(data: unknown): z.SafeParseReturnType<unknown, ClusterType>;
1887
+ //# sourceMappingURL=cluster.d.ts.map