Commit 14d6840
authored
feat(api): add workingDir to BYO agent deployment spec (#1970)
Closes #1932
Add `workingDir` as an optional string field on `ByoDeploymentSpec`.
Maps directly to `container.workingDir` in the generated Deployment.
```yaml
spec:
type: BYO
byo:
deployment:
image: oven/bun:1.2-alpine
workingDir: /app
```
Changes:
- `ByoDeploymentSpec.WorkingDir *string` in `agent_types.go`
- `resolvedDeployment.WorkingDir` populated in `resolveByoDeployment`
- `container.WorkingDir` set in `manifest_builder.go`
- CRD and Helm chart updated via `make generate && make manifests`
Signed-off-by: mesutoezdil <mesudozdil@gmail.com>1 parent e6287be commit 14d6840
8 files changed
Lines changed: 32 additions & 0 deletions
File tree
- go
- api
- config/crd/bases
- v1alpha2
- core/internal/controller/translator/agent
- helm/kagent-crds/templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7701 | 7701 | | |
7702 | 7702 | | |
7703 | 7703 | | |
| 7704 | + | |
| 7705 | + | |
| 7706 | + | |
| 7707 | + | |
7704 | 7708 | | |
7705 | 7709 | | |
7706 | 7710 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5359 | 5359 | | |
5360 | 5360 | | |
5361 | 5361 | | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
5362 | 5366 | | |
5363 | 5367 | | |
5364 | 5368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
361 | 364 | | |
362 | 365 | | |
363 | 366 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
495 | 500 | | |
496 | 501 | | |
497 | 502 | | |
| |||
508 | 513 | | |
509 | 514 | | |
510 | 515 | | |
| 516 | + | |
511 | 517 | | |
512 | 518 | | |
513 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7701 | 7701 | | |
7702 | 7702 | | |
7703 | 7703 | | |
| 7704 | + | |
| 7705 | + | |
| 7706 | + | |
| 7707 | + | |
7704 | 7708 | | |
7705 | 7709 | | |
7706 | 7710 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5359 | 5359 | | |
5360 | 5360 | | |
5361 | 5361 | | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
5362 | 5366 | | |
5363 | 5367 | | |
5364 | 5368 | | |
| |||
0 commit comments