typekro 0.33.8 → 0.33.10
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/.tsbuildinfo +1 -1
- package/dist/core/dependencies/resolver.d.ts.map +1 -1
- package/dist/core/dependencies/resolver.js +9 -0
- package/dist/core/dependencies/resolver.js.map +1 -1
- package/dist/core/deployment/kro-factory.d.ts.map +1 -1
- package/dist/core/deployment/kro-factory.js +21 -1
- package/dist/core/deployment/kro-factory.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-helpers.js +20 -2
- package/dist/core/expressions/composition/composition-analyzer-helpers.js.map +1 -1
- package/dist/core/planning/planner.d.ts.map +1 -1
- package/dist/core/planning/planner.js +135 -3
- package/dist/core/planning/planner.js.map +1 -1
- package/dist/core/serialization/core.d.ts.map +1 -1
- package/dist/core/serialization/core.js +13 -2
- package/dist/core/serialization/core.js.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-cluster.d.ts.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-cluster.js +22 -7
- package/dist/factories/clickhouse/compositions/clickhouse-cluster.js.map +1 -1
- package/dist/factories/clickhouse/resources/installation.d.ts.map +1 -1
- package/dist/factories/clickhouse/resources/installation.js +13 -0
- package/dist/factories/clickhouse/resources/installation.js.map +1 -1
- package/dist/factories/clickhouse/types.d.ts +15 -0
- package/dist/factories/clickhouse/types.d.ts.map +1 -1
- package/dist/factories/clickhouse/types.js +9 -0
- package/dist/factories/clickhouse/types.js.map +1 -1
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.d.ts +130 -17
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.d.ts.map +1 -1
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.js +252 -18
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.js.map +1 -1
- package/dist/factories/clickstack/resources/helm.d.ts +2 -2
- package/dist/factories/clickstack/resources/helm.d.ts.map +1 -1
- package/dist/factories/clickstack/resources/helm.js +4 -3
- package/dist/factories/clickstack/resources/helm.js.map +1 -1
- package/dist/factories/clickstack/types.d.ts +135 -16
- package/dist/factories/clickstack/types.d.ts.map +1 -1
- package/dist/factories/clickstack/types.js +49 -21
- package/dist/factories/clickstack/types.js.map +1 -1
- package/dist/factories/clickstack/utils/helm-values-mapper.d.ts +12 -1
- package/dist/factories/clickstack/utils/helm-values-mapper.d.ts.map +1 -1
- package/dist/factories/clickstack/utils/helm-values-mapper.js +59 -26
- package/dist/factories/clickstack/utils/helm-values-mapper.js.map +1 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts +1 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts.map +1 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.js +71 -46
- package/dist/factories/searxng/compositions/searxng-bootstrap.js.map +1 -1
- package/dist/factories/searxng/index.d.ts +3 -0
- package/dist/factories/searxng/index.d.ts.map +1 -1
- package/dist/factories/searxng/index.js +3 -0
- package/dist/factories/searxng/index.js.map +1 -1
- package/dist/factories/searxng/types.d.ts.map +1 -1
- package/dist/factories/searxng/types.js +8 -9
- package/dist/factories/searxng/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ClickStack (HyperDX) Bootstrap Composition — EXTERNAL ClickHouse only.
|
|
3
3
|
*
|
|
4
|
-
* Deploys the OFFICIAL `clickstack` chart (3.
|
|
4
|
+
* Deploys the OFFICIAL `clickstack` chart (3.2.x, MIT) from
|
|
5
5
|
* https://clickhouse.github.io/ClickStack-helm-charts via HelmRepository and
|
|
6
6
|
* HelmRelease resources. Build-around: we wrap the official chart — never
|
|
7
7
|
* hand-rolled manifests. NOT the archived hyperdxio/helm-charts repo, NOT the
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
* username: 'otelcollector',
|
|
60
60
|
* password: '…',
|
|
61
61
|
* },
|
|
62
|
+
* apiKey: '…',
|
|
62
63
|
* });
|
|
63
64
|
* ```
|
|
64
65
|
*
|
|
@@ -69,26 +70,27 @@
|
|
|
69
70
|
* await bootstrap.factory('kro').deploy({
|
|
70
71
|
* name: 'clickstack',
|
|
71
72
|
* clickhouse: { host: '…' },
|
|
73
|
+
* apiKey: '…',
|
|
72
74
|
* mongoUri: 'mongodb://user:pass@mongo.example.com:27017/hyperdx',
|
|
73
75
|
* });
|
|
74
76
|
* ```
|
|
75
77
|
*/
|
|
76
|
-
import { type
|
|
77
|
-
declare function
|
|
78
|
+
import { type ClickStackInlineExternalMongoBuildOptions, type ClickStackInlineInternalMongoBuildOptions, type ClickStackSecretValuesExternalMongoBuildOptions, type ClickStackSecretValuesInternalMongoBuildOptions } from '../types.js';
|
|
79
|
+
declare function buildInternalInlineComposition(options: ClickStackInlineInternalMongoBuildOptions): import("../../../index.js").CallableComposition<{
|
|
80
|
+
apiKey: string;
|
|
78
81
|
name: string;
|
|
79
82
|
clickhouse: {
|
|
80
83
|
host: string;
|
|
84
|
+
password?: string;
|
|
85
|
+
appPassword?: string;
|
|
81
86
|
nativePort?: number;
|
|
82
87
|
httpPort?: number;
|
|
83
88
|
database?: string;
|
|
84
89
|
username?: string;
|
|
85
|
-
password?: string;
|
|
86
90
|
appUsername?: string;
|
|
87
|
-
appPassword?: string;
|
|
88
91
|
};
|
|
89
92
|
namespace?: string;
|
|
90
93
|
version?: string;
|
|
91
|
-
apiKey?: string;
|
|
92
94
|
hyperdx?: {
|
|
93
95
|
replicas?: number;
|
|
94
96
|
resources?: {
|
|
@@ -125,22 +127,127 @@ declare function buildInternalComposition(options: ClickStackInternalMongoBuildO
|
|
|
125
127
|
};
|
|
126
128
|
version?: string;
|
|
127
129
|
}>;
|
|
128
|
-
declare function
|
|
130
|
+
declare function buildInternalSecretValuesComposition(options: ClickStackSecretValuesInternalMongoBuildOptions): import("../../../index.js").CallableComposition<{
|
|
131
|
+
credentialsSecret: {
|
|
132
|
+
name: string;
|
|
133
|
+
valuesKey?: string;
|
|
134
|
+
};
|
|
135
|
+
clickhouse: {
|
|
136
|
+
host: string;
|
|
137
|
+
nativePort?: number;
|
|
138
|
+
httpPort?: number;
|
|
139
|
+
database?: string;
|
|
140
|
+
username?: string;
|
|
141
|
+
appUsername?: string;
|
|
142
|
+
};
|
|
143
|
+
name: string;
|
|
144
|
+
namespace?: string;
|
|
145
|
+
version?: string;
|
|
146
|
+
hyperdx?: {
|
|
147
|
+
replicas?: number;
|
|
148
|
+
resources?: {
|
|
149
|
+
requests?: {
|
|
150
|
+
cpu?: string;
|
|
151
|
+
memory?: string;
|
|
152
|
+
};
|
|
153
|
+
limits?: {
|
|
154
|
+
cpu?: string;
|
|
155
|
+
memory?: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
image?: {
|
|
159
|
+
repository?: string;
|
|
160
|
+
tag?: string;
|
|
161
|
+
pullPolicy?: "Always" | "IfNotPresent" | "Never";
|
|
162
|
+
};
|
|
163
|
+
frontendUrl?: string;
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
ready: boolean;
|
|
167
|
+
phase: "Ready" | "Failed" | "Installing";
|
|
168
|
+
ui: {
|
|
169
|
+
url: string;
|
|
170
|
+
};
|
|
171
|
+
gateway: {
|
|
172
|
+
otlpHttpEndpoint: string;
|
|
173
|
+
otlpGrpcEndpoint: string;
|
|
174
|
+
};
|
|
175
|
+
app: {
|
|
176
|
+
host: string;
|
|
177
|
+
appPort: number;
|
|
178
|
+
apiPort: number;
|
|
179
|
+
};
|
|
180
|
+
version?: string;
|
|
181
|
+
}>;
|
|
182
|
+
declare function buildExternalInlineComposition(options: ClickStackInlineExternalMongoBuildOptions): import("../../../index.js").CallableComposition<{
|
|
183
|
+
apiKey: string;
|
|
129
184
|
mongoUri: string;
|
|
130
185
|
name: string;
|
|
131
186
|
clickhouse: {
|
|
132
187
|
host: string;
|
|
188
|
+
password?: string;
|
|
189
|
+
appPassword?: string;
|
|
133
190
|
nativePort?: number;
|
|
134
191
|
httpPort?: number;
|
|
135
192
|
database?: string;
|
|
136
193
|
username?: string;
|
|
137
|
-
password?: string;
|
|
138
194
|
appUsername?: string;
|
|
139
|
-
appPassword?: string;
|
|
140
195
|
};
|
|
141
196
|
namespace?: string;
|
|
142
197
|
version?: string;
|
|
143
|
-
|
|
198
|
+
hyperdx?: {
|
|
199
|
+
replicas?: number;
|
|
200
|
+
resources?: {
|
|
201
|
+
requests?: {
|
|
202
|
+
cpu?: string;
|
|
203
|
+
memory?: string;
|
|
204
|
+
};
|
|
205
|
+
limits?: {
|
|
206
|
+
cpu?: string;
|
|
207
|
+
memory?: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
image?: {
|
|
211
|
+
repository?: string;
|
|
212
|
+
tag?: string;
|
|
213
|
+
pullPolicy?: "Always" | "IfNotPresent" | "Never";
|
|
214
|
+
};
|
|
215
|
+
frontendUrl?: string;
|
|
216
|
+
};
|
|
217
|
+
}, {
|
|
218
|
+
ready: boolean;
|
|
219
|
+
phase: "Ready" | "Failed" | "Installing";
|
|
220
|
+
ui: {
|
|
221
|
+
url: string;
|
|
222
|
+
};
|
|
223
|
+
gateway: {
|
|
224
|
+
otlpHttpEndpoint: string;
|
|
225
|
+
otlpGrpcEndpoint: string;
|
|
226
|
+
};
|
|
227
|
+
app: {
|
|
228
|
+
host: string;
|
|
229
|
+
appPort: number;
|
|
230
|
+
apiPort: number;
|
|
231
|
+
};
|
|
232
|
+
version?: string;
|
|
233
|
+
}>;
|
|
234
|
+
declare function buildExternalSecretValuesComposition(options: ClickStackSecretValuesExternalMongoBuildOptions): import("../../../index.js").CallableComposition<{
|
|
235
|
+
credentialsSecret: {
|
|
236
|
+
name: string;
|
|
237
|
+
valuesKey?: string;
|
|
238
|
+
};
|
|
239
|
+
mongoUri: string;
|
|
240
|
+
clickhouse: {
|
|
241
|
+
host: string;
|
|
242
|
+
nativePort?: number;
|
|
243
|
+
httpPort?: number;
|
|
244
|
+
database?: string;
|
|
245
|
+
username?: string;
|
|
246
|
+
appUsername?: string;
|
|
247
|
+
};
|
|
248
|
+
name: string;
|
|
249
|
+
namespace?: string;
|
|
250
|
+
version?: string;
|
|
144
251
|
hyperdx?: {
|
|
145
252
|
replicas?: number;
|
|
146
253
|
resources?: {
|
|
@@ -178,36 +285,42 @@ declare function buildExternalComposition(options: ClickStackExternalMongoBuildO
|
|
|
178
285
|
version?: string;
|
|
179
286
|
}>;
|
|
180
287
|
/** Composition type for the internal-Mongo variant. */
|
|
181
|
-
export type ClickStackBootstrapComposition = ReturnType<typeof
|
|
288
|
+
export type ClickStackBootstrapComposition = ReturnType<typeof buildInternalInlineComposition>;
|
|
289
|
+
/** Composition type for the Secret-backed internal-Mongo variant. */
|
|
290
|
+
export type ClickStackSecretValuesBootstrapComposition = ReturnType<typeof buildInternalSecretValuesComposition>;
|
|
182
291
|
/** Composition type for the external-Mongo variant. */
|
|
183
|
-
export type ClickStackExternalMongoBootstrapComposition = ReturnType<typeof
|
|
292
|
+
export type ClickStackExternalMongoBootstrapComposition = ReturnType<typeof buildExternalInlineComposition>;
|
|
293
|
+
/** Composition type for the Secret-backed external-Mongo variant. */
|
|
294
|
+
export type ClickStackSecretValuesExternalMongoBootstrapComposition = ReturnType<typeof buildExternalSecretValuesComposition>;
|
|
184
295
|
/**
|
|
185
296
|
* Construct a ClickStack bootstrap composition variant. Build-time options
|
|
186
297
|
* select WHICH resources exist (Mongo mode/storage) and bake static raw chart
|
|
187
298
|
* values; everything per-instance stays in the runtime spec.
|
|
188
299
|
*/
|
|
189
|
-
export declare function makeClickstackBootstrap(options?:
|
|
190
|
-
export declare function makeClickstackBootstrap(options:
|
|
300
|
+
export declare function makeClickstackBootstrap(options?: ClickStackInlineInternalMongoBuildOptions): ClickStackBootstrapComposition;
|
|
301
|
+
export declare function makeClickstackBootstrap(options: ClickStackSecretValuesInternalMongoBuildOptions): ClickStackSecretValuesBootstrapComposition;
|
|
302
|
+
export declare function makeClickstackBootstrap(options: ClickStackInlineExternalMongoBuildOptions): ClickStackExternalMongoBootstrapComposition;
|
|
303
|
+
export declare function makeClickstackBootstrap(options: ClickStackSecretValuesExternalMongoBuildOptions): ClickStackSecretValuesExternalMongoBootstrapComposition;
|
|
191
304
|
/**
|
|
192
305
|
* The default ClickStack bootstrap: internal single-replica Mongo (dev-first),
|
|
193
306
|
* default RGD name/kind. Use `makeClickstackBootstrap(...)` for the
|
|
194
307
|
* external-Mongo variant, custom Mongo storage, or static raw chart values.
|
|
195
308
|
*/
|
|
196
309
|
export declare const clickstackBootstrap: import("../../../index.js").CallableComposition<{
|
|
310
|
+
apiKey: string;
|
|
197
311
|
name: string;
|
|
198
312
|
clickhouse: {
|
|
199
313
|
host: string;
|
|
314
|
+
password?: string;
|
|
315
|
+
appPassword?: string;
|
|
200
316
|
nativePort?: number;
|
|
201
317
|
httpPort?: number;
|
|
202
318
|
database?: string;
|
|
203
319
|
username?: string;
|
|
204
|
-
password?: string;
|
|
205
320
|
appUsername?: string;
|
|
206
|
-
appPassword?: string;
|
|
207
321
|
};
|
|
208
322
|
namespace?: string;
|
|
209
323
|
version?: string;
|
|
210
|
-
apiKey?: string;
|
|
211
324
|
hyperdx?: {
|
|
212
325
|
replicas?: number;
|
|
213
326
|
resources?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickstack-bootstrap.d.ts","sourceRoot":"","sources":["../../../../src/factories/clickstack/compositions/clickstack-bootstrap.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"clickstack-bootstrap.d.ts","sourceRoot":"","sources":["../../../../src/factories/clickstack/compositions/clickstack-bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AAwBH,OAAO,EASL,KAAK,yCAAyC,EAC9C,KAAK,yCAAyC,EAK9C,KAAK,+CAA+C,EAGpD,K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;;;;;;;;;;;;;;EAA4B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ClickStack (HyperDX) Bootstrap Composition — EXTERNAL ClickHouse only.
|
|
3
3
|
*
|
|
4
|
-
* Deploys the OFFICIAL `clickstack` chart (3.
|
|
4
|
+
* Deploys the OFFICIAL `clickstack` chart (3.2.x, MIT) from
|
|
5
5
|
* https://clickhouse.github.io/ClickStack-helm-charts via HelmRepository and
|
|
6
6
|
* HelmRelease resources. Build-around: we wrap the official chart — never
|
|
7
7
|
* hand-rolled manifests. NOT the archived hyperdxio/helm-charts repo, NOT the
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
* username: 'otelcollector',
|
|
60
60
|
* password: '…',
|
|
61
61
|
* },
|
|
62
|
+
* apiKey: '…',
|
|
62
63
|
* });
|
|
63
64
|
* ```
|
|
64
65
|
*
|
|
@@ -69,21 +70,78 @@
|
|
|
69
70
|
* await bootstrap.factory('kro').deploy({
|
|
70
71
|
* name: 'clickstack',
|
|
71
72
|
* clickhouse: { host: '…' },
|
|
73
|
+
* apiKey: '…',
|
|
72
74
|
* mongoUri: 'mongodb://user:pass@mongo.example.com:27017/hyperdx',
|
|
73
75
|
* });
|
|
74
76
|
* ```
|
|
75
77
|
*/
|
|
76
78
|
import { kubernetesComposition } from '../../../core/composition/imperative.js';
|
|
77
79
|
import { DEFAULT_FLUX_NAMESPACE } from '../../../core/config/defaults.js';
|
|
80
|
+
import { registerPortableReadinessEvaluator } from '../../../core/readiness/portable-strategies.js';
|
|
78
81
|
import { Cel } from '../../../core/references/cel.js';
|
|
79
82
|
import { singleton } from '../../../core/singleton/singleton.js';
|
|
80
83
|
import { containsKubernetesRefs, isKubernetesRef } from '../../../utils/type-guards.js';
|
|
84
|
+
import { helmReleaseConditionSummary } from '../../helm/status.js';
|
|
81
85
|
import { namespace } from '../../kubernetes/core/namespace.js';
|
|
86
|
+
import { cronJob } from '../../kubernetes/workloads/cron-job.js';
|
|
82
87
|
import { CLICKSTACK_API_PORT, CLICKSTACK_APP_PORT, CLICKSTACK_GATEWAY_NAME_SUFFIX, CLICKSTACK_OTLP_GRPC_PORT, CLICKSTACK_OTLP_HTTP_PORT, clickstackHelmRelease, DEFAULT_CLICKSTACK_REPO_NAME, DEFAULT_CLICKSTACK_REPO_URL, DEFAULT_CLICKSTACK_VERSION, } from '../resources/helm.js';
|
|
83
88
|
import { clickstackMongoService, clickstackMongoStatefulSet } from '../resources/mongo.js';
|
|
84
|
-
import { ClickStackBootstrapConfigSchema, ClickStackBootstrapStatusSchema, ClickStackExternalMongoBootstrapConfigSchema, } from '../types.js';
|
|
89
|
+
import { ClickStackBootstrapConfigSchema, ClickStackBootstrapStatusSchema, ClickStackExternalMongoBootstrapConfigSchema, ClickStackSecretValuesBootstrapConfigSchema, ClickStackSecretValuesExternalMongoBootstrapConfigSchema, } from '../types.js';
|
|
85
90
|
import { DEFAULT_CLICKSTACK_NAMESPACE, mapClickStackConfigToHelmValues, } from '../utils/helm-values-mapper.js';
|
|
86
91
|
import { clickstackHelmRepositoryBootstrap } from './clickstack-helm-repository.js';
|
|
92
|
+
const CLICKSTACK_CHART_PLACEHOLDER_API_KEY = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
|
|
93
|
+
const clickstackTeamBootstrapReadiness = registerPortableReadinessEvaluator('typekro.readiness.clickstack.team-bootstrap', '1', (liveResource) => {
|
|
94
|
+
const status = liveResource.status;
|
|
95
|
+
const scheduledAt = status?.lastScheduleTime
|
|
96
|
+
? new Date(status.lastScheduleTime).getTime()
|
|
97
|
+
: Number.NaN;
|
|
98
|
+
const succeededAt = status?.lastSuccessfulTime
|
|
99
|
+
? new Date(status.lastSuccessfulTime).getTime()
|
|
100
|
+
: Number.NaN;
|
|
101
|
+
if (Number.isFinite(scheduledAt) && Number.isFinite(succeededAt) && succeededAt >= scheduledAt) {
|
|
102
|
+
return {
|
|
103
|
+
ready: true,
|
|
104
|
+
reason: 'BootstrapCurrent',
|
|
105
|
+
message: 'The latest ClickStack Team credential convergence succeeded',
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
ready: false,
|
|
110
|
+
reason: status?.active?.length ? 'BootstrapActive' : 'BootstrapPending',
|
|
111
|
+
message: status?.lastScheduleTime
|
|
112
|
+
? 'The latest ClickStack Team credential convergence has not succeeded'
|
|
113
|
+
: 'The ClickStack Team credential convergence has not run yet',
|
|
114
|
+
};
|
|
115
|
+
});
|
|
116
|
+
const inlineSchemaFieldValidations = {
|
|
117
|
+
apiKey: `self != "${CLICKSTACK_CHART_PLACEHOLDER_API_KEY}"`,
|
|
118
|
+
};
|
|
119
|
+
const CLICKSTACK_TEAM_BOOTSTRAP_SCRIPT = [
|
|
120
|
+
"const database = db.getSiblingDB('hyperdx');",
|
|
121
|
+
'const apiKey = process.env.HYPERDX_API_KEY;',
|
|
122
|
+
"if (typeof apiKey !== 'string' || apiKey.trim().length === 0) throw new Error('HYPERDX_API_KEY is required.');",
|
|
123
|
+
`if (apiKey === '${CLICKSTACK_CHART_PLACEHOLDER_API_KEY}') throw new Error('HYPERDX_API_KEY must override the published ClickStack chart placeholder.');`,
|
|
124
|
+
"const hookId = 'typekro-managed-ingestion';",
|
|
125
|
+
'const teams = database.teams.find({ hookId }).toArray();',
|
|
126
|
+
"if (teams.length > 1) throw new Error('Multiple TypeKro-managed ClickStack Teams exist.');",
|
|
127
|
+
'if (teams.length === 0) {',
|
|
128
|
+
' const now = new Date();',
|
|
129
|
+
' database.teams.insertOne({',
|
|
130
|
+
" name: 'Applik8s Observability',",
|
|
131
|
+
' allowedAuthMethods: [],',
|
|
132
|
+
' hookId,',
|
|
133
|
+
' apiKey,',
|
|
134
|
+
' collectorAuthenticationEnforced: true,',
|
|
135
|
+
' isMetricsSeriesTableEnabled: false,',
|
|
136
|
+
' createdAt: now,',
|
|
137
|
+
' updatedAt: now,',
|
|
138
|
+
' });',
|
|
139
|
+
'} else if (teams[0].apiKey !== apiKey || teams[0].collectorAuthenticationEnforced !== true) {',
|
|
140
|
+
' database.teams.updateOne({ _id: teams[0]._id }, {',
|
|
141
|
+
' $set: { apiKey, collectorAuthenticationEnforced: true, updatedAt: new Date() },',
|
|
142
|
+
' });',
|
|
143
|
+
'}',
|
|
144
|
+
].join('\n');
|
|
87
145
|
/**
|
|
88
146
|
* Shared composition body. `build` is CONCRETE (construction-time), so every
|
|
89
147
|
* plain-JS branch below is on build config — never on the (possibly
|
|
@@ -98,19 +156,43 @@ import { clickstackHelmRepositoryBootstrap } from './clickstack-helm-repository.
|
|
|
98
156
|
*/
|
|
99
157
|
function bootstrapBody(spec, build) {
|
|
100
158
|
{
|
|
159
|
+
const credentialsSecret = spec.credentialsSecret;
|
|
101
160
|
const resolvedNamespace = isKubernetesRef(spec.namespace)
|
|
102
161
|
? Cel.default(spec.namespace, DEFAULT_CLICKSTACK_NAMESPACE)
|
|
103
162
|
: (spec.namespace ?? DEFAULT_CLICKSTACK_NAMESPACE);
|
|
104
163
|
const resolvedVersion = isKubernetesRef(spec.version)
|
|
105
164
|
? Cel.default(spec.version, DEFAULT_CLICKSTACK_VERSION)
|
|
106
165
|
: (spec.version ?? DEFAULT_CLICKSTACK_VERSION);
|
|
166
|
+
if (build.credentialSource === 'inline') {
|
|
167
|
+
const inlineApiKey = spec.apiKey;
|
|
168
|
+
if (!isKubernetesRef(inlineApiKey) &&
|
|
169
|
+
(inlineApiKey.trim().length === 0 || inlineApiKey === CLICKSTACK_CHART_PLACEHOLDER_API_KEY)) {
|
|
170
|
+
throw new Error('ClickStack inline credential mode requires a non-empty apiKey that is not the published chart placeholder.');
|
|
171
|
+
}
|
|
172
|
+
}
|
|
107
173
|
const helmValues = mapClickStackConfigToHelmValues(spec, {
|
|
108
174
|
mongoMode: build.mongoMode,
|
|
175
|
+
credentialSource: build.credentialSource,
|
|
109
176
|
...(build.values !== undefined && { values: build.values }),
|
|
110
177
|
});
|
|
178
|
+
if (build.credentialSource === 'secretValues' &&
|
|
179
|
+
!isKubernetesRef(credentialsSecret) &&
|
|
180
|
+
credentialsSecret === undefined) {
|
|
181
|
+
throw new Error('ClickStack secretValues credential mode requires credentialsSecret.');
|
|
182
|
+
}
|
|
183
|
+
if (build.credentialSource === 'secretValues' &&
|
|
184
|
+
!isKubernetesRef(spec.clickhouse) &&
|
|
185
|
+
(spec.clickhouse.password !== undefined ||
|
|
186
|
+
spec.clickhouse.appPassword !== undefined ||
|
|
187
|
+
spec.apiKey !== undefined ||
|
|
188
|
+
spec.customValues !== undefined)) {
|
|
189
|
+
throw new Error('ClickStack secretValues credential mode rejects inline clickhouse.password, clickhouse.appPassword, apiKey, and runtime customValues.');
|
|
190
|
+
}
|
|
111
191
|
const _clickstackNamespace = namespace({
|
|
112
192
|
metadata: {
|
|
113
|
-
|
|
193
|
+
// This resource is active only when namespace is omitted, so its
|
|
194
|
+
// identity is always TypeKro's documented standalone default.
|
|
195
|
+
name: DEFAULT_CLICKSTACK_NAMESPACE,
|
|
114
196
|
labels: {
|
|
115
197
|
'app.kubernetes.io/name': 'clickstack',
|
|
116
198
|
'app.kubernetes.io/instance': spec.name,
|
|
@@ -118,7 +200,7 @@ function bootstrapBody(spec, build) {
|
|
|
118
200
|
},
|
|
119
201
|
},
|
|
120
202
|
id: 'clickstackNamespace',
|
|
121
|
-
});
|
|
203
|
+
}).withIncludeWhen(isKubernetesRef(spec.namespace) ? Cel.not(spec.namespace) : spec.namespace === undefined);
|
|
122
204
|
// One cluster-level Flux source shared by every ClickStack instance —
|
|
123
205
|
// singleton(...) keeps it out of any single instance's KRO ApplySet
|
|
124
206
|
// (see clickstack-helm-repository.ts for the ownership rationale).
|
|
@@ -160,9 +242,100 @@ function bootstrapBody(spec, build) {
|
|
|
160
242
|
namespace: resolvedNamespace,
|
|
161
243
|
version: resolvedVersion,
|
|
162
244
|
values: helmValues,
|
|
245
|
+
...(build.credentialSource === 'secretValues'
|
|
246
|
+
? {
|
|
247
|
+
valuesFrom: [
|
|
248
|
+
{
|
|
249
|
+
kind: 'Secret',
|
|
250
|
+
// biome-ignore lint/style/noNonNullAssertion: the secretValues schema requires credentialsSecret
|
|
251
|
+
name: credentialsSecret.name,
|
|
252
|
+
valuesKey: isKubernetesRef(credentialsSecret?.valuesKey)
|
|
253
|
+
? Cel.default(credentialsSecret.valuesKey, 'values.yaml')
|
|
254
|
+
: (credentialsSecret?.valuesKey ?? 'values.yaml'),
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
}
|
|
258
|
+
: {}),
|
|
163
259
|
id: 'clickstackHelmRelease',
|
|
164
260
|
});
|
|
165
|
-
|
|
261
|
+
// HyperDX's production OpAMP controller activates OTLP only after its
|
|
262
|
+
// authoritative Team collection contains an ingestion key. The chart's
|
|
263
|
+
// HYPERDX_API_KEY environment value configures application telemetry but
|
|
264
|
+
// does not create that Team. Bootstrap one framework-owned Team from the
|
|
265
|
+
// chart-owned Secret, after the release (and therefore Mongo) is ready.
|
|
266
|
+
// This keeps the credential out of the Job manifest, coexists with
|
|
267
|
+
// application-created Teams, and converges the framework-owned key when a
|
|
268
|
+
// referenced Secret or Mongo URI rotates. A one-shot Job cannot observe
|
|
269
|
+
// either update after it completes, so this deliberately uses an
|
|
270
|
+
// idempotent minute-level CronJob. Readiness requires a successful run;
|
|
271
|
+
// the script rejects the chart's public placeholder key, making an absent
|
|
272
|
+
// Secret values override fail closed.
|
|
273
|
+
const mongoUri = build.mongoMode === 'external'
|
|
274
|
+
? spec.mongoUri
|
|
275
|
+
: Cel.template('mongodb://%s-mongodb.%s.svc.cluster.local:27017/hyperdx', spec.name, resolvedNamespace);
|
|
276
|
+
const _teamBootstrap = cronJob({
|
|
277
|
+
id: 'clickstackTeamBootstrap',
|
|
278
|
+
metadata: {
|
|
279
|
+
name: `${spec.name}-team-bootstrap`,
|
|
280
|
+
namespace: resolvedNamespace,
|
|
281
|
+
labels: {
|
|
282
|
+
'app.kubernetes.io/name': 'clickstack-team-bootstrap',
|
|
283
|
+
'app.kubernetes.io/instance': spec.name,
|
|
284
|
+
'app.kubernetes.io/managed-by': 'typekro',
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
spec: {
|
|
288
|
+
schedule: '* * * * *',
|
|
289
|
+
concurrencyPolicy: 'Forbid',
|
|
290
|
+
startingDeadlineSeconds: 60,
|
|
291
|
+
successfulJobsHistoryLimit: 1,
|
|
292
|
+
failedJobsHistoryLimit: 3,
|
|
293
|
+
jobTemplate: {
|
|
294
|
+
spec: {
|
|
295
|
+
backoffLimit: 6,
|
|
296
|
+
template: {
|
|
297
|
+
metadata: {
|
|
298
|
+
labels: {
|
|
299
|
+
'app.kubernetes.io/name': 'clickstack-team-bootstrap',
|
|
300
|
+
'app.kubernetes.io/instance': spec.name,
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
spec: {
|
|
304
|
+
restartPolicy: 'Never',
|
|
305
|
+
containers: [
|
|
306
|
+
{
|
|
307
|
+
name: 'team-bootstrap',
|
|
308
|
+
image: 'mongo:7',
|
|
309
|
+
command: [
|
|
310
|
+
'mongosh',
|
|
311
|
+
'--quiet',
|
|
312
|
+
mongoUri,
|
|
313
|
+
'--eval',
|
|
314
|
+
CLICKSTACK_TEAM_BOOTSTRAP_SCRIPT,
|
|
315
|
+
],
|
|
316
|
+
env: [
|
|
317
|
+
{
|
|
318
|
+
name: 'HYPERDX_API_KEY',
|
|
319
|
+
valueFrom: {
|
|
320
|
+
secretKeyRef: {
|
|
321
|
+
name: 'clickstack-secret',
|
|
322
|
+
key: 'HYPERDX_API_KEY',
|
|
323
|
+
optional: false,
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
}).withReadinessEvaluator(clickstackTeamBootstrapReadiness);
|
|
336
|
+
_teamBootstrap.dependsOn(_clickstackHelmRelease);
|
|
337
|
+
const helmReleaseStatus = helmReleaseConditionSummary(_clickstackHelmRelease);
|
|
338
|
+
const teamBootstrapReady = Cel.expr('has(clickstackTeamBootstrap.status.lastScheduleTime) && ', 'has(clickstackTeamBootstrap.status.lastSuccessfulTime) && ', 'string(clickstackTeamBootstrap.status.lastSuccessfulTime) >= ', 'string(clickstackTeamBootstrap.status.lastScheduleTime)');
|
|
166
339
|
// Status endpoints derive from the owned HelmRelease resource so they
|
|
167
340
|
// serialize as KRO status CEL and land on the live KRO CR's status
|
|
168
341
|
// (same reachability class as the PR #93 review finding). Naming is
|
|
@@ -188,10 +361,8 @@ function bootstrapBody(spec, build) {
|
|
|
188
361
|
// final-pipeline test). Unchanged by this migration: raw Cel.expr before
|
|
189
362
|
// and after; only the metadata endpoint fields switched to template literals.
|
|
190
363
|
return {
|
|
191
|
-
ready:
|
|
192
|
-
phase: Cel.expr(
|
|
193
|
-
'? "Failed" : clickstackHelmRelease.status.conditions.exists(c, c.type == "Ready" && ' +
|
|
194
|
-
'c.status == "True") ? "Ready" : "Installing"'),
|
|
364
|
+
ready: Cel.expr(helmReleaseStatus.ready, ' && ', teamBootstrapReady),
|
|
365
|
+
phase: Cel.expr(helmReleaseStatus.failed, ' ? "Failed" : (', helmReleaseStatus.ready, ' && ', teamBootstrapReady, ' ? "Ready" : "Installing")'),
|
|
195
366
|
version: resolvedVersion,
|
|
196
367
|
ui: {
|
|
197
368
|
url: `http://${_clickstackHelmRelease.metadata.name}.${_clickstackHelmRelease.metadata.namespace}.svc.cluster.local:${CLICKSTACK_APP_PORT}`,
|
|
@@ -210,31 +381,72 @@ function bootstrapBody(spec, build) {
|
|
|
210
381
|
};
|
|
211
382
|
}
|
|
212
383
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
384
|
+
function resolveInternalBuild(options) {
|
|
385
|
+
return {
|
|
215
386
|
mongoMode: 'internal',
|
|
387
|
+
credentialSource: options.credentials?.source ?? 'inline',
|
|
216
388
|
...(options.mongo?.storage !== undefined && { storage: options.mongo.storage }),
|
|
217
389
|
...(options.values !== undefined && { values: options.values }),
|
|
218
390
|
};
|
|
391
|
+
}
|
|
392
|
+
function resolveExternalBuild(options) {
|
|
393
|
+
return {
|
|
394
|
+
mongoMode: 'external',
|
|
395
|
+
credentialSource: options.credentials?.source ?? 'inline',
|
|
396
|
+
...(options.values !== undefined && { values: options.values }),
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function buildInternalInlineComposition(options) {
|
|
400
|
+
const build = resolveInternalBuild(options);
|
|
219
401
|
return kubernetesComposition({
|
|
220
402
|
name: options.name ?? 'clickstack-bootstrap',
|
|
221
403
|
kind: options.kind ?? 'ClickStackBootstrap',
|
|
222
404
|
spec: ClickStackBootstrapConfigSchema,
|
|
223
405
|
status: ClickStackBootstrapStatusSchema,
|
|
224
|
-
}, (spec) => bootstrapBody(spec, build));
|
|
406
|
+
}, (spec) => bootstrapBody(spec, build), { schemaFieldValidations: inlineSchemaFieldValidations });
|
|
225
407
|
}
|
|
226
|
-
function
|
|
408
|
+
function buildInternalSecretValuesComposition(options) {
|
|
227
409
|
const build = {
|
|
228
|
-
|
|
229
|
-
|
|
410
|
+
...resolveInternalBuild(options),
|
|
411
|
+
credentialSource: 'secretValues',
|
|
230
412
|
};
|
|
413
|
+
return kubernetesComposition({
|
|
414
|
+
name: options.name ?? 'clickstack-bootstrap',
|
|
415
|
+
kind: options.kind ?? 'ClickStackBootstrap',
|
|
416
|
+
spec: ClickStackSecretValuesBootstrapConfigSchema,
|
|
417
|
+
status: ClickStackBootstrapStatusSchema,
|
|
418
|
+
}, (spec) => bootstrapBody(spec, build));
|
|
419
|
+
}
|
|
420
|
+
function buildExternalInlineComposition(options) {
|
|
421
|
+
const build = resolveExternalBuild(options);
|
|
231
422
|
return kubernetesComposition({
|
|
232
423
|
name: options.name ?? 'clickstack-bootstrap-external-mongo',
|
|
233
424
|
kind: options.kind ?? 'ClickStackExternalMongoBootstrap',
|
|
234
425
|
spec: ClickStackExternalMongoBootstrapConfigSchema,
|
|
235
426
|
status: ClickStackBootstrapStatusSchema,
|
|
427
|
+
}, (spec) => bootstrapBody(spec, build), { schemaFieldValidations: inlineSchemaFieldValidations });
|
|
428
|
+
}
|
|
429
|
+
function buildExternalSecretValuesComposition(options) {
|
|
430
|
+
const build = {
|
|
431
|
+
...resolveExternalBuild(options),
|
|
432
|
+
credentialSource: 'secretValues',
|
|
433
|
+
};
|
|
434
|
+
return kubernetesComposition({
|
|
435
|
+
name: options.name ?? 'clickstack-bootstrap-external-mongo',
|
|
436
|
+
kind: options.kind ?? 'ClickStackExternalMongoBootstrap',
|
|
437
|
+
spec: ClickStackSecretValuesExternalMongoBootstrapConfigSchema,
|
|
438
|
+
status: ClickStackBootstrapStatusSchema,
|
|
236
439
|
}, (spec) => bootstrapBody(spec, build));
|
|
237
440
|
}
|
|
441
|
+
function isSecretValuesExternalBuild(options) {
|
|
442
|
+
return options.mongo?.mode === 'external' && options.credentials?.source === 'secretValues';
|
|
443
|
+
}
|
|
444
|
+
function isInlineExternalBuild(options) {
|
|
445
|
+
return options.mongo?.mode === 'external' && options.credentials?.source !== 'secretValues';
|
|
446
|
+
}
|
|
447
|
+
function isSecretValuesInternalBuild(options) {
|
|
448
|
+
return options.mongo?.mode !== 'external' && options.credentials?.source === 'secretValues';
|
|
449
|
+
}
|
|
238
450
|
export function makeClickstackBootstrap(options = {}) {
|
|
239
451
|
// Build-time options must be CONCRETE: they select which resources exist and bake static chart
|
|
240
452
|
// values at construction — a schema ref here can never serialize (loud > silent mis-serialization).
|
|
@@ -243,10 +455,32 @@ export function makeClickstackBootstrap(options = {}) {
|
|
|
243
455
|
'Build-time options (mongo mode/storage, static chart values, name/kind) are fixed at ' +
|
|
244
456
|
'construction — move per-instance values into the runtime spec instead.');
|
|
245
457
|
}
|
|
246
|
-
if (options.
|
|
247
|
-
|
|
458
|
+
if (options.credentials?.source === 'secretValues') {
|
|
459
|
+
const hyperdx = options.values?.hyperdx;
|
|
460
|
+
const deployment = hyperdx && typeof hyperdx === 'object' && !Array.isArray(hyperdx)
|
|
461
|
+
? hyperdx.deployment
|
|
462
|
+
: undefined;
|
|
463
|
+
if (hyperdx &&
|
|
464
|
+
typeof hyperdx === 'object' &&
|
|
465
|
+
!Array.isArray(hyperdx) &&
|
|
466
|
+
(hyperdx.secrets !== undefined ||
|
|
467
|
+
(deployment &&
|
|
468
|
+
typeof deployment === 'object' &&
|
|
469
|
+
!Array.isArray(deployment) &&
|
|
470
|
+
deployment.defaultConnections !== undefined))) {
|
|
471
|
+
throw new Error('makeClickstackBootstrap: secretValues credential mode rejects build-time hyperdx.secrets and hyperdx.deployment.defaultConnections. Put those values in the referenced Secret.');
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
if (isSecretValuesExternalBuild(options)) {
|
|
475
|
+
return buildExternalSecretValuesComposition(options);
|
|
476
|
+
}
|
|
477
|
+
if (isInlineExternalBuild(options)) {
|
|
478
|
+
return buildExternalInlineComposition(options);
|
|
479
|
+
}
|
|
480
|
+
if (isSecretValuesInternalBuild(options)) {
|
|
481
|
+
return buildInternalSecretValuesComposition(options);
|
|
248
482
|
}
|
|
249
|
-
return
|
|
483
|
+
return buildInternalInlineComposition(options);
|
|
250
484
|
}
|
|
251
485
|
/**
|
|
252
486
|
* The default ClickStack bootstrap: internal single-replica Mongo (dev-first),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickstack-bootstrap.js","sourceRoot":"","sources":["../../../../src/factories/clickstack/compositions/clickstack-bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OA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E,OAAO,CAAC,IAAI,IAAI,qCAAqC;QAC3D,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,kCAAkC;QACxD,IAAI,EAAE,4CAA4C;QAClD,MAAM,EAAE,+BAA+B;KACxC,EACD,CAAC,IAA4C,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAC7E,CAAC;AACJ,CAAC;AAqBD,MAAM,UAAU,uBAAuB,CACrC,UAAkC,EAAE;IAEpC,+FAA+F;IAC/F,oGAAoG;IACpG,IAAI,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CACb,mFAAmF;YACjF,uFAAuF;YACvF,wEAAwE,CAC3E,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,CAAC,KAAK,EAAE,IAAI,KAAK,UAAU,EAAE,CAAC;QACvC,OAAO,wBAAwB,CAAC,OAA8C,CAAC,CAAC;IAClF,CAAC;IACD,OAAO,wBAAwB,CAAC,OAA8C,CAAC,CAAC;AAClF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"clickstack-bootstrap.js","sourceRoot":"","sources":["../../../../src/factories/clickstack/compositions/clickstack-bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAA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