Commit 70d7d33
committed
Add container resource caps enforcement for workspace containers
Implements ContainerResourceCaps configuration to enforce maximum resource
limits and requests for workspace containers. When configured, container
resource requirements that exceed the caps will be limited to the maximum
values. This feature does not apply to initContainers or projectClone containers.
Changes include:
- New ContainerResourceCaps field in DevWorkspaceOperatorConfig API
- Updated CRDs with the new field definition
- Controller integration to pass resource caps to container handlers
- Resource capping logic in container, flatten, merge, and projects packages
- Tests for resource cap enforcement
Assisted-by: Claude.
Signed-off-by: Anatolii Bazko <[email protected]>1 parent 1a8a0e8 commit 70d7d33
File tree
18 files changed
+636
-15
lines changed- apis/controller/v1alpha1
- controllers/workspace
- deploy
- bundle/manifests
- deployment
- kubernetes
- objects
- openshift
- objects
- templates/crd/bases
- pkg
- config
- library
- container
- flatten
- projects
- resources
18 files changed
+636
-15
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| |||
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
356 | 358 | | |
357 | 359 | | |
358 | 360 | | |
| 361 | + | |
359 | 362 | | |
360 | 363 | | |
361 | 364 | | |
| |||
Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments