We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f633cb commit 34713b8Copy full SHA for 34713b8
1 file changed
pkg/library/container/container.go
@@ -86,6 +86,9 @@ func GetKubeContainersFromDevfile(
86
87
// applying caps only after overrides
88
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
+ }
92
k8sContainer.Resources = *resources
93
94
podAdditions.Containers = append(podAdditions.Containers, *k8sContainer)
0 commit comments