Skip to content

Commit 34713b8

Browse files
committed
fixup
Signed-off-by: Anatolii Bazko <[email protected]>
1 parent 6f633cb commit 34713b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/library/container/container.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ func GetKubeContainersFromDevfile(
8686

8787
// applying caps only after overrides
8888
resources := dwResources.ApplyCaps(&k8sContainer.Resources, resourceCaps)
89+
if err := dwResources.ValidateResources(resources); err != nil {
90+
return nil, fmt.Errorf("container resources are invalid for component %s: %w", component.Name, err)
91+
}
8992
k8sContainer.Resources = *resources
9093

9194
podAdditions.Containers = append(podAdditions.Containers, *k8sContainer)

0 commit comments

Comments
 (0)