@kustodian/schema 2.0.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.
- package/dist/cluster.d.ts +1032 -68
- package/dist/cluster.d.ts.map +1 -1
- package/dist/common.d.ts +204 -20
- package/dist/common.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +86 -6
- package/dist/project.d.ts +168 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/template.d.ts +153 -72
- package/dist/template.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cluster.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../src/cluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB
|
|
1
|
+
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../src/cluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;EAOxC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEzD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAE3F"}
|
package/dist/common.d.ts
CHANGED
|
@@ -565,11 +565,174 @@ export declare const doppler_substitution_schema: z.ZodObject<{
|
|
|
565
565
|
config?: string | undefined;
|
|
566
566
|
}>;
|
|
567
567
|
export type DopplerSubstitutionType = z.infer<typeof doppler_substitution_schema>;
|
|
568
|
+
/**
|
|
569
|
+
* Core substitution types provided by Kustodian.
|
|
570
|
+
* These are always validated by the schema.
|
|
571
|
+
*/
|
|
572
|
+
export declare const core_substitution_schema: z.ZodUnion<[z.ZodObject<{
|
|
573
|
+
type: z.ZodLiteral<"version">;
|
|
574
|
+
name: z.ZodString;
|
|
575
|
+
default: z.ZodOptional<z.ZodString>;
|
|
576
|
+
/** Semver constraint: ^1.0.0, ~2.3.0, >=1.0.0 <2.0.0 */
|
|
577
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
578
|
+
/** Registry configuration for fetching available versions (optional for simple substitutions) */
|
|
579
|
+
registry: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
/** Full image reference: registry/namespace/image or just namespace/image for Docker Hub */
|
|
581
|
+
image: z.ZodString;
|
|
582
|
+
/** Registry type for API selection */
|
|
583
|
+
type: z.ZodOptional<z.ZodEnum<["dockerhub", "ghcr"]>>;
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
585
|
+
image: string;
|
|
586
|
+
type?: "dockerhub" | "ghcr" | undefined;
|
|
587
|
+
}, {
|
|
588
|
+
image: string;
|
|
589
|
+
type?: "dockerhub" | "ghcr" | undefined;
|
|
590
|
+
}>>;
|
|
591
|
+
/** Regex pattern for filtering valid tags (default: semver-like) */
|
|
592
|
+
tag_pattern: z.ZodOptional<z.ZodString>;
|
|
593
|
+
/** Exclude pre-release versions (default: true) */
|
|
594
|
+
exclude_prerelease: z.ZodOptional<z.ZodBoolean>;
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
name: string;
|
|
597
|
+
type: "version";
|
|
598
|
+
default?: string | undefined;
|
|
599
|
+
constraint?: string | undefined;
|
|
600
|
+
tag_pattern?: string | undefined;
|
|
601
|
+
exclude_prerelease?: boolean | undefined;
|
|
602
|
+
registry?: {
|
|
603
|
+
image: string;
|
|
604
|
+
type?: "dockerhub" | "ghcr" | undefined;
|
|
605
|
+
} | undefined;
|
|
606
|
+
}, {
|
|
607
|
+
name: string;
|
|
608
|
+
type: "version";
|
|
609
|
+
default?: string | undefined;
|
|
610
|
+
constraint?: string | undefined;
|
|
611
|
+
tag_pattern?: string | undefined;
|
|
612
|
+
exclude_prerelease?: boolean | undefined;
|
|
613
|
+
registry?: {
|
|
614
|
+
image: string;
|
|
615
|
+
type?: "dockerhub" | "ghcr" | undefined;
|
|
616
|
+
} | undefined;
|
|
617
|
+
}>, z.ZodObject<{
|
|
618
|
+
type: z.ZodLiteral<"helm">;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
default: z.ZodOptional<z.ZodString>;
|
|
621
|
+
/** Semver constraint: ^1.0.0, ~2.3.0, >=1.0.0 <2.0.0 */
|
|
622
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
623
|
+
/** Helm repository configuration for fetching available chart versions (optional for simple substitutions) */
|
|
624
|
+
helm: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
625
|
+
/** Helm chart repository URL (e.g., https://traefik.github.io/charts) */
|
|
626
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
627
|
+
/** OCI registry URL for Helm charts (e.g., oci://ghcr.io/traefik/helm) */
|
|
628
|
+
oci: z.ZodOptional<z.ZodString>;
|
|
629
|
+
/** Chart name */
|
|
630
|
+
chart: z.ZodString;
|
|
631
|
+
}, "strip", z.ZodTypeAny, {
|
|
632
|
+
chart: string;
|
|
633
|
+
repository?: string | undefined;
|
|
634
|
+
oci?: string | undefined;
|
|
635
|
+
}, {
|
|
636
|
+
chart: string;
|
|
637
|
+
repository?: string | undefined;
|
|
638
|
+
oci?: string | undefined;
|
|
639
|
+
}>, {
|
|
640
|
+
chart: string;
|
|
641
|
+
repository?: string | undefined;
|
|
642
|
+
oci?: string | undefined;
|
|
643
|
+
}, {
|
|
644
|
+
chart: string;
|
|
645
|
+
repository?: string | undefined;
|
|
646
|
+
oci?: string | undefined;
|
|
647
|
+
}>>;
|
|
648
|
+
/** Regex pattern for filtering valid tags (default: semver-like) */
|
|
649
|
+
tag_pattern: z.ZodOptional<z.ZodString>;
|
|
650
|
+
/** Exclude pre-release versions (default: true) */
|
|
651
|
+
exclude_prerelease: z.ZodOptional<z.ZodBoolean>;
|
|
652
|
+
}, "strip", z.ZodTypeAny, {
|
|
653
|
+
name: string;
|
|
654
|
+
type: "helm";
|
|
655
|
+
default?: string | undefined;
|
|
656
|
+
constraint?: string | undefined;
|
|
657
|
+
tag_pattern?: string | undefined;
|
|
658
|
+
exclude_prerelease?: boolean | undefined;
|
|
659
|
+
helm?: {
|
|
660
|
+
chart: string;
|
|
661
|
+
repository?: string | undefined;
|
|
662
|
+
oci?: string | undefined;
|
|
663
|
+
} | undefined;
|
|
664
|
+
}, {
|
|
665
|
+
name: string;
|
|
666
|
+
type: "helm";
|
|
667
|
+
default?: string | undefined;
|
|
668
|
+
constraint?: string | undefined;
|
|
669
|
+
tag_pattern?: string | undefined;
|
|
670
|
+
exclude_prerelease?: boolean | undefined;
|
|
671
|
+
helm?: {
|
|
672
|
+
chart: string;
|
|
673
|
+
repository?: string | undefined;
|
|
674
|
+
oci?: string | undefined;
|
|
675
|
+
} | undefined;
|
|
676
|
+
}>, z.ZodObject<{
|
|
677
|
+
type: z.ZodLiteral<"namespace">;
|
|
678
|
+
name: z.ZodString;
|
|
679
|
+
default: z.ZodOptional<z.ZodString>;
|
|
680
|
+
}, "strip", z.ZodTypeAny, {
|
|
681
|
+
name: string;
|
|
682
|
+
type: "namespace";
|
|
683
|
+
default?: string | undefined;
|
|
684
|
+
}, {
|
|
685
|
+
name: string;
|
|
686
|
+
type: "namespace";
|
|
687
|
+
default?: string | undefined;
|
|
688
|
+
}>, z.ZodObject<{
|
|
689
|
+
type: z.ZodOptional<z.ZodLiteral<"generic">>;
|
|
690
|
+
name: z.ZodString;
|
|
691
|
+
default: z.ZodOptional<z.ZodString>;
|
|
692
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
693
|
+
preserve_case: z.ZodOptional<z.ZodBoolean>;
|
|
694
|
+
}, "strip", z.ZodTypeAny, {
|
|
695
|
+
name: string;
|
|
696
|
+
type?: "generic" | undefined;
|
|
697
|
+
default?: string | undefined;
|
|
698
|
+
secret?: string | undefined;
|
|
699
|
+
preserve_case?: boolean | undefined;
|
|
700
|
+
}, {
|
|
701
|
+
name: string;
|
|
702
|
+
type?: "generic" | undefined;
|
|
703
|
+
default?: string | undefined;
|
|
704
|
+
secret?: string | undefined;
|
|
705
|
+
preserve_case?: boolean | undefined;
|
|
706
|
+
}>]>;
|
|
707
|
+
/**
|
|
708
|
+
* Plugin-provided substitution types.
|
|
709
|
+
* Plugins can register custom types (e.g., 'sops', 'vault', 'aws-secrets').
|
|
710
|
+
* Schema validation is delegated to the plugin's substitution provider.
|
|
711
|
+
*/
|
|
712
|
+
export declare const plugin_substitution_schema: z.ZodEffects<z.ZodObject<{
|
|
713
|
+
type: z.ZodString;
|
|
714
|
+
name: z.ZodString;
|
|
715
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
716
|
+
type: z.ZodString;
|
|
717
|
+
name: z.ZodString;
|
|
718
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
719
|
+
type: z.ZodString;
|
|
720
|
+
name: z.ZodString;
|
|
721
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
722
|
+
type: z.ZodString;
|
|
723
|
+
name: z.ZodString;
|
|
724
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
725
|
+
type: z.ZodString;
|
|
726
|
+
name: z.ZodString;
|
|
727
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
568
728
|
/**
|
|
569
729
|
* Union of all substitution types.
|
|
730
|
+
* Includes core types (version, helm, namespace, generic) plus plugin-provided types.
|
|
731
|
+
* Also includes Doppler and 1Password for backward compatibility (will be migrated to plugins).
|
|
732
|
+
*
|
|
570
733
|
* Supports backward compatibility: substitutions without 'type' are treated as generic.
|
|
571
734
|
*/
|
|
572
|
-
export declare const substitution_schema: z.ZodUnion<[z.ZodObject<{
|
|
735
|
+
export declare const substitution_schema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
573
736
|
type: z.ZodLiteral<"version">;
|
|
574
737
|
name: z.ZodString;
|
|
575
738
|
default: z.ZodOptional<z.ZodString>;
|
|
@@ -685,7 +848,25 @@ export declare const substitution_schema: z.ZodUnion<[z.ZodObject<{
|
|
|
685
848
|
name: string;
|
|
686
849
|
type: "namespace";
|
|
687
850
|
default?: string | undefined;
|
|
688
|
-
}>, z.
|
|
851
|
+
}>, z.ZodObject<{
|
|
852
|
+
type: z.ZodOptional<z.ZodLiteral<"generic">>;
|
|
853
|
+
name: z.ZodString;
|
|
854
|
+
default: z.ZodOptional<z.ZodString>;
|
|
855
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
856
|
+
preserve_case: z.ZodOptional<z.ZodBoolean>;
|
|
857
|
+
}, "strip", z.ZodTypeAny, {
|
|
858
|
+
name: string;
|
|
859
|
+
type?: "generic" | undefined;
|
|
860
|
+
default?: string | undefined;
|
|
861
|
+
secret?: string | undefined;
|
|
862
|
+
preserve_case?: boolean | undefined;
|
|
863
|
+
}, {
|
|
864
|
+
name: string;
|
|
865
|
+
type?: "generic" | undefined;
|
|
866
|
+
default?: string | undefined;
|
|
867
|
+
secret?: string | undefined;
|
|
868
|
+
preserve_case?: boolean | undefined;
|
|
869
|
+
}>]>, z.ZodEffects<z.ZodObject<{
|
|
689
870
|
type: z.ZodLiteral<"1password">;
|
|
690
871
|
name: z.ZodString;
|
|
691
872
|
/** 1Password secret reference: op://vault/item[/section]/field, or shorthand item/field when vault is configured at cluster level */
|
|
@@ -755,25 +936,22 @@ export declare const substitution_schema: z.ZodUnion<[z.ZodObject<{
|
|
|
755
936
|
default?: string | undefined;
|
|
756
937
|
project?: string | undefined;
|
|
757
938
|
config?: string | undefined;
|
|
758
|
-
}>, z.ZodObject<{
|
|
759
|
-
type: z.
|
|
939
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
940
|
+
type: z.ZodString;
|
|
760
941
|
name: z.ZodString;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
}, "
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}, {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
secret?: string | undefined;
|
|
775
|
-
preserve_case?: boolean | undefined;
|
|
776
|
-
}>]>;
|
|
942
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
943
|
+
type: z.ZodString;
|
|
944
|
+
name: z.ZodString;
|
|
945
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
946
|
+
type: z.ZodString;
|
|
947
|
+
name: z.ZodString;
|
|
948
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
949
|
+
type: z.ZodString;
|
|
950
|
+
name: z.ZodString;
|
|
951
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
952
|
+
type: z.ZodString;
|
|
953
|
+
name: z.ZodString;
|
|
954
|
+
}, z.ZodTypeAny, "passthrough">>]>;
|
|
777
955
|
export type SubstitutionType = z.infer<typeof substitution_schema>;
|
|
778
956
|
/**
|
|
779
957
|
* Type guard for version substitutions.
|
|
@@ -799,6 +977,12 @@ export declare function is_onepassword_substitution(sub: SubstitutionType): sub
|
|
|
799
977
|
* Type guard for Doppler substitutions.
|
|
800
978
|
*/
|
|
801
979
|
export declare function is_doppler_substitution(sub: SubstitutionType): sub is DopplerSubstitutionType;
|
|
980
|
+
/**
|
|
981
|
+
* Type guard for plugin-provided substitutions.
|
|
982
|
+
* Returns true if the substitution type is not a core type (version, helm, namespace, generic)
|
|
983
|
+
* and not a legacy type (1password, doppler).
|
|
984
|
+
*/
|
|
985
|
+
export declare function is_plugin_substitution(sub: SubstitutionType): boolean;
|
|
802
986
|
/**
|
|
803
987
|
* Namespace configuration with fallback behavior.
|
|
804
988
|
*/
|
package/dist/common.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,kBAAkB,iCAA+B,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CA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AC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;IAC7B,gEAAgE;;IAEhE,4EAA4E;;IAE5E,8DAA8D;;IAE9D,uCAAuC;;IAEvC,8BAA8B;;IAE9B,2BAA2B;;IAE3B,iCAAiC;;IAEjC,6BAA6B;;IAE7B,wCAAwC;;IAExC,6CAA6C;;IAE7C,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;EAElE,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,aAAa,uCAAmC,CAAC;AAE9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4087,13 +4087,24 @@ var doppler_substitution_schema = exports_external.object({
|
|
|
4087
4087
|
secret: exports_external.string().min(1),
|
|
4088
4088
|
default: exports_external.string().optional()
|
|
4089
4089
|
});
|
|
4090
|
-
var
|
|
4090
|
+
var core_substitution_schema = exports_external.union([
|
|
4091
4091
|
version_substitution_schema,
|
|
4092
4092
|
helm_substitution_schema,
|
|
4093
4093
|
namespace_substitution_schema,
|
|
4094
|
+
generic_substitution_schema
|
|
4095
|
+
]);
|
|
4096
|
+
var builtin_substitution_types = ["version", "helm", "namespace", "generic", "1password", "doppler"];
|
|
4097
|
+
var plugin_substitution_schema = exports_external.object({
|
|
4098
|
+
type: exports_external.string().min(1),
|
|
4099
|
+
name: exports_external.string().min(1)
|
|
4100
|
+
}).passthrough().refine((data) => !builtin_substitution_types.includes(data.type), {
|
|
4101
|
+
message: "Built-in substitution types must use their specific schema"
|
|
4102
|
+
});
|
|
4103
|
+
var substitution_schema = exports_external.union([
|
|
4104
|
+
core_substitution_schema,
|
|
4094
4105
|
onepassword_substitution_schema,
|
|
4095
4106
|
doppler_substitution_schema,
|
|
4096
|
-
|
|
4107
|
+
plugin_substitution_schema
|
|
4097
4108
|
]);
|
|
4098
4109
|
function is_version_substitution(sub) {
|
|
4099
4110
|
return "type" in sub && sub.type === "version";
|
|
@@ -4113,6 +4124,14 @@ function is_onepassword_substitution(sub) {
|
|
|
4113
4124
|
function is_doppler_substitution(sub) {
|
|
4114
4125
|
return "type" in sub && sub.type === "doppler";
|
|
4115
4126
|
}
|
|
4127
|
+
function is_plugin_substitution(sub) {
|
|
4128
|
+
if (!("type" in sub) || !sub.type) {
|
|
4129
|
+
return false;
|
|
4130
|
+
}
|
|
4131
|
+
const core_types = ["version", "helm", "namespace", "generic"];
|
|
4132
|
+
const legacy_types = ["1password", "doppler"];
|
|
4133
|
+
return !core_types.includes(sub.type) && !legacy_types.includes(sub.type);
|
|
4134
|
+
}
|
|
4116
4135
|
var namespace_config_schema = exports_external.object({
|
|
4117
4136
|
default: exports_external.string().min(1),
|
|
4118
4137
|
create: exports_external.boolean().optional().default(true)
|
|
@@ -4306,10 +4325,17 @@ var bootstrap_credential_schema = exports_external.discriminatedUnion("type", [
|
|
|
4306
4325
|
secret: exports_external.string().min(1)
|
|
4307
4326
|
})
|
|
4308
4327
|
]);
|
|
4328
|
+
var cluster_secret_config_schema = exports_external.object({
|
|
4329
|
+
enabled: exports_external.boolean().optional().default(true),
|
|
4330
|
+
namespace: exports_external.string().min(1).optional().default("doppler-operator-system"),
|
|
4331
|
+
name: exports_external.string().min(1).optional().default("doppler-token"),
|
|
4332
|
+
key: exports_external.string().min(1).optional().default("serviceToken")
|
|
4333
|
+
});
|
|
4309
4334
|
var doppler_config_schema = exports_external.object({
|
|
4310
|
-
project: exports_external.string().min(1),
|
|
4311
|
-
config: exports_external.string().min(1),
|
|
4312
|
-
service_token: bootstrap_credential_schema.optional()
|
|
4335
|
+
project: exports_external.string().min(1).optional(),
|
|
4336
|
+
config: exports_external.string().min(1).optional(),
|
|
4337
|
+
service_token: bootstrap_credential_schema.optional(),
|
|
4338
|
+
cluster_secret: cluster_secret_config_schema.optional()
|
|
4313
4339
|
});
|
|
4314
4340
|
var onepassword_config_schema = exports_external.object({
|
|
4315
4341
|
vault: exports_external.string().min(1),
|
|
@@ -4319,12 +4345,34 @@ var secrets_config_schema = exports_external.object({
|
|
|
4319
4345
|
doppler: doppler_config_schema.optional(),
|
|
4320
4346
|
onepassword: onepassword_config_schema.optional()
|
|
4321
4347
|
});
|
|
4348
|
+
var flux_controller_settings_schema = exports_external.object({
|
|
4349
|
+
concurrent: exports_external.number().int().positive().optional(),
|
|
4350
|
+
requeue_dependency: exports_external.string().optional()
|
|
4351
|
+
});
|
|
4352
|
+
var flux_controllers_config_schema = exports_external.object({
|
|
4353
|
+
concurrent: exports_external.number().int().positive().optional(),
|
|
4354
|
+
requeue_dependency: exports_external.string().optional(),
|
|
4355
|
+
kustomize_controller: flux_controller_settings_schema.optional(),
|
|
4356
|
+
helm_controller: flux_controller_settings_schema.optional(),
|
|
4357
|
+
source_controller: flux_controller_settings_schema.optional()
|
|
4358
|
+
});
|
|
4359
|
+
var flux_config_schema = exports_external.object({
|
|
4360
|
+
controllers: flux_controllers_config_schema.optional()
|
|
4361
|
+
});
|
|
4362
|
+
var defaults_config_schema = exports_external.object({
|
|
4363
|
+
flux_namespace: exports_external.string().min(1).optional(),
|
|
4364
|
+
oci_repository_name: exports_external.string().min(1).optional(),
|
|
4365
|
+
oci_registry_secret_name: exports_external.string().min(1).optional(),
|
|
4366
|
+
flux_reconciliation_interval: exports_external.string().min(1).optional(),
|
|
4367
|
+
flux_reconciliation_timeout: exports_external.string().min(1).optional()
|
|
4368
|
+
});
|
|
4322
4369
|
var cluster_spec_schema = exports_external.object({
|
|
4323
4370
|
code: exports_external.string().min(1).optional(),
|
|
4324
|
-
domain: exports_external.string().min(1),
|
|
4325
4371
|
git: git_config_schema.optional(),
|
|
4326
4372
|
oci: oci_config_schema.optional(),
|
|
4327
4373
|
github: github_config_schema.optional(),
|
|
4374
|
+
flux: flux_config_schema.optional(),
|
|
4375
|
+
defaults: defaults_config_schema.optional(),
|
|
4328
4376
|
templates: exports_external.array(template_config_schema).optional(),
|
|
4329
4377
|
plugins: exports_external.array(plugin_config_schema).optional(),
|
|
4330
4378
|
node_defaults: node_defaults_schema.optional(),
|
|
@@ -4383,6 +4431,26 @@ function node_profile_resource_to_profile(resource) {
|
|
|
4383
4431
|
}
|
|
4384
4432
|
return profile;
|
|
4385
4433
|
}
|
|
4434
|
+
// src/project.ts
|
|
4435
|
+
var project_defaults_schema = exports_external.object({
|
|
4436
|
+
flux_namespace: exports_external.string().min(1).optional(),
|
|
4437
|
+
oci_repository_name: exports_external.string().min(1).optional(),
|
|
4438
|
+
oci_registry_secret_name: exports_external.string().min(1).optional(),
|
|
4439
|
+
flux_reconciliation_interval: exports_external.string().min(1).optional(),
|
|
4440
|
+
flux_reconciliation_timeout: exports_external.string().min(1).optional()
|
|
4441
|
+
});
|
|
4442
|
+
var project_spec_schema = exports_external.object({
|
|
4443
|
+
defaults: project_defaults_schema.optional()
|
|
4444
|
+
});
|
|
4445
|
+
var project_schema = exports_external.object({
|
|
4446
|
+
apiVersion: api_version_schema,
|
|
4447
|
+
kind: exports_external.literal("Project"),
|
|
4448
|
+
metadata: metadata_schema,
|
|
4449
|
+
spec: project_spec_schema.optional()
|
|
4450
|
+
});
|
|
4451
|
+
function validate_project(data) {
|
|
4452
|
+
return project_schema.safeParse(data);
|
|
4453
|
+
}
|
|
4386
4454
|
// src/sources.ts
|
|
4387
4455
|
var git_ref_schema = exports_external.object({
|
|
4388
4456
|
branch: exports_external.string().min(1).optional(),
|
|
@@ -4451,6 +4519,7 @@ export {
|
|
|
4451
4519
|
values_schema,
|
|
4452
4520
|
validate_template_source,
|
|
4453
4521
|
validate_template,
|
|
4522
|
+
validate_project,
|
|
4454
4523
|
validate_node_resource,
|
|
4455
4524
|
validate_node_profile_resource,
|
|
4456
4525
|
validate_cluster,
|
|
@@ -4466,8 +4535,12 @@ export {
|
|
|
4466
4535
|
secrets_config_schema,
|
|
4467
4536
|
registry_config_schema,
|
|
4468
4537
|
raw_dependency_ref_schema,
|
|
4538
|
+
project_spec_schema,
|
|
4539
|
+
project_schema,
|
|
4540
|
+
project_defaults_schema,
|
|
4469
4541
|
preservation_policy_schema,
|
|
4470
4542
|
preservation_mode_schema,
|
|
4543
|
+
plugin_substitution_schema,
|
|
4471
4544
|
plugin_config_schema,
|
|
4472
4545
|
onepassword_substitution_schema,
|
|
4473
4546
|
onepassword_config_schema,
|
|
@@ -4491,6 +4564,7 @@ export {
|
|
|
4491
4564
|
kustomization_schema,
|
|
4492
4565
|
kustomization_override_schema,
|
|
4493
4566
|
is_version_substitution,
|
|
4567
|
+
is_plugin_substitution,
|
|
4494
4568
|
is_onepassword_substitution,
|
|
4495
4569
|
is_oci_source,
|
|
4496
4570
|
is_namespace_substitution,
|
|
@@ -4514,11 +4588,17 @@ export {
|
|
|
4514
4588
|
git_ref_schema,
|
|
4515
4589
|
git_config_schema,
|
|
4516
4590
|
generic_substitution_schema,
|
|
4591
|
+
flux_controllers_config_schema,
|
|
4592
|
+
flux_controller_settings_schema,
|
|
4593
|
+
flux_config_schema,
|
|
4517
4594
|
duration_schema,
|
|
4518
4595
|
doppler_substitution_schema,
|
|
4519
4596
|
doppler_config_schema,
|
|
4520
4597
|
dependency_ref_schema,
|
|
4598
|
+
defaults_config_schema,
|
|
4599
|
+
core_substitution_schema,
|
|
4521
4600
|
cluster_spec_schema,
|
|
4601
|
+
cluster_secret_config_schema,
|
|
4522
4602
|
cluster_schema,
|
|
4523
4603
|
bootstrap_credential_schema,
|
|
4524
4604
|
auth_config_schema,
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Project-level defaults that apply to all clusters.
|
|
4
|
+
* Can be overridden per-cluster in cluster.yaml spec.defaults.
|
|
5
|
+
*/
|
|
6
|
+
export declare const project_defaults_schema: z.ZodObject<{
|
|
7
|
+
/** Flux system namespace where Flux controllers run */
|
|
8
|
+
flux_namespace: z.ZodOptional<z.ZodString>;
|
|
9
|
+
/** Flux OCIRepository resource name */
|
|
10
|
+
oci_repository_name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
/** Secret name for OCI registry authentication */
|
|
12
|
+
oci_registry_secret_name: z.ZodOptional<z.ZodString>;
|
|
13
|
+
/** Default reconciliation interval for Flux resources */
|
|
14
|
+
flux_reconciliation_interval: z.ZodOptional<z.ZodString>;
|
|
15
|
+
/** Default timeout for Flux reconciliation */
|
|
16
|
+
flux_reconciliation_timeout: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
flux_namespace?: string | undefined;
|
|
19
|
+
oci_repository_name?: string | undefined;
|
|
20
|
+
oci_registry_secret_name?: string | undefined;
|
|
21
|
+
flux_reconciliation_interval?: string | undefined;
|
|
22
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
flux_namespace?: string | undefined;
|
|
25
|
+
oci_repository_name?: string | undefined;
|
|
26
|
+
oci_registry_secret_name?: string | undefined;
|
|
27
|
+
flux_reconciliation_interval?: string | undefined;
|
|
28
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type ProjectDefaultsType = z.infer<typeof project_defaults_schema>;
|
|
31
|
+
/**
|
|
32
|
+
* Project specification in kustodian.yaml.
|
|
33
|
+
*/
|
|
34
|
+
export declare const project_spec_schema: z.ZodObject<{
|
|
35
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
/** Flux system namespace where Flux controllers run */
|
|
37
|
+
flux_namespace: z.ZodOptional<z.ZodString>;
|
|
38
|
+
/** Flux OCIRepository resource name */
|
|
39
|
+
oci_repository_name: z.ZodOptional<z.ZodString>;
|
|
40
|
+
/** Secret name for OCI registry authentication */
|
|
41
|
+
oci_registry_secret_name: z.ZodOptional<z.ZodString>;
|
|
42
|
+
/** Default reconciliation interval for Flux resources */
|
|
43
|
+
flux_reconciliation_interval: z.ZodOptional<z.ZodString>;
|
|
44
|
+
/** Default timeout for Flux reconciliation */
|
|
45
|
+
flux_reconciliation_timeout: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
flux_namespace?: string | undefined;
|
|
48
|
+
oci_repository_name?: string | undefined;
|
|
49
|
+
oci_registry_secret_name?: string | undefined;
|
|
50
|
+
flux_reconciliation_interval?: string | undefined;
|
|
51
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
flux_namespace?: string | undefined;
|
|
54
|
+
oci_repository_name?: string | undefined;
|
|
55
|
+
oci_registry_secret_name?: string | undefined;
|
|
56
|
+
flux_reconciliation_interval?: string | undefined;
|
|
57
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
58
|
+
}>>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
defaults?: {
|
|
61
|
+
flux_namespace?: string | undefined;
|
|
62
|
+
oci_repository_name?: string | undefined;
|
|
63
|
+
oci_registry_secret_name?: string | undefined;
|
|
64
|
+
flux_reconciliation_interval?: string | undefined;
|
|
65
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
defaults?: {
|
|
69
|
+
flux_namespace?: string | undefined;
|
|
70
|
+
oci_repository_name?: string | undefined;
|
|
71
|
+
oci_registry_secret_name?: string | undefined;
|
|
72
|
+
flux_reconciliation_interval?: string | undefined;
|
|
73
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
export type ProjectSpecType = z.infer<typeof project_spec_schema>;
|
|
77
|
+
/**
|
|
78
|
+
* Project resource schema (kustodian.yaml).
|
|
79
|
+
*/
|
|
80
|
+
export declare const project_schema: z.ZodObject<{
|
|
81
|
+
apiVersion: z.ZodLiteral<"kustodian.io/v1">;
|
|
82
|
+
kind: z.ZodLiteral<"Project">;
|
|
83
|
+
metadata: z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
name: string;
|
|
87
|
+
}, {
|
|
88
|
+
name: string;
|
|
89
|
+
}>;
|
|
90
|
+
spec: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
/** Flux system namespace where Flux controllers run */
|
|
93
|
+
flux_namespace: z.ZodOptional<z.ZodString>;
|
|
94
|
+
/** Flux OCIRepository resource name */
|
|
95
|
+
oci_repository_name: z.ZodOptional<z.ZodString>;
|
|
96
|
+
/** Secret name for OCI registry authentication */
|
|
97
|
+
oci_registry_secret_name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
/** Default reconciliation interval for Flux resources */
|
|
99
|
+
flux_reconciliation_interval: z.ZodOptional<z.ZodString>;
|
|
100
|
+
/** Default timeout for Flux reconciliation */
|
|
101
|
+
flux_reconciliation_timeout: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
flux_namespace?: string | undefined;
|
|
104
|
+
oci_repository_name?: string | undefined;
|
|
105
|
+
oci_registry_secret_name?: string | undefined;
|
|
106
|
+
flux_reconciliation_interval?: string | undefined;
|
|
107
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
flux_namespace?: string | undefined;
|
|
110
|
+
oci_repository_name?: string | undefined;
|
|
111
|
+
oci_registry_secret_name?: string | undefined;
|
|
112
|
+
flux_reconciliation_interval?: string | undefined;
|
|
113
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
114
|
+
}>>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
defaults?: {
|
|
117
|
+
flux_namespace?: string | undefined;
|
|
118
|
+
oci_repository_name?: string | undefined;
|
|
119
|
+
oci_registry_secret_name?: string | undefined;
|
|
120
|
+
flux_reconciliation_interval?: string | undefined;
|
|
121
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
defaults?: {
|
|
125
|
+
flux_namespace?: string | undefined;
|
|
126
|
+
oci_repository_name?: string | undefined;
|
|
127
|
+
oci_registry_secret_name?: string | undefined;
|
|
128
|
+
flux_reconciliation_interval?: string | undefined;
|
|
129
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
}>>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
kind: "Project";
|
|
134
|
+
apiVersion: "kustodian.io/v1";
|
|
135
|
+
metadata: {
|
|
136
|
+
name: string;
|
|
137
|
+
};
|
|
138
|
+
spec?: {
|
|
139
|
+
defaults?: {
|
|
140
|
+
flux_namespace?: string | undefined;
|
|
141
|
+
oci_repository_name?: string | undefined;
|
|
142
|
+
oci_registry_secret_name?: string | undefined;
|
|
143
|
+
flux_reconciliation_interval?: string | undefined;
|
|
144
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
kind: "Project";
|
|
149
|
+
apiVersion: "kustodian.io/v1";
|
|
150
|
+
metadata: {
|
|
151
|
+
name: string;
|
|
152
|
+
};
|
|
153
|
+
spec?: {
|
|
154
|
+
defaults?: {
|
|
155
|
+
flux_namespace?: string | undefined;
|
|
156
|
+
oci_repository_name?: string | undefined;
|
|
157
|
+
oci_registry_secret_name?: string | undefined;
|
|
158
|
+
flux_reconciliation_interval?: string | undefined;
|
|
159
|
+
flux_reconciliation_timeout?: string | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
export type ProjectType = z.infer<typeof project_schema>;
|
|
164
|
+
/**
|
|
165
|
+
* Validates a project configuration.
|
|
166
|
+
*/
|
|
167
|
+
export declare function validate_project(data: unknown): z.SafeParseReturnType<unknown, ProjectType>;
|
|
168
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,uBAAuB;IAClC,uDAAuD;;IAEvD,uCAAuC;;IAEvC,kDAAkD;;IAElD,yDAAyD;;IAEzD,8CAA8C;;;;;;;;;;;;;;EAE9C,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,mBAAmB;;QAjB9B,uDAAuD;;QAEvD,uCAAuC;;QAEvC,kDAAkD;;QAElD,yDAAyD;;QAEzD,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW9C,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;YA1BzB,uDAAuD;;YAEvD,uCAAuC;;YAEvC,kDAAkD;;YAElD,yDAAyD;;YAEzD,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB9C,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEzD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAE3F"}
|