@kumulo/core 0.1.1 → 0.2.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/cdn-noop/index.d.ts +16 -0
- package/dist/config/decode.d.ts +4 -4
- package/dist/config/index.d.ts +4 -3
- package/dist/config/rule.d.ts +9 -0
- package/dist/config/schema.d.ts +326 -293
- package/dist/config/yaml.d.ts +3 -3
- package/dist/dist-Jz1Fp2MY.mjs +1612 -0
- package/dist/dns/index.d.ts +2 -0
- package/dist/dns/ownership.d.ts +0 -1
- package/dist/dns/reconcile.d.ts +41 -0
- package/dist/domain/types.d.ts +94 -22
- package/dist/http/client.d.ts +24 -0
- package/dist/http/errors.d.ts +31 -0
- package/dist/http/index.d.ts +5 -0
- package/dist/http/retry-after.d.ts +11 -0
- package/dist/index.d.ts +26 -18
- package/dist/index.mjs +805 -324
- package/dist/k8s/addon.d.ts +14 -0
- package/dist/k8s/client.d.ts +11 -4
- package/dist/k8s/index.d.ts +6 -3
- package/dist/k8s/kubeconfig.d.ts +2 -2
- package/dist/k8s/node-ops.d.ts +2 -2
- package/dist/k8s/readiness.d.ts +0 -1
- package/dist/k8s/resource-ref.d.ts +3 -0
- package/dist/outputs/file.d.ts +41 -0
- package/dist/outputs/index.d.ts +2 -0
- package/dist/paginate.d.ts +43 -0
- package/dist/plan/diff.d.ts +0 -5
- package/dist/plan/hash.d.ts +3 -1
- package/dist/plan/index.d.ts +4 -2
- package/dist/plan/rows.d.ts +10 -0
- package/dist/plan/types.d.ts +24 -4
- package/dist/ports/cdn-provider.d.ts +21 -0
- package/dist/ports/cloud-provider.d.ts +3 -1
- package/dist/ports/distro.d.ts +2 -29
- package/dist/ports/provider-profile.d.ts +2 -18
- package/dist/ports/validation.d.ts +3 -3
- package/dist/present/decide.d.ts +12 -5
- package/dist/present/index.d.ts +1 -3
- package/dist/profiles/generic.d.ts +3 -17
- package/dist/reconcile/index.d.ts +0 -1
- package/dist/reconcile/poll.d.ts +14 -3
- package/dist/storage/diff.d.ts +24 -0
- package/dist/testing/contract.d.ts +18 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.mjs +16691 -0
- package/package.json +13 -8
- package/dist/errors/retryable.d.ts +0 -2
- package/dist/ports/addon.d.ts +0 -13
- package/dist/present/render.d.ts +0 -2
- package/dist/reconcile/apply.d.ts +0 -8
- package/dist/reconcile/phases.d.ts +0 -5
- package/dist/reconcile/pipeline.d.ts +0 -9
package/dist/config/schema.d.ts
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
declare const
|
|
2
|
+
export declare const Cidr: Schema.String;
|
|
3
|
+
export declare const isIpLiteral: (target: string) => boolean;
|
|
4
|
+
export declare const cidrRange: (cidr: string) => readonly [number, number];
|
|
5
|
+
export declare const PositiveInt: Schema.Number;
|
|
6
|
+
export declare const NonNegativeInt: Schema.Number;
|
|
7
|
+
export declare const Provider: Schema.Literals<readonly ["ovh", "generic", "hetzner", "upcloud"]>;
|
|
8
|
+
export declare const AuthMethod: Schema.Literals<readonly ["application_credential", "clouds_yaml", "env", "api_token"]>;
|
|
9
|
+
export declare const AccessMode: Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>;
|
|
10
|
+
export type Provider = typeof Provider.Type;
|
|
11
|
+
export type AuthMethod = typeof AuthMethod.Type;
|
|
12
|
+
export declare const authMethodsByProvider: Record<Provider, ReadonlyArray<AuthMethod>>;
|
|
13
|
+
export declare const secretsRequiredForObjectStorage: import("./rule").CrossFieldRule<{
|
|
14
|
+
object_storage: {
|
|
15
|
+
module: string;
|
|
16
|
+
};
|
|
17
|
+
secrets: {
|
|
18
|
+
sink: string;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
export declare const authMethodConsistentWithProvider: import("./rule").CrossFieldRule<{
|
|
22
|
+
provider: Provider;
|
|
23
|
+
auth: {
|
|
24
|
+
method: AuthMethod;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
export declare const Auth: Schema.Struct<{
|
|
28
|
+
readonly method: Schema.Literals<readonly ["application_credential", "clouds_yaml", "env", "api_token"]>;
|
|
29
|
+
readonly region: Schema.NonEmptyString;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const Autoscaling: Schema.Struct<{
|
|
32
|
+
readonly enabled: Schema.Boolean;
|
|
33
|
+
readonly min: Schema.Number;
|
|
34
|
+
readonly max: Schema.Number;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const WorkerPool: Schema.Struct<{
|
|
3
37
|
readonly name: Schema.NonEmptyString;
|
|
4
38
|
readonly flavor: Schema.NonEmptyString;
|
|
5
39
|
readonly count: Schema.Number;
|
|
@@ -11,207 +45,280 @@ declare const WorkerPool: Schema.Struct<{
|
|
|
11
45
|
readonly max: Schema.Number;
|
|
12
46
|
}>>;
|
|
13
47
|
}>;
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
16
|
-
|
|
48
|
+
export declare const Dns: Schema.Union<readonly [Schema.Struct<{
|
|
49
|
+
readonly module: Schema.Literal<"none">;
|
|
50
|
+
}>, Schema.Struct<{
|
|
51
|
+
readonly module: Schema.Literals<readonly ["ovh", "hetzner", "bunny", "godaddy"]>;
|
|
52
|
+
readonly zone: Schema.NonEmptyString;
|
|
53
|
+
readonly ttl: Schema.Number;
|
|
54
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
55
|
+
readonly name: Schema.NonEmptyString;
|
|
56
|
+
readonly target: Schema.NonEmptyString;
|
|
57
|
+
}>>;
|
|
58
|
+
}>]>;
|
|
59
|
+
export declare const Pvc: Schema.Struct<{
|
|
60
|
+
readonly namespace: Schema.NonEmptyString;
|
|
61
|
+
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const ManagedVolume: Schema.Struct<{
|
|
17
64
|
readonly name: Schema.NonEmptyString;
|
|
18
|
-
readonly
|
|
19
|
-
|
|
65
|
+
readonly size_gb: Schema.Number;
|
|
66
|
+
readonly type: Schema.NonEmptyString;
|
|
67
|
+
readonly retain: Schema.Boolean;
|
|
68
|
+
readonly pvc: Schema.optionalKey<Schema.Struct<{
|
|
69
|
+
readonly namespace: Schema.NonEmptyString;
|
|
70
|
+
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
20
71
|
}>>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
72
|
+
}>;
|
|
73
|
+
export declare const NoVolumes: Schema.Struct<{
|
|
74
|
+
readonly module: Schema.Literal<"none">;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const CinderVolumes: Schema.Struct<{
|
|
77
|
+
readonly module: Schema.Literal<"cinder">;
|
|
78
|
+
readonly managed: Schema.$Array<Schema.Struct<{
|
|
26
79
|
readonly name: Schema.NonEmptyString;
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
readonly
|
|
33
|
-
readonly min: Schema.Number;
|
|
34
|
-
readonly max: Schema.Number;
|
|
80
|
+
readonly size_gb: Schema.Number;
|
|
81
|
+
readonly type: Schema.NonEmptyString;
|
|
82
|
+
readonly retain: Schema.Boolean;
|
|
83
|
+
readonly pvc: Schema.optionalKey<Schema.Struct<{
|
|
84
|
+
readonly namespace: Schema.NonEmptyString;
|
|
85
|
+
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
35
86
|
}>>;
|
|
36
87
|
}>>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
readonly
|
|
47
|
-
|
|
48
|
-
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
49
|
-
}>>;
|
|
88
|
+
}>;
|
|
89
|
+
export declare const HcloudVolumes: Schema.Struct<{
|
|
90
|
+
readonly module: Schema.Literal<"hcloud">;
|
|
91
|
+
readonly managed: Schema.$Array<Schema.Struct<{
|
|
92
|
+
readonly name: Schema.NonEmptyString;
|
|
93
|
+
readonly size_gb: Schema.Number;
|
|
94
|
+
readonly type: Schema.NonEmptyString;
|
|
95
|
+
readonly retain: Schema.Boolean;
|
|
96
|
+
readonly pvc: Schema.optionalKey<Schema.Struct<{
|
|
97
|
+
readonly namespace: Schema.NonEmptyString;
|
|
98
|
+
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
50
99
|
}>>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
100
|
+
}>>;
|
|
101
|
+
}>;
|
|
102
|
+
export declare const Volumes: Schema.Union<readonly [Schema.Struct<{
|
|
103
|
+
readonly module: Schema.Literal<"none">;
|
|
104
|
+
}>, Schema.Struct<{
|
|
105
|
+
readonly module: Schema.Literal<"cinder">;
|
|
106
|
+
readonly managed: Schema.$Array<Schema.Struct<{
|
|
107
|
+
readonly name: Schema.NonEmptyString;
|
|
108
|
+
readonly size_gb: Schema.Number;
|
|
109
|
+
readonly type: Schema.NonEmptyString;
|
|
110
|
+
readonly retain: Schema.Boolean;
|
|
111
|
+
readonly pvc: Schema.optionalKey<Schema.Struct<{
|
|
112
|
+
readonly namespace: Schema.NonEmptyString;
|
|
113
|
+
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
62
114
|
}>>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
115
|
+
}>>;
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
readonly module: Schema.Literal<"hcloud">;
|
|
118
|
+
readonly managed: Schema.$Array<Schema.Struct<{
|
|
119
|
+
readonly name: Schema.NonEmptyString;
|
|
120
|
+
readonly size_gb: Schema.Number;
|
|
121
|
+
readonly type: Schema.NonEmptyString;
|
|
122
|
+
readonly retain: Schema.Boolean;
|
|
123
|
+
readonly pvc: Schema.optionalKey<Schema.Struct<{
|
|
124
|
+
readonly namespace: Schema.NonEmptyString;
|
|
125
|
+
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
74
126
|
}>>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
readonly module: Schema.Literal<"none">;
|
|
90
|
-
}>, Schema.Struct<{
|
|
91
|
-
readonly module: Schema.Literals<readonly ["ovh", "hetzner"]>;
|
|
92
|
-
readonly zone: Schema.NonEmptyString;
|
|
93
|
-
readonly ttl: Schema.Number;
|
|
94
|
-
readonly records: Schema.$Array<Schema.Struct<{
|
|
95
|
-
readonly name: Schema.NonEmptyString;
|
|
96
|
-
readonly target: Schema.NonEmptyString;
|
|
127
|
+
}>>;
|
|
128
|
+
}>]>;
|
|
129
|
+
export declare const OpenStackVolumes: Schema.Union<readonly [Schema.Struct<{
|
|
130
|
+
readonly module: Schema.Literal<"none">;
|
|
131
|
+
}>, Schema.Struct<{
|
|
132
|
+
readonly module: Schema.Literal<"cinder">;
|
|
133
|
+
readonly managed: Schema.$Array<Schema.Struct<{
|
|
134
|
+
readonly name: Schema.NonEmptyString;
|
|
135
|
+
readonly size_gb: Schema.Number;
|
|
136
|
+
readonly type: Schema.NonEmptyString;
|
|
137
|
+
readonly retain: Schema.Boolean;
|
|
138
|
+
readonly pvc: Schema.optionalKey<Schema.Struct<{
|
|
139
|
+
readonly namespace: Schema.NonEmptyString;
|
|
140
|
+
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
97
141
|
}>>;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
142
|
+
}>>;
|
|
143
|
+
}>]>;
|
|
144
|
+
export declare const BucketName: Schema.String;
|
|
145
|
+
export declare const BunnyStorageRegion: Schema.Literals<readonly ["DE", "NY", "SG", "UK", "SE", "LA", "JH", "SYD"]>;
|
|
146
|
+
export declare const BunnyBucketName: Schema.String;
|
|
147
|
+
export declare const BunnyObjectStorage: Schema.Struct<{
|
|
148
|
+
readonly module: Schema.Literal<"bunny">;
|
|
149
|
+
readonly buckets: Schema.$Array<Schema.Struct<{
|
|
150
|
+
readonly name: Schema.String;
|
|
151
|
+
readonly region: Schema.Literals<readonly ["DE", "NY", "SG", "UK", "SE", "LA", "JH", "SYD"]>;
|
|
152
|
+
readonly tier: Schema.optionalKey<Schema.Literals<readonly ["standard", "edge"]>>;
|
|
153
|
+
readonly retain: Schema.Boolean;
|
|
154
|
+
}>>;
|
|
155
|
+
}>;
|
|
156
|
+
export declare const ObjectStorage: Schema.Union<readonly [Schema.Struct<{
|
|
157
|
+
readonly module: Schema.Literal<"none">;
|
|
158
|
+
}>, Schema.Struct<{
|
|
159
|
+
readonly module: Schema.Literal<"ovh">;
|
|
160
|
+
readonly buckets: Schema.$Array<Schema.Struct<{
|
|
161
|
+
readonly name: Schema.String;
|
|
162
|
+
readonly region: Schema.NonEmptyString;
|
|
163
|
+
readonly versioning: Schema.Boolean;
|
|
164
|
+
readonly encryption: Schema.Boolean;
|
|
165
|
+
readonly retain: Schema.Boolean;
|
|
166
|
+
}>>;
|
|
167
|
+
}>, Schema.Struct<{
|
|
168
|
+
readonly module: Schema.Literal<"bunny">;
|
|
169
|
+
readonly buckets: Schema.$Array<Schema.Struct<{
|
|
170
|
+
readonly name: Schema.String;
|
|
171
|
+
readonly region: Schema.Literals<readonly ["DE", "NY", "SG", "UK", "SE", "LA", "JH", "SYD"]>;
|
|
172
|
+
readonly tier: Schema.optionalKey<Schema.Literals<readonly ["standard", "edge"]>>;
|
|
173
|
+
readonly retain: Schema.Boolean;
|
|
174
|
+
}>>;
|
|
175
|
+
}>]>;
|
|
176
|
+
export declare const Shield: Schema.Struct<{
|
|
177
|
+
readonly plan: Schema.Literals<readonly ["basic", "advanced", "business", "enterprise"]>;
|
|
178
|
+
readonly waf: Schema.Struct<{
|
|
179
|
+
readonly enabled: Schema.Boolean;
|
|
180
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
115
181
|
}>;
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly cinder_csi: Schema.Struct<{
|
|
119
|
-
readonly enabled: Schema.Boolean;
|
|
120
|
-
readonly default_volume_type: Schema.NonEmptyString;
|
|
121
|
-
}>;
|
|
122
|
-
readonly hcloud_csi: Schema.Struct<{
|
|
123
|
-
readonly enabled: Schema.Boolean;
|
|
124
|
-
}>;
|
|
125
|
-
readonly system_upgrade_controller: Schema.Boolean;
|
|
126
|
-
readonly cni: Schema.Literals<readonly ["flannel", "cilium"]>;
|
|
182
|
+
readonly ddos: Schema.Struct<{
|
|
183
|
+
readonly sensitivity: Schema.Literals<readonly ["off", "low", "medium", "high", "challenge"]>;
|
|
127
184
|
}>;
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
185
|
+
readonly bot_detection: Schema.Struct<{
|
|
186
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
187
|
+
readonly sensitivity: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
131
188
|
}>;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
readonly
|
|
189
|
+
readonly rate_limits: Schema.$Array<Schema.Struct<{
|
|
190
|
+
readonly name: Schema.NonEmptyString;
|
|
191
|
+
readonly path_prefix: Schema.NonEmptyString;
|
|
192
|
+
readonly requests: Schema.Number;
|
|
193
|
+
readonly window: Schema.Number;
|
|
194
|
+
readonly block_for: Schema.Number;
|
|
195
|
+
readonly key: Schema.Literals<readonly ["ip"]>;
|
|
137
196
|
}>>;
|
|
138
|
-
readonly
|
|
139
|
-
readonly method: Schema.Literals<readonly ["application_credential", "clouds_yaml", "env", "api_token"]>;
|
|
140
|
-
readonly region: Schema.NonEmptyString;
|
|
141
|
-
}>;
|
|
142
|
-
readonly worker_pools: Schema.$Array<Schema.Struct<{
|
|
197
|
+
readonly access_lists: Schema.$Array<Schema.Struct<{
|
|
143
198
|
readonly name: Schema.NonEmptyString;
|
|
144
|
-
readonly
|
|
145
|
-
readonly
|
|
146
|
-
readonly
|
|
147
|
-
|
|
148
|
-
|
|
199
|
+
readonly type: Schema.Literals<readonly ["cidr", "ip", "asn", "country"]>;
|
|
200
|
+
readonly action: Schema.Literals<readonly ["allow", "block", "challenge", "log"]>;
|
|
201
|
+
readonly entries: Schema.$Array<Schema.NonEmptyString>;
|
|
202
|
+
}>>;
|
|
203
|
+
}>;
|
|
204
|
+
export declare const CdnOrigin: Schema.Union<readonly [Schema.Literal<"ingress">, Schema.Struct<{
|
|
205
|
+
readonly url: Schema.NonEmptyString;
|
|
206
|
+
}>]>;
|
|
207
|
+
export declare const BunnyCdn: Schema.Struct<{
|
|
208
|
+
readonly module: Schema.Literal<"bunny">;
|
|
209
|
+
readonly name: Schema.String;
|
|
210
|
+
readonly tier: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["standard", "volume"]>, never>;
|
|
211
|
+
readonly origin: Schema.Union<readonly [Schema.Literal<"ingress">, Schema.Struct<{
|
|
212
|
+
readonly url: Schema.NonEmptyString;
|
|
213
|
+
}>]>;
|
|
214
|
+
readonly verify_origin_tls: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
215
|
+
readonly websockets: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
216
|
+
readonly cache: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["smart", "origin"]>, never>;
|
|
217
|
+
readonly hostnames: Schema.$Array<Schema.String>;
|
|
218
|
+
readonly force_ssl: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
219
|
+
readonly shield: Schema.optionalKey<Schema.Struct<{
|
|
220
|
+
readonly plan: Schema.Literals<readonly ["basic", "advanced", "business", "enterprise"]>;
|
|
221
|
+
readonly waf: Schema.Struct<{
|
|
149
222
|
readonly enabled: Schema.Boolean;
|
|
150
|
-
readonly
|
|
151
|
-
|
|
223
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
224
|
+
}>;
|
|
225
|
+
readonly ddos: Schema.Struct<{
|
|
226
|
+
readonly sensitivity: Schema.Literals<readonly ["off", "low", "medium", "high", "challenge"]>;
|
|
227
|
+
}>;
|
|
228
|
+
readonly bot_detection: Schema.Struct<{
|
|
229
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
230
|
+
readonly sensitivity: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
231
|
+
}>;
|
|
232
|
+
readonly rate_limits: Schema.$Array<Schema.Struct<{
|
|
233
|
+
readonly name: Schema.NonEmptyString;
|
|
234
|
+
readonly path_prefix: Schema.NonEmptyString;
|
|
235
|
+
readonly requests: Schema.Number;
|
|
236
|
+
readonly window: Schema.Number;
|
|
237
|
+
readonly block_for: Schema.Number;
|
|
238
|
+
readonly key: Schema.Literals<readonly ["ip"]>;
|
|
152
239
|
}>>;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
readonly buckets: Schema.$Array<Schema.Struct<{
|
|
159
|
-
readonly name: Schema.String;
|
|
160
|
-
readonly region: Schema.NonEmptyString;
|
|
161
|
-
readonly versioning: Schema.Boolean;
|
|
162
|
-
readonly encryption: Schema.Boolean;
|
|
163
|
-
readonly retain: Schema.Boolean;
|
|
240
|
+
readonly access_lists: Schema.$Array<Schema.Struct<{
|
|
241
|
+
readonly name: Schema.NonEmptyString;
|
|
242
|
+
readonly type: Schema.Literals<readonly ["cidr", "ip", "asn", "country"]>;
|
|
243
|
+
readonly action: Schema.Literals<readonly ["allow", "block", "challenge", "log"]>;
|
|
244
|
+
readonly entries: Schema.$Array<Schema.NonEmptyString>;
|
|
164
245
|
}>>;
|
|
246
|
+
}>>;
|
|
247
|
+
}>;
|
|
248
|
+
export declare const Cdn: Schema.Union<readonly [Schema.Struct<{
|
|
249
|
+
readonly module: Schema.Literal<"none">;
|
|
250
|
+
}>, Schema.Struct<{
|
|
251
|
+
readonly module: Schema.Literal<"bunny">;
|
|
252
|
+
readonly name: Schema.String;
|
|
253
|
+
readonly tier: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["standard", "volume"]>, never>;
|
|
254
|
+
readonly origin: Schema.Union<readonly [Schema.Literal<"ingress">, Schema.Struct<{
|
|
255
|
+
readonly url: Schema.NonEmptyString;
|
|
165
256
|
}>]>;
|
|
166
|
-
readonly
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
257
|
+
readonly verify_origin_tls: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
258
|
+
readonly websockets: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
259
|
+
readonly cache: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["smart", "origin"]>, never>;
|
|
260
|
+
readonly hostnames: Schema.$Array<Schema.String>;
|
|
261
|
+
readonly force_ssl: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
262
|
+
readonly shield: Schema.optionalKey<Schema.Struct<{
|
|
263
|
+
readonly plan: Schema.Literals<readonly ["basic", "advanced", "business", "enterprise"]>;
|
|
264
|
+
readonly waf: Schema.Struct<{
|
|
265
|
+
readonly enabled: Schema.Boolean;
|
|
266
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
173
267
|
}>;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
readonly
|
|
182
|
-
readonly zone: Schema.NonEmptyString;
|
|
183
|
-
readonly ttl: Schema.Number;
|
|
184
|
-
readonly records: Schema.$Array<Schema.Struct<{
|
|
268
|
+
readonly ddos: Schema.Struct<{
|
|
269
|
+
readonly sensitivity: Schema.Literals<readonly ["off", "low", "medium", "high", "challenge"]>;
|
|
270
|
+
}>;
|
|
271
|
+
readonly bot_detection: Schema.Struct<{
|
|
272
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
273
|
+
readonly sensitivity: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
274
|
+
}>;
|
|
275
|
+
readonly rate_limits: Schema.$Array<Schema.Struct<{
|
|
185
276
|
readonly name: Schema.NonEmptyString;
|
|
186
|
-
readonly
|
|
277
|
+
readonly path_prefix: Schema.NonEmptyString;
|
|
278
|
+
readonly requests: Schema.Number;
|
|
279
|
+
readonly window: Schema.Number;
|
|
280
|
+
readonly block_for: Schema.Number;
|
|
281
|
+
readonly key: Schema.Literals<readonly ["ip"]>;
|
|
187
282
|
}>>;
|
|
188
|
-
|
|
189
|
-
readonly volumes: Schema.Union<readonly [Schema.Struct<{
|
|
190
|
-
readonly module: Schema.Literal<"none">;
|
|
191
|
-
}>, Schema.Struct<{
|
|
192
|
-
readonly module: Schema.Literal<"cinder">;
|
|
193
|
-
readonly managed: Schema.$Array<Schema.Struct<{
|
|
283
|
+
readonly access_lists: Schema.$Array<Schema.Struct<{
|
|
194
284
|
readonly name: Schema.NonEmptyString;
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
readonly pvc: Schema.optionalKey<Schema.Struct<{
|
|
199
|
-
readonly namespace: Schema.NonEmptyString;
|
|
200
|
-
readonly access_modes: Schema.$Array<Schema.Literals<readonly ["ReadWriteOnce", "ReadWriteMany", "ReadOnlyMany"]>>;
|
|
201
|
-
}>>;
|
|
285
|
+
readonly type: Schema.Literals<readonly ["cidr", "ip", "asn", "country"]>;
|
|
286
|
+
readonly action: Schema.Literals<readonly ["allow", "block", "challenge", "log"]>;
|
|
287
|
+
readonly entries: Schema.$Array<Schema.NonEmptyString>;
|
|
202
288
|
}>>;
|
|
203
|
-
}
|
|
289
|
+
}>>;
|
|
290
|
+
}>]>;
|
|
291
|
+
export declare const cdnOriginUrlRequired: import("./rule").CrossFieldRule<{
|
|
292
|
+
cdn?: {
|
|
293
|
+
module: string;
|
|
294
|
+
origin?: unknown;
|
|
295
|
+
};
|
|
204
296
|
}>;
|
|
205
|
-
export declare const
|
|
206
|
-
readonly
|
|
207
|
-
|
|
297
|
+
export declare const Secrets: Schema.Union<readonly [Schema.Struct<{
|
|
298
|
+
readonly sink: Schema.Literal<"none">;
|
|
299
|
+
}>, Schema.Struct<{
|
|
300
|
+
readonly sink: Schema.Literal<"sops">;
|
|
301
|
+
readonly dir: Schema.NonEmptyString;
|
|
302
|
+
readonly sops: Schema.Struct<{
|
|
303
|
+
readonly age_recipient: Schema.String;
|
|
304
|
+
}>;
|
|
305
|
+
}>]>;
|
|
306
|
+
export declare const OutputsFormat: Schema.Literals<readonly ["yaml", "json"]>;
|
|
307
|
+
export type OutputsFormat = typeof OutputsFormat.Type;
|
|
308
|
+
export declare const Outputs: Schema.Struct<{
|
|
309
|
+
readonly format: Schema.Literals<readonly ["yaml", "json"]>;
|
|
310
|
+
}>;
|
|
311
|
+
export declare const ClusterName: Schema.String;
|
|
312
|
+
export declare const commonClusterFields: {
|
|
313
|
+
name: Schema.String;
|
|
314
|
+
outputs: Schema.optionalKey<Schema.Struct<{
|
|
208
315
|
readonly format: Schema.Literals<readonly ["yaml", "json"]>;
|
|
209
316
|
}>>;
|
|
210
|
-
|
|
317
|
+
auth: Schema.Struct<{
|
|
211
318
|
readonly method: Schema.Literals<readonly ["application_credential", "clouds_yaml", "env", "api_token"]>;
|
|
212
319
|
readonly region: Schema.NonEmptyString;
|
|
213
320
|
}>;
|
|
214
|
-
|
|
321
|
+
worker_pools: Schema.$Array<Schema.Struct<{
|
|
215
322
|
readonly name: Schema.NonEmptyString;
|
|
216
323
|
readonly flavor: Schema.NonEmptyString;
|
|
217
324
|
readonly count: Schema.Number;
|
|
@@ -223,7 +330,7 @@ export declare const ClusterConfig: Schema.Union<readonly [Schema.Struct<{
|
|
|
223
330
|
readonly max: Schema.Number;
|
|
224
331
|
}>>;
|
|
225
332
|
}>>;
|
|
226
|
-
|
|
333
|
+
volumes: Schema.Union<readonly [Schema.Struct<{
|
|
227
334
|
readonly module: Schema.Literal<"none">;
|
|
228
335
|
}>, Schema.Struct<{
|
|
229
336
|
readonly module: Schema.Literal<"cinder">;
|
|
@@ -250,7 +357,7 @@ export declare const ClusterConfig: Schema.Union<readonly [Schema.Struct<{
|
|
|
250
357
|
}>>;
|
|
251
358
|
}>>;
|
|
252
359
|
}>]>;
|
|
253
|
-
|
|
360
|
+
object_storage: Schema.Union<readonly [Schema.Struct<{
|
|
254
361
|
readonly module: Schema.Literal<"none">;
|
|
255
362
|
}>, Schema.Struct<{
|
|
256
363
|
readonly module: Schema.Literal<"ovh">;
|
|
@@ -261,97 +368,16 @@ export declare const ClusterConfig: Schema.Union<readonly [Schema.Struct<{
|
|
|
261
368
|
readonly encryption: Schema.Boolean;
|
|
262
369
|
readonly retain: Schema.Boolean;
|
|
263
370
|
}>>;
|
|
264
|
-
}>]>;
|
|
265
|
-
readonly secrets: Schema.Union<readonly [Schema.Struct<{
|
|
266
|
-
readonly sink: Schema.Literal<"none">;
|
|
267
|
-
}>, Schema.Struct<{
|
|
268
|
-
readonly sink: Schema.Literal<"sops">;
|
|
269
|
-
readonly dir: Schema.NonEmptyString;
|
|
270
|
-
readonly sops: Schema.Struct<{
|
|
271
|
-
readonly age_recipient: Schema.String;
|
|
272
|
-
}>;
|
|
273
|
-
}>]>;
|
|
274
|
-
readonly provider: Schema.Literals<readonly ["ovh", "generic", "hetzner"]>;
|
|
275
|
-
readonly distro: Schema.Literal<"k3s">;
|
|
276
|
-
readonly version: Schema.String;
|
|
277
|
-
readonly dns: Schema.Union<readonly [Schema.Struct<{
|
|
278
|
-
readonly module: Schema.Literal<"none">;
|
|
279
|
-
}>, Schema.Struct<{
|
|
280
|
-
readonly module: Schema.Literals<readonly ["ovh", "hetzner"]>;
|
|
281
|
-
readonly zone: Schema.NonEmptyString;
|
|
282
|
-
readonly ttl: Schema.Number;
|
|
283
|
-
readonly records: Schema.$Array<Schema.Struct<{
|
|
284
|
-
readonly name: Schema.NonEmptyString;
|
|
285
|
-
readonly target: Schema.NonEmptyString;
|
|
286
|
-
}>>;
|
|
287
|
-
}>]>;
|
|
288
|
-
readonly network: Schema.Struct<{
|
|
289
|
-
readonly cidr: Schema.String;
|
|
290
|
-
readonly public_access: Schema.Literals<readonly ["bastionless", "nat"]>;
|
|
291
|
-
}>;
|
|
292
|
-
readonly api_server: Schema.Struct<{
|
|
293
|
-
readonly high_availability: Schema.Boolean;
|
|
294
|
-
readonly allowed_cidrs: Schema.$Array<Schema.String>;
|
|
295
|
-
}>;
|
|
296
|
-
readonly ssh: Schema.Struct<{
|
|
297
|
-
readonly public_key_path: Schema.NonEmptyString;
|
|
298
|
-
readonly allowed_cidrs: Schema.$Array<Schema.String>;
|
|
299
|
-
}>;
|
|
300
|
-
readonly masters: Schema.Struct<{
|
|
301
|
-
readonly flavor: Schema.NonEmptyString;
|
|
302
|
-
readonly count: Schema.Number;
|
|
303
|
-
readonly image: Schema.NonEmptyString;
|
|
304
|
-
}>;
|
|
305
|
-
readonly addons: Schema.Struct<{
|
|
306
|
-
readonly cloud_controller_manager: Schema.Boolean;
|
|
307
|
-
readonly cinder_csi: Schema.Struct<{
|
|
308
|
-
readonly enabled: Schema.Boolean;
|
|
309
|
-
readonly default_volume_type: Schema.NonEmptyString;
|
|
310
|
-
}>;
|
|
311
|
-
readonly hcloud_csi: Schema.Struct<{
|
|
312
|
-
readonly enabled: Schema.Boolean;
|
|
313
|
-
}>;
|
|
314
|
-
readonly system_upgrade_controller: Schema.Boolean;
|
|
315
|
-
readonly cni: Schema.Literals<readonly ["flannel", "cilium"]>;
|
|
316
|
-
}>;
|
|
317
|
-
readonly k3s: Schema.Struct<{
|
|
318
|
-
readonly extra_server_args: Schema.$Array<Schema.String>;
|
|
319
|
-
readonly extra_agent_args: Schema.$Array<Schema.String>;
|
|
320
|
-
}>;
|
|
321
|
-
}>, Schema.Struct<{
|
|
322
|
-
readonly name: Schema.NonEmptyString;
|
|
323
|
-
readonly outputs: Schema.optionalKey<Schema.Struct<{
|
|
324
|
-
readonly format: Schema.Literals<readonly ["yaml", "json"]>;
|
|
325
|
-
}>>;
|
|
326
|
-
readonly auth: Schema.Struct<{
|
|
327
|
-
readonly method: Schema.Literals<readonly ["application_credential", "clouds_yaml", "env", "api_token"]>;
|
|
328
|
-
readonly region: Schema.NonEmptyString;
|
|
329
|
-
}>;
|
|
330
|
-
readonly worker_pools: Schema.$Array<Schema.Struct<{
|
|
331
|
-
readonly name: Schema.NonEmptyString;
|
|
332
|
-
readonly flavor: Schema.NonEmptyString;
|
|
333
|
-
readonly count: Schema.Number;
|
|
334
|
-
readonly labels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
335
|
-
readonly taints: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
336
|
-
readonly autoscaling: Schema.optionalKey<Schema.Struct<{
|
|
337
|
-
readonly enabled: Schema.Boolean;
|
|
338
|
-
readonly min: Schema.Number;
|
|
339
|
-
readonly max: Schema.Number;
|
|
340
|
-
}>>;
|
|
341
|
-
}>>;
|
|
342
|
-
readonly object_storage: Schema.Union<readonly [Schema.Struct<{
|
|
343
|
-
readonly module: Schema.Literal<"none">;
|
|
344
371
|
}>, Schema.Struct<{
|
|
345
|
-
readonly module: Schema.Literal<"
|
|
372
|
+
readonly module: Schema.Literal<"bunny">;
|
|
346
373
|
readonly buckets: Schema.$Array<Schema.Struct<{
|
|
347
374
|
readonly name: Schema.String;
|
|
348
|
-
readonly region: Schema.
|
|
349
|
-
readonly
|
|
350
|
-
readonly encryption: Schema.Boolean;
|
|
375
|
+
readonly region: Schema.Literals<readonly ["DE", "NY", "SG", "UK", "SE", "LA", "JH", "SYD"]>;
|
|
376
|
+
readonly tier: Schema.optionalKey<Schema.Literals<readonly ["standard", "edge"]>>;
|
|
351
377
|
readonly retain: Schema.Boolean;
|
|
352
378
|
}>>;
|
|
353
379
|
}>]>;
|
|
354
|
-
|
|
380
|
+
secrets: Schema.Union<readonly [Schema.Struct<{
|
|
355
381
|
readonly sink: Schema.Literal<"none">;
|
|
356
382
|
}>, Schema.Struct<{
|
|
357
383
|
readonly sink: Schema.Literal<"sops">;
|
|
@@ -360,41 +386,48 @@ export declare const ClusterConfig: Schema.Union<readonly [Schema.Struct<{
|
|
|
360
386
|
readonly age_recipient: Schema.String;
|
|
361
387
|
}>;
|
|
362
388
|
}>]>;
|
|
363
|
-
|
|
364
|
-
readonly distro: Schema.Literal<"ovh-mks">;
|
|
365
|
-
readonly version: Schema.String;
|
|
366
|
-
readonly dns: Schema.Union<readonly [Schema.Struct<{
|
|
367
|
-
readonly module: Schema.Literal<"none">;
|
|
368
|
-
}>, Schema.Struct<{
|
|
369
|
-
readonly module: Schema.Literals<readonly ["ovh", "hetzner"]>;
|
|
370
|
-
readonly zone: Schema.NonEmptyString;
|
|
371
|
-
readonly ttl: Schema.Number;
|
|
372
|
-
readonly records: Schema.$Array<Schema.Struct<{
|
|
373
|
-
readonly name: Schema.NonEmptyString;
|
|
374
|
-
readonly target: Schema.NonEmptyString;
|
|
375
|
-
}>>;
|
|
376
|
-
}>]>;
|
|
377
|
-
readonly volumes: Schema.Union<readonly [Schema.Struct<{
|
|
389
|
+
cdn: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
378
390
|
readonly module: Schema.Literal<"none">;
|
|
379
391
|
}>, Schema.Struct<{
|
|
380
|
-
readonly module: Schema.Literal<"
|
|
381
|
-
readonly
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
readonly
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
392
|
+
readonly module: Schema.Literal<"bunny">;
|
|
393
|
+
readonly name: Schema.String;
|
|
394
|
+
readonly tier: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["standard", "volume"]>, never>;
|
|
395
|
+
readonly origin: Schema.Union<readonly [Schema.Literal<"ingress">, Schema.Struct<{
|
|
396
|
+
readonly url: Schema.NonEmptyString;
|
|
397
|
+
}>]>;
|
|
398
|
+
readonly verify_origin_tls: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
399
|
+
readonly websockets: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
400
|
+
readonly cache: Schema.withDecodingDefaultKey<Schema.Literals<readonly ["smart", "origin"]>, never>;
|
|
401
|
+
readonly hostnames: Schema.$Array<Schema.String>;
|
|
402
|
+
readonly force_ssl: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
403
|
+
readonly shield: Schema.optionalKey<Schema.Struct<{
|
|
404
|
+
readonly plan: Schema.Literals<readonly ["basic", "advanced", "business", "enterprise"]>;
|
|
405
|
+
readonly waf: Schema.Struct<{
|
|
406
|
+
readonly enabled: Schema.Boolean;
|
|
407
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
408
|
+
}>;
|
|
409
|
+
readonly ddos: Schema.Struct<{
|
|
410
|
+
readonly sensitivity: Schema.Literals<readonly ["off", "low", "medium", "high", "challenge"]>;
|
|
411
|
+
}>;
|
|
412
|
+
readonly bot_detection: Schema.Struct<{
|
|
413
|
+
readonly mode: Schema.Literals<readonly ["log", "block"]>;
|
|
414
|
+
readonly sensitivity: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
415
|
+
}>;
|
|
416
|
+
readonly rate_limits: Schema.$Array<Schema.Struct<{
|
|
417
|
+
readonly name: Schema.NonEmptyString;
|
|
418
|
+
readonly path_prefix: Schema.NonEmptyString;
|
|
419
|
+
readonly requests: Schema.Number;
|
|
420
|
+
readonly window: Schema.Number;
|
|
421
|
+
readonly block_for: Schema.Number;
|
|
422
|
+
readonly key: Schema.Literals<readonly ["ip"]>;
|
|
423
|
+
}>>;
|
|
424
|
+
readonly access_lists: Schema.$Array<Schema.Struct<{
|
|
425
|
+
readonly name: Schema.NonEmptyString;
|
|
426
|
+
readonly type: Schema.Literals<readonly ["cidr", "ip", "asn", "country"]>;
|
|
427
|
+
readonly action: Schema.Literals<readonly ["allow", "block", "challenge", "log"]>;
|
|
428
|
+
readonly entries: Schema.$Array<Schema.NonEmptyString>;
|
|
389
429
|
}>>;
|
|
390
430
|
}>>;
|
|
391
|
-
}>]
|
|
392
|
-
}
|
|
393
|
-
export type K3sClusterConfig = typeof K3sClusterConfig.Type;
|
|
394
|
-
export type K3sClusterConfigEncoded = typeof K3sClusterConfig.Encoded;
|
|
395
|
-
export type MksClusterConfig = typeof MksClusterConfig.Type;
|
|
396
|
-
export type MksClusterConfigEncoded = typeof MksClusterConfig.Encoded;
|
|
397
|
-
export type ClusterConfig = typeof ClusterConfig.Type;
|
|
398
|
-
export type ClusterConfigEncoded = typeof ClusterConfig.Encoded;
|
|
431
|
+
}>]>>;
|
|
432
|
+
};
|
|
399
433
|
export type WorkerPool = typeof WorkerPool.Type;
|
|
400
|
-
export {};
|