@datarobot/pulumi-datarobot 0.10.43 → 0.10.46
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/artifact.d.ts +12 -0
- package/artifact.js +2 -0
- package/artifact.js.map +1 -1
- package/memorySpace.d.ts +1 -1
- package/memorySpace.js +1 -1
- package/package.json +1 -1
- package/types/input.d.ts +97 -19
- package/types/output.d.ts +125 -23
- package/workload.d.ts +6 -15
- package/workload.js +0 -9
- package/workload.js.map +1 -1
package/artifact.d.ts
CHANGED
|
@@ -36,6 +36,10 @@ export declare class Artifact extends pulumi.CustomResource {
|
|
|
36
36
|
* The name of the Artifact.
|
|
37
37
|
*/
|
|
38
38
|
readonly name: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Local source directory to upload to the DataRobot catalog and attach to the primary container's `image_build_config.code_ref`. On draft artifacts, uploads are applied in-place. On locked artifacts, source changes clone to a new draft version, upload, patch `codeRef`, and lock the new version.
|
|
41
|
+
*/
|
|
42
|
+
readonly source: pulumi.Output<outputs.ArtifactSource | undefined>;
|
|
39
43
|
/**
|
|
40
44
|
* The artifact specification containing container group definitions.
|
|
41
45
|
*/
|
|
@@ -77,6 +81,10 @@ export interface ArtifactState {
|
|
|
77
81
|
* The name of the Artifact.
|
|
78
82
|
*/
|
|
79
83
|
name?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Local source directory to upload to the DataRobot catalog and attach to the primary container's `image_build_config.code_ref`. On draft artifacts, uploads are applied in-place. On locked artifacts, source changes clone to a new draft version, upload, patch `codeRef`, and lock the new version.
|
|
86
|
+
*/
|
|
87
|
+
source?: pulumi.Input<inputs.ArtifactSource>;
|
|
80
88
|
/**
|
|
81
89
|
* The artifact specification containing container group definitions.
|
|
82
90
|
*/
|
|
@@ -106,6 +114,10 @@ export interface ArtifactArgs {
|
|
|
106
114
|
* The name of the Artifact.
|
|
107
115
|
*/
|
|
108
116
|
name?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Local source directory to upload to the DataRobot catalog and attach to the primary container's `image_build_config.code_ref`. On draft artifacts, uploads are applied in-place. On locked artifacts, source changes clone to a new draft version, upload, patch `codeRef`, and lock the new version.
|
|
119
|
+
*/
|
|
120
|
+
source?: pulumi.Input<inputs.ArtifactSource>;
|
|
109
121
|
/**
|
|
110
122
|
* The artifact specification containing container group definitions.
|
|
111
123
|
*/
|
package/artifact.js
CHANGED
|
@@ -40,6 +40,7 @@ class Artifact extends pulumi.CustomResource {
|
|
|
40
40
|
resourceInputs["artifactRepositoryId"] = state ? state.artifactRepositoryId : undefined;
|
|
41
41
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
42
42
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
43
|
+
resourceInputs["source"] = state ? state.source : undefined;
|
|
43
44
|
resourceInputs["spec"] = state ? state.spec : undefined;
|
|
44
45
|
resourceInputs["status"] = state ? state.status : undefined;
|
|
45
46
|
resourceInputs["type"] = state ? state.type : undefined;
|
|
@@ -52,6 +53,7 @@ class Artifact extends pulumi.CustomResource {
|
|
|
52
53
|
resourceInputs["artifactRepositoryId"] = args ? args.artifactRepositoryId : undefined;
|
|
53
54
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
54
55
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
56
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
55
57
|
resourceInputs["spec"] = args ? args.spec : undefined;
|
|
56
58
|
resourceInputs["status"] = args ? args.status : undefined;
|
|
57
59
|
resourceInputs["type"] = args ? args.type : undefined;
|
package/artifact.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact.js","sourceRoot":"","sources":["../artifact.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAlGL,4BAmGC;AArFG,gBAAgB;AACO,qBAAY,GAAG,mCAAmC,CAAC"}
|
package/memorySpace.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Memory Space is a DataRobot concept that serves as a logical container for Chat Histories (Sessions) and persistent Memories.
|
|
3
|
+
* Memory Space is a DataRobot concept that serves as a logical container for Chat Histories (Sessions) and persistent Memories. Managing a Memory Space requires either the `ENABLE_AGENTIC_MEMORY_API` or the `ENABLE_GENAI_EXPERIMENTATION` feature flag. Reading and writing persistent Memories in a Memory Space still requires `ENABLE_AGENTIC_MEMORY_API`.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
package/memorySpace.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.MemorySpace = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Memory Space is a DataRobot concept that serves as a logical container for Chat Histories (Sessions) and persistent Memories.
|
|
9
|
+
* Memory Space is a DataRobot concept that serves as a logical container for Chat Histories (Sessions) and persistent Memories. Managing a Memory Space requires either the `ENABLE_AGENTIC_MEMORY_API` or the `ENABLE_GENAI_EXPERIMENTATION` feature flag. Reading and writing persistent Memories in a Memory Space still requires `ENABLE_AGENTIC_MEMORY_API`.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
package/package.json
CHANGED
package/types/input.d.ts
CHANGED
|
@@ -72,6 +72,16 @@ export interface ApplicationSourceRuntimeParameterValue {
|
|
|
72
72
|
*/
|
|
73
73
|
value: pulumi.Input<string>;
|
|
74
74
|
}
|
|
75
|
+
export interface ArtifactSource {
|
|
76
|
+
/**
|
|
77
|
+
* Path to the local directory containing application source files to upload.
|
|
78
|
+
*/
|
|
79
|
+
dir: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* SHA-256 fingerprint of `dir` contents, used to detect changes and skip re-upload when unchanged.
|
|
82
|
+
*/
|
|
83
|
+
dirHash?: pulumi.Input<string>;
|
|
84
|
+
}
|
|
75
85
|
export interface ArtifactSpec {
|
|
76
86
|
/**
|
|
77
87
|
* List of container groups.
|
|
@@ -98,9 +108,13 @@ export interface ArtifactSpecContainerGroupContainer {
|
|
|
98
108
|
*/
|
|
99
109
|
environmentVars?: pulumi.Input<pulumi.Input<inputs.ArtifactSpecContainerGroupContainerEnvironmentVar>[]>;
|
|
100
110
|
/**
|
|
101
|
-
*
|
|
111
|
+
* Configuration for server-side image builds from source code.
|
|
112
|
+
*/
|
|
113
|
+
imageBuildConfig?: pulumi.Input<inputs.ArtifactSpecContainerGroupContainerImageBuildConfig>;
|
|
114
|
+
/**
|
|
115
|
+
* Docker image URI. Omit when using `imageBuildConfig` on draft artifacts; required when status is `locked` and `imageBuildConfig` is set.
|
|
102
116
|
*/
|
|
103
|
-
imageUri
|
|
117
|
+
imageUri?: pulumi.Input<string>;
|
|
104
118
|
/**
|
|
105
119
|
* Container liveness check configuration.
|
|
106
120
|
*/
|
|
@@ -136,11 +150,11 @@ export interface ArtifactSpecContainerGroupContainerEnvironmentVar {
|
|
|
136
150
|
*/
|
|
137
151
|
key?: pulumi.Input<string>;
|
|
138
152
|
/**
|
|
139
|
-
* Name of the environment variable.
|
|
153
|
+
* Name of the environment variable. Required when source is "string" or "dr-credential". Optional for "api-key": when omitted, the platform injects the token as DATAROBOT*API*TOKEN.
|
|
140
154
|
*/
|
|
141
|
-
name
|
|
155
|
+
name?: pulumi.Input<string>;
|
|
142
156
|
/**
|
|
143
|
-
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials. Defaults to "string".
|
|
157
|
+
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials, "api-key" for a platform-managed DataRobot API token. Defaults to "string".
|
|
144
158
|
*/
|
|
145
159
|
source?: pulumi.Input<string>;
|
|
146
160
|
/**
|
|
@@ -148,6 +162,48 @@ export interface ArtifactSpecContainerGroupContainerEnvironmentVar {
|
|
|
148
162
|
*/
|
|
149
163
|
value?: pulumi.Input<string>;
|
|
150
164
|
}
|
|
165
|
+
export interface ArtifactSpecContainerGroupContainerImageBuildConfig {
|
|
166
|
+
/**
|
|
167
|
+
* Reference to source code in the DataRobot catalog. Optional at create; required before image build or lock. When `source` is set, the provider uploads `source.dir` and populates this block.
|
|
168
|
+
*/
|
|
169
|
+
codeRef?: pulumi.Input<inputs.ArtifactSpecContainerGroupContainerImageBuildConfigCodeRef>;
|
|
170
|
+
/**
|
|
171
|
+
* How the Dockerfile is obtained for the image build. Defaults to using `./Dockerfile` from the source code.
|
|
172
|
+
*/
|
|
173
|
+
dockerfile?: pulumi.Input<inputs.ArtifactSpecContainerGroupContainerImageBuildConfigDockerfile>;
|
|
174
|
+
}
|
|
175
|
+
export interface ArtifactSpecContainerGroupContainerImageBuildConfigCodeRef {
|
|
176
|
+
/**
|
|
177
|
+
* Files API catalog ID (24-character hex).
|
|
178
|
+
*/
|
|
179
|
+
catalogId: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* Files API catalog version ID (24-character hex).
|
|
182
|
+
*/
|
|
183
|
+
catalogVersionId: pulumi.Input<string>;
|
|
184
|
+
}
|
|
185
|
+
export interface ArtifactSpecContainerGroupContainerImageBuildConfigDockerfile {
|
|
186
|
+
/**
|
|
187
|
+
* Entrypoint baked into the generated Dockerfile CMD. Required when source is `generated`.
|
|
188
|
+
*/
|
|
189
|
+
entrypoints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
190
|
+
/**
|
|
191
|
+
* Execution environment ID for the base Docker image. Required when source is `generated`.
|
|
192
|
+
*/
|
|
193
|
+
executionEnvironmentId?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Execution environment version ID that pins the base image. Required when source is `generated`.
|
|
196
|
+
*/
|
|
197
|
+
executionEnvironmentVersionId?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* Relative path to the Dockerfile in the source code. Used when source is `provided`. Defaults to `./Dockerfile`.
|
|
200
|
+
*/
|
|
201
|
+
path?: pulumi.Input<string>;
|
|
202
|
+
/**
|
|
203
|
+
* How the Dockerfile is obtained: `provided` (from source code) or `generated` (from an execution environment). Defaults to `provided`.
|
|
204
|
+
*/
|
|
205
|
+
source?: pulumi.Input<string>;
|
|
206
|
+
}
|
|
151
207
|
export interface ArtifactSpecContainerGroupContainerLivenessProbe {
|
|
152
208
|
/**
|
|
153
209
|
* Minimum consecutive failures for the probe to be considered failed.
|
|
@@ -177,6 +233,10 @@ export interface ArtifactSpecContainerGroupContainerLivenessProbe {
|
|
|
177
233
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
178
234
|
*/
|
|
179
235
|
scheme?: pulumi.Input<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
238
|
+
*/
|
|
239
|
+
successThreshold?: pulumi.Input<number>;
|
|
180
240
|
/**
|
|
181
241
|
* Number of seconds after which the probe times out.
|
|
182
242
|
*/
|
|
@@ -211,6 +271,10 @@ export interface ArtifactSpecContainerGroupContainerReadinessProbe {
|
|
|
211
271
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
212
272
|
*/
|
|
213
273
|
scheme?: pulumi.Input<string>;
|
|
274
|
+
/**
|
|
275
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
276
|
+
*/
|
|
277
|
+
successThreshold?: pulumi.Input<number>;
|
|
214
278
|
/**
|
|
215
279
|
* Number of seconds after which the probe times out.
|
|
216
280
|
*/
|
|
@@ -245,6 +309,10 @@ export interface ArtifactSpecContainerGroupContainerStartupProbe {
|
|
|
245
309
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
246
310
|
*/
|
|
247
311
|
scheme?: pulumi.Input<string>;
|
|
312
|
+
/**
|
|
313
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
314
|
+
*/
|
|
315
|
+
successThreshold?: pulumi.Input<number>;
|
|
248
316
|
/**
|
|
249
317
|
* Number of seconds after which the probe times out.
|
|
250
318
|
*/
|
|
@@ -1451,6 +1519,10 @@ export interface WorkloadRuntime {
|
|
|
1451
1519
|
* Per-group runtime configuration.
|
|
1452
1520
|
*/
|
|
1453
1521
|
containerGroups?: pulumi.Input<pulumi.Input<inputs.WorkloadRuntimeContainerGroup>[]>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Replacement policy for in-place workload replacement (rolling strategy). Applied when `artifactId` changes or when replacement policy settings change. Runtime-only changes use `PATCH /workloads/{id}/settings`, which does not accept custom replacement timing (WAPI uses platform defaults).
|
|
1524
|
+
*/
|
|
1525
|
+
replacementPolicy?: pulumi.Input<inputs.WorkloadRuntimeReplacementPolicy>;
|
|
1454
1526
|
}
|
|
1455
1527
|
export interface WorkloadRuntimeContainerGroup {
|
|
1456
1528
|
/**
|
|
@@ -1484,29 +1556,25 @@ export interface WorkloadRuntimeContainerGroupAutoscaling {
|
|
|
1484
1556
|
*/
|
|
1485
1557
|
enabled?: pulumi.Input<boolean>;
|
|
1486
1558
|
/**
|
|
1487
|
-
*
|
|
1488
|
-
*/
|
|
1489
|
-
policies: pulumi.Input<pulumi.Input<inputs.WorkloadRuntimeContainerGroupAutoscalingPolicy>[]>;
|
|
1490
|
-
}
|
|
1491
|
-
export interface WorkloadRuntimeContainerGroupAutoscalingPolicy {
|
|
1492
|
-
/**
|
|
1493
|
-
* Maximum number of replicas.
|
|
1559
|
+
* Maximum number of replicas. Defaults to `1`.
|
|
1494
1560
|
*/
|
|
1495
|
-
|
|
1561
|
+
maxReplicaCount?: pulumi.Input<number>;
|
|
1496
1562
|
/**
|
|
1497
|
-
* Minimum number of replicas.
|
|
1563
|
+
* Minimum number of replicas. Set to `0` to allow scale-to-zero. Defaults to `0`.
|
|
1498
1564
|
*/
|
|
1499
|
-
|
|
1565
|
+
minReplicaCount?: pulumi.Input<number>;
|
|
1500
1566
|
/**
|
|
1501
|
-
*
|
|
1567
|
+
* Scaling policies that define when and how to scale.
|
|
1502
1568
|
*/
|
|
1503
|
-
|
|
1569
|
+
policies: pulumi.Input<pulumi.Input<inputs.WorkloadRuntimeContainerGroupAutoscalingPolicy>[]>;
|
|
1570
|
+
}
|
|
1571
|
+
export interface WorkloadRuntimeContainerGroupAutoscalingPolicy {
|
|
1504
1572
|
/**
|
|
1505
|
-
* Metric used for scaling decisions: `cpuAverageUtilization`, `httpRequestsConcurrency`, `gpuCacheUtilization`, or `gpuRequestQueueDepth`.
|
|
1573
|
+
* Metric used for scaling decisions: `cpuAverageUtilization`, `httpRequestsConcurrency`, `gpuCacheUtilization`, or `gpuRequestQueueDepth`. Custom metric names (e.g. `vllm:kv_cache_usage_perc`) are supported for NIM artifacts only.
|
|
1506
1574
|
*/
|
|
1507
1575
|
scalingMetric: pulumi.Input<string>;
|
|
1508
1576
|
/**
|
|
1509
|
-
* Target value for the scaling metric.
|
|
1577
|
+
* Target value for the scaling metric. Must be non-negative.
|
|
1510
1578
|
*/
|
|
1511
1579
|
target: pulumi.Input<number>;
|
|
1512
1580
|
}
|
|
@@ -1538,3 +1606,13 @@ export interface WorkloadRuntimeContainerGroupContainerResourceAllocation {
|
|
|
1538
1606
|
*/
|
|
1539
1607
|
memory?: pulumi.Input<string>;
|
|
1540
1608
|
}
|
|
1609
|
+
export interface WorkloadRuntimeReplacementPolicy {
|
|
1610
|
+
/**
|
|
1611
|
+
* Duration in minutes to keep the old version during replacement. Maps to WAPI `config.keepOldVersionMinutes`.
|
|
1612
|
+
*/
|
|
1613
|
+
keepOldVersionMinutes?: pulumi.Input<number>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Duration in minutes for the warmup phase during replacement. Maps to WAPI `config.warmupDurationMinutes`.
|
|
1616
|
+
*/
|
|
1617
|
+
warmupMinutes?: pulumi.Input<number>;
|
|
1618
|
+
}
|
package/types/output.d.ts
CHANGED
|
@@ -71,6 +71,16 @@ export interface ApplicationSourceRuntimeParameterValue {
|
|
|
71
71
|
*/
|
|
72
72
|
value: string;
|
|
73
73
|
}
|
|
74
|
+
export interface ArtifactSource {
|
|
75
|
+
/**
|
|
76
|
+
* Path to the local directory containing application source files to upload.
|
|
77
|
+
*/
|
|
78
|
+
dir: string;
|
|
79
|
+
/**
|
|
80
|
+
* SHA-256 fingerprint of `dir` contents, used to detect changes and skip re-upload when unchanged.
|
|
81
|
+
*/
|
|
82
|
+
dirHash: string;
|
|
83
|
+
}
|
|
74
84
|
export interface ArtifactSpec {
|
|
75
85
|
/**
|
|
76
86
|
* List of container groups.
|
|
@@ -97,9 +107,13 @@ export interface ArtifactSpecContainerGroupContainer {
|
|
|
97
107
|
*/
|
|
98
108
|
environmentVars?: outputs.ArtifactSpecContainerGroupContainerEnvironmentVar[];
|
|
99
109
|
/**
|
|
100
|
-
*
|
|
110
|
+
* Configuration for server-side image builds from source code.
|
|
101
111
|
*/
|
|
102
|
-
|
|
112
|
+
imageBuildConfig?: outputs.ArtifactSpecContainerGroupContainerImageBuildConfig;
|
|
113
|
+
/**
|
|
114
|
+
* Docker image URI. Omit when using `imageBuildConfig` on draft artifacts; required when status is `locked` and `imageBuildConfig` is set.
|
|
115
|
+
*/
|
|
116
|
+
imageUri?: string;
|
|
103
117
|
/**
|
|
104
118
|
* Container liveness check configuration.
|
|
105
119
|
*/
|
|
@@ -135,11 +149,11 @@ export interface ArtifactSpecContainerGroupContainerEnvironmentVar {
|
|
|
135
149
|
*/
|
|
136
150
|
key?: string;
|
|
137
151
|
/**
|
|
138
|
-
* Name of the environment variable.
|
|
152
|
+
* Name of the environment variable. Required when source is "string" or "dr-credential". Optional for "api-key": when omitted, the platform injects the token as DATAROBOT*API*TOKEN.
|
|
139
153
|
*/
|
|
140
|
-
name
|
|
154
|
+
name?: string;
|
|
141
155
|
/**
|
|
142
|
-
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials. Defaults to "string".
|
|
156
|
+
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials, "api-key" for a platform-managed DataRobot API token. Defaults to "string".
|
|
143
157
|
*/
|
|
144
158
|
source: string;
|
|
145
159
|
/**
|
|
@@ -147,6 +161,48 @@ export interface ArtifactSpecContainerGroupContainerEnvironmentVar {
|
|
|
147
161
|
*/
|
|
148
162
|
value?: string;
|
|
149
163
|
}
|
|
164
|
+
export interface ArtifactSpecContainerGroupContainerImageBuildConfig {
|
|
165
|
+
/**
|
|
166
|
+
* Reference to source code in the DataRobot catalog. Optional at create; required before image build or lock. When `source` is set, the provider uploads `source.dir` and populates this block.
|
|
167
|
+
*/
|
|
168
|
+
codeRef: outputs.ArtifactSpecContainerGroupContainerImageBuildConfigCodeRef;
|
|
169
|
+
/**
|
|
170
|
+
* How the Dockerfile is obtained for the image build. Defaults to using `./Dockerfile` from the source code.
|
|
171
|
+
*/
|
|
172
|
+
dockerfile?: outputs.ArtifactSpecContainerGroupContainerImageBuildConfigDockerfile;
|
|
173
|
+
}
|
|
174
|
+
export interface ArtifactSpecContainerGroupContainerImageBuildConfigCodeRef {
|
|
175
|
+
/**
|
|
176
|
+
* Files API catalog ID (24-character hex).
|
|
177
|
+
*/
|
|
178
|
+
catalogId: string;
|
|
179
|
+
/**
|
|
180
|
+
* Files API catalog version ID (24-character hex).
|
|
181
|
+
*/
|
|
182
|
+
catalogVersionId: string;
|
|
183
|
+
}
|
|
184
|
+
export interface ArtifactSpecContainerGroupContainerImageBuildConfigDockerfile {
|
|
185
|
+
/**
|
|
186
|
+
* Entrypoint baked into the generated Dockerfile CMD. Required when source is `generated`.
|
|
187
|
+
*/
|
|
188
|
+
entrypoints?: string[];
|
|
189
|
+
/**
|
|
190
|
+
* Execution environment ID for the base Docker image. Required when source is `generated`.
|
|
191
|
+
*/
|
|
192
|
+
executionEnvironmentId?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Execution environment version ID that pins the base image. Required when source is `generated`.
|
|
195
|
+
*/
|
|
196
|
+
executionEnvironmentVersionId?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Relative path to the Dockerfile in the source code. Used when source is `provided`. Defaults to `./Dockerfile`.
|
|
199
|
+
*/
|
|
200
|
+
path: string;
|
|
201
|
+
/**
|
|
202
|
+
* How the Dockerfile is obtained: `provided` (from source code) or `generated` (from an execution environment). Defaults to `provided`.
|
|
203
|
+
*/
|
|
204
|
+
source: string;
|
|
205
|
+
}
|
|
150
206
|
export interface ArtifactSpecContainerGroupContainerLivenessProbe {
|
|
151
207
|
/**
|
|
152
208
|
* Minimum consecutive failures for the probe to be considered failed.
|
|
@@ -176,6 +232,10 @@ export interface ArtifactSpecContainerGroupContainerLivenessProbe {
|
|
|
176
232
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
177
233
|
*/
|
|
178
234
|
scheme: string;
|
|
235
|
+
/**
|
|
236
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
237
|
+
*/
|
|
238
|
+
successThreshold: number;
|
|
179
239
|
/**
|
|
180
240
|
* Number of seconds after which the probe times out.
|
|
181
241
|
*/
|
|
@@ -210,6 +270,10 @@ export interface ArtifactSpecContainerGroupContainerReadinessProbe {
|
|
|
210
270
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
211
271
|
*/
|
|
212
272
|
scheme: string;
|
|
273
|
+
/**
|
|
274
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
275
|
+
*/
|
|
276
|
+
successThreshold: number;
|
|
213
277
|
/**
|
|
214
278
|
* Number of seconds after which the probe times out.
|
|
215
279
|
*/
|
|
@@ -244,6 +308,10 @@ export interface ArtifactSpecContainerGroupContainerStartupProbe {
|
|
|
244
308
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
245
309
|
*/
|
|
246
310
|
scheme: string;
|
|
311
|
+
/**
|
|
312
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
313
|
+
*/
|
|
314
|
+
successThreshold: number;
|
|
247
315
|
/**
|
|
248
316
|
* Number of seconds after which the probe times out.
|
|
249
317
|
*/
|
|
@@ -1449,11 +1517,11 @@ export interface GetArtifactSpecContainerGroupContainerEnvironmentVar {
|
|
|
1449
1517
|
*/
|
|
1450
1518
|
key: string;
|
|
1451
1519
|
/**
|
|
1452
|
-
* Name of the environment variable.
|
|
1520
|
+
* Name of the environment variable. May be absent for "api-key" entries, in which case the token is injected as DATAROBOT*API*TOKEN.
|
|
1453
1521
|
*/
|
|
1454
1522
|
name: string;
|
|
1455
1523
|
/**
|
|
1456
|
-
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials.
|
|
1524
|
+
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials, "api-key" for a platform-managed DataRobot API token.
|
|
1457
1525
|
*/
|
|
1458
1526
|
source: string;
|
|
1459
1527
|
/**
|
|
@@ -1546,6 +1614,10 @@ export interface GetArtifactSpecContainerGroupContainerLivenessProbe {
|
|
|
1546
1614
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
1547
1615
|
*/
|
|
1548
1616
|
scheme: string;
|
|
1617
|
+
/**
|
|
1618
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
1619
|
+
*/
|
|
1620
|
+
successThreshold: number;
|
|
1549
1621
|
/**
|
|
1550
1622
|
* Number of seconds after which the probe times out.
|
|
1551
1623
|
*/
|
|
@@ -1580,6 +1652,10 @@ export interface GetArtifactSpecContainerGroupContainerReadinessProbe {
|
|
|
1580
1652
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
1581
1653
|
*/
|
|
1582
1654
|
scheme: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
1657
|
+
*/
|
|
1658
|
+
successThreshold: number;
|
|
1583
1659
|
/**
|
|
1584
1660
|
* Number of seconds after which the probe times out.
|
|
1585
1661
|
*/
|
|
@@ -1652,6 +1728,10 @@ export interface GetArtifactSpecContainerGroupContainerStartupProbe {
|
|
|
1652
1728
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
1653
1729
|
*/
|
|
1654
1730
|
scheme: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
1733
|
+
*/
|
|
1734
|
+
successThreshold: number;
|
|
1655
1735
|
/**
|
|
1656
1736
|
* Number of seconds after which the probe times out.
|
|
1657
1737
|
*/
|
|
@@ -1859,11 +1939,11 @@ export interface GetArtifactsArtifactSpecContainerGroupContainerEnvironmentVar {
|
|
|
1859
1939
|
*/
|
|
1860
1940
|
key: string;
|
|
1861
1941
|
/**
|
|
1862
|
-
* Name of the environment variable.
|
|
1942
|
+
* Name of the environment variable. May be absent for "api-key" entries, in which case the token is injected as DATAROBOT*API*TOKEN.
|
|
1863
1943
|
*/
|
|
1864
1944
|
name: string;
|
|
1865
1945
|
/**
|
|
1866
|
-
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials.
|
|
1946
|
+
* Source type: "string" for plain text values, "dr-credential" for DataRobot credentials, "api-key" for a platform-managed DataRobot API token.
|
|
1867
1947
|
*/
|
|
1868
1948
|
source: string;
|
|
1869
1949
|
/**
|
|
@@ -1956,6 +2036,10 @@ export interface GetArtifactsArtifactSpecContainerGroupContainerLivenessProbe {
|
|
|
1956
2036
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
1957
2037
|
*/
|
|
1958
2038
|
scheme: string;
|
|
2039
|
+
/**
|
|
2040
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
2041
|
+
*/
|
|
2042
|
+
successThreshold: number;
|
|
1959
2043
|
/**
|
|
1960
2044
|
* Number of seconds after which the probe times out.
|
|
1961
2045
|
*/
|
|
@@ -1990,6 +2074,10 @@ export interface GetArtifactsArtifactSpecContainerGroupContainerReadinessProbe {
|
|
|
1990
2074
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
1991
2075
|
*/
|
|
1992
2076
|
scheme: string;
|
|
2077
|
+
/**
|
|
2078
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
2079
|
+
*/
|
|
2080
|
+
successThreshold: number;
|
|
1993
2081
|
/**
|
|
1994
2082
|
* Number of seconds after which the probe times out.
|
|
1995
2083
|
*/
|
|
@@ -2062,6 +2150,10 @@ export interface GetArtifactsArtifactSpecContainerGroupContainerStartupProbe {
|
|
|
2062
2150
|
* Scheme to use for connecting to the host (HTTP or HTTPS).
|
|
2063
2151
|
*/
|
|
2064
2152
|
scheme: string;
|
|
2153
|
+
/**
|
|
2154
|
+
* Minimum consecutive successes for the probe to be considered successful after having failed.
|
|
2155
|
+
*/
|
|
2156
|
+
successThreshold: number;
|
|
2065
2157
|
/**
|
|
2066
2158
|
* Number of seconds after which the probe times out.
|
|
2067
2159
|
*/
|
|
@@ -2216,6 +2308,10 @@ export interface WorkloadRuntime {
|
|
|
2216
2308
|
* Per-group runtime configuration.
|
|
2217
2309
|
*/
|
|
2218
2310
|
containerGroups?: outputs.WorkloadRuntimeContainerGroup[];
|
|
2311
|
+
/**
|
|
2312
|
+
* Replacement policy for in-place workload replacement (rolling strategy). Applied when `artifactId` changes or when replacement policy settings change. Runtime-only changes use `PATCH /workloads/{id}/settings`, which does not accept custom replacement timing (WAPI uses platform defaults).
|
|
2313
|
+
*/
|
|
2314
|
+
replacementPolicy?: outputs.WorkloadRuntimeReplacementPolicy;
|
|
2219
2315
|
}
|
|
2220
2316
|
export interface WorkloadRuntimeContainerGroup {
|
|
2221
2317
|
/**
|
|
@@ -2249,29 +2345,25 @@ export interface WorkloadRuntimeContainerGroupAutoscaling {
|
|
|
2249
2345
|
*/
|
|
2250
2346
|
enabled: boolean;
|
|
2251
2347
|
/**
|
|
2252
|
-
*
|
|
2253
|
-
*/
|
|
2254
|
-
policies: outputs.WorkloadRuntimeContainerGroupAutoscalingPolicy[];
|
|
2255
|
-
}
|
|
2256
|
-
export interface WorkloadRuntimeContainerGroupAutoscalingPolicy {
|
|
2257
|
-
/**
|
|
2258
|
-
* Maximum number of replicas.
|
|
2348
|
+
* Maximum number of replicas. Defaults to `1`.
|
|
2259
2349
|
*/
|
|
2260
|
-
|
|
2350
|
+
maxReplicaCount: number;
|
|
2261
2351
|
/**
|
|
2262
|
-
* Minimum number of replicas.
|
|
2352
|
+
* Minimum number of replicas. Set to `0` to allow scale-to-zero. Defaults to `0`.
|
|
2263
2353
|
*/
|
|
2264
|
-
|
|
2354
|
+
minReplicaCount: number;
|
|
2265
2355
|
/**
|
|
2266
|
-
*
|
|
2356
|
+
* Scaling policies that define when and how to scale.
|
|
2267
2357
|
*/
|
|
2268
|
-
|
|
2358
|
+
policies: outputs.WorkloadRuntimeContainerGroupAutoscalingPolicy[];
|
|
2359
|
+
}
|
|
2360
|
+
export interface WorkloadRuntimeContainerGroupAutoscalingPolicy {
|
|
2269
2361
|
/**
|
|
2270
|
-
* Metric used for scaling decisions: `cpuAverageUtilization`, `httpRequestsConcurrency`, `gpuCacheUtilization`, or `gpuRequestQueueDepth`.
|
|
2362
|
+
* Metric used for scaling decisions: `cpuAverageUtilization`, `httpRequestsConcurrency`, `gpuCacheUtilization`, or `gpuRequestQueueDepth`. Custom metric names (e.g. `vllm:kv_cache_usage_perc`) are supported for NIM artifacts only.
|
|
2271
2363
|
*/
|
|
2272
2364
|
scalingMetric: string;
|
|
2273
2365
|
/**
|
|
2274
|
-
* Target value for the scaling metric.
|
|
2366
|
+
* Target value for the scaling metric. Must be non-negative.
|
|
2275
2367
|
*/
|
|
2276
2368
|
target: number;
|
|
2277
2369
|
}
|
|
@@ -2303,3 +2395,13 @@ export interface WorkloadRuntimeContainerGroupContainerResourceAllocation {
|
|
|
2303
2395
|
*/
|
|
2304
2396
|
memory?: string;
|
|
2305
2397
|
}
|
|
2398
|
+
export interface WorkloadRuntimeReplacementPolicy {
|
|
2399
|
+
/**
|
|
2400
|
+
* Duration in minutes to keep the old version during replacement. Maps to WAPI `config.keepOldVersionMinutes`.
|
|
2401
|
+
*/
|
|
2402
|
+
keepOldVersionMinutes?: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Duration in minutes for the warmup phase during replacement. Maps to WAPI `config.warmupDurationMinutes`.
|
|
2405
|
+
*/
|
|
2406
|
+
warmupMinutes?: number;
|
|
2407
|
+
}
|
package/workload.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
-
/**
|
|
5
|
-
* A Workload runs a containerized artifact in the cluster and exposes an inference endpoint.
|
|
6
|
-
*
|
|
7
|
-
* Several attributes (including `runtime` and `artifactId`) trigger replacement when changed. To avoid downtime during replacements, it is recommended to set `createBeforeDestroy` in the resource lifecycle:
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
4
|
export declare class Workload extends pulumi.CustomResource {
|
|
14
5
|
/**
|
|
15
6
|
* Get an existing Workload resource's state with the given name, ID, and optional extra
|
|
@@ -27,7 +18,7 @@ export declare class Workload extends pulumi.CustomResource {
|
|
|
27
18
|
*/
|
|
28
19
|
static isInstance(obj: any): obj is Workload;
|
|
29
20
|
/**
|
|
30
|
-
* ID of the Artifact version to deploy. When using `datarobot.Artifact`, reference `datarobot_artifact.<name>.artifact_id` (not `.id`). Changing this value
|
|
21
|
+
* ID of the Artifact version to deploy. When using `datarobot.Artifact`, reference `datarobot_artifact.<name>.artifact_id` (not `.id`). Changing this value triggers an in-place workload replacement.
|
|
31
22
|
*/
|
|
32
23
|
readonly artifactId: pulumi.Output<string>;
|
|
33
24
|
/**
|
|
@@ -47,7 +38,7 @@ export declare class Workload extends pulumi.CustomResource {
|
|
|
47
38
|
*/
|
|
48
39
|
readonly name: pulumi.Output<string>;
|
|
49
40
|
/**
|
|
50
|
-
* Runtime configuration for the Workload.
|
|
41
|
+
* Runtime configuration for the Workload. Changes trigger an in-place workload replacement.
|
|
51
42
|
*/
|
|
52
43
|
readonly runtime: pulumi.Output<outputs.WorkloadRuntime>;
|
|
53
44
|
/**
|
|
@@ -68,7 +59,7 @@ export declare class Workload extends pulumi.CustomResource {
|
|
|
68
59
|
*/
|
|
69
60
|
export interface WorkloadState {
|
|
70
61
|
/**
|
|
71
|
-
* ID of the Artifact version to deploy. When using `datarobot.Artifact`, reference `datarobot_artifact.<name>.artifact_id` (not `.id`). Changing this value
|
|
62
|
+
* ID of the Artifact version to deploy. When using `datarobot.Artifact`, reference `datarobot_artifact.<name>.artifact_id` (not `.id`). Changing this value triggers an in-place workload replacement.
|
|
72
63
|
*/
|
|
73
64
|
artifactId?: pulumi.Input<string>;
|
|
74
65
|
/**
|
|
@@ -88,7 +79,7 @@ export interface WorkloadState {
|
|
|
88
79
|
*/
|
|
89
80
|
name?: pulumi.Input<string>;
|
|
90
81
|
/**
|
|
91
|
-
* Runtime configuration for the Workload.
|
|
82
|
+
* Runtime configuration for the Workload. Changes trigger an in-place workload replacement.
|
|
92
83
|
*/
|
|
93
84
|
runtime?: pulumi.Input<inputs.WorkloadRuntime>;
|
|
94
85
|
/**
|
|
@@ -101,7 +92,7 @@ export interface WorkloadState {
|
|
|
101
92
|
*/
|
|
102
93
|
export interface WorkloadArgs {
|
|
103
94
|
/**
|
|
104
|
-
* ID of the Artifact version to deploy. When using `datarobot.Artifact`, reference `datarobot_artifact.<name>.artifact_id` (not `.id`). Changing this value
|
|
95
|
+
* ID of the Artifact version to deploy. When using `datarobot.Artifact`, reference `datarobot_artifact.<name>.artifact_id` (not `.id`). Changing this value triggers an in-place workload replacement.
|
|
105
96
|
*/
|
|
106
97
|
artifactId: pulumi.Input<string>;
|
|
107
98
|
/**
|
|
@@ -117,7 +108,7 @@ export interface WorkloadArgs {
|
|
|
117
108
|
*/
|
|
118
109
|
name?: pulumi.Input<string>;
|
|
119
110
|
/**
|
|
120
|
-
* Runtime configuration for the Workload.
|
|
111
|
+
* Runtime configuration for the Workload. Changes trigger an in-place workload replacement.
|
|
121
112
|
*/
|
|
122
113
|
runtime: pulumi.Input<inputs.WorkloadRuntime>;
|
|
123
114
|
}
|
package/workload.js
CHANGED
|
@@ -5,15 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Workload = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* A Workload runs a containerized artifact in the cluster and exposes an inference endpoint.
|
|
10
|
-
*
|
|
11
|
-
* Several attributes (including `runtime` and `artifactId`) trigger replacement when changed. To avoid downtime during replacements, it is recommended to set `createBeforeDestroy` in the resource lifecycle:
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
8
|
class Workload extends pulumi.CustomResource {
|
|
18
9
|
/**
|
|
19
10
|
* Get an existing Workload resource's state with the given name, ID, and optional extra
|
package/workload.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workload.js","sourceRoot":"","sources":["../workload.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"workload.js","sourceRoot":"","sources":["../workload.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuCD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,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