@@ -175,11 +175,7 @@ func needsContainerContributionMerge(flattenedSpec *dw.DevWorkspaceTemplateSpec)
175175 return hasContribution && hasTarget , nil
176176}
177177
178- func mergeContainerContributions (
179- flattenedSpec * dw.DevWorkspaceTemplateSpec ,
180- defaultResources * corev1.ResourceRequirements ,
181- resourceCaps * corev1.ResourceRequirements ,
182- ) error {
178+ func mergeContainerContributions (flattenedSpec * dw.DevWorkspaceTemplateSpec , defaultResources * corev1.ResourceRequirements ) error {
183179 var contributions []dw.Component
184180 contributionNameSet := map [string ]bool {}
185181 for _ , component := range flattenedSpec .Components {
@@ -205,7 +201,7 @@ func mergeContainerContributions(
205201 // drop contributions from updated list as they will be merged
206202 continue
207203 } else if component .Name == targetComponentName && ! mergeDone {
208- mergedComponent , err := mergeContributionsInto (& component , contributions , defaultResources , resourceCaps )
204+ mergedComponent , err := mergeContributionsInto (& component , contributions , defaultResources )
209205 if err != nil {
210206 return fmt .Errorf ("failed to merge container contributions: %w" , err )
211207 }
@@ -273,12 +269,7 @@ func findMergeTarget(flattenedSpec *dw.DevWorkspaceTemplateSpec) (mergeTargetCom
273269 return "" , fmt .Errorf ("couldn't find any merge contribution target component" )
274270}
275271
276- func mergeContributionsInto (
277- mergeInto * dw.Component ,
278- contributions []dw.Component ,
279- defaultResources * corev1.ResourceRequirements ,
280- resourceCaps * corev1.ResourceRequirements ,
281- ) (* dw.Component , error ) {
272+ func mergeContributionsInto (mergeInto * dw.Component , contributions []dw.Component , defaultResources * corev1.ResourceRequirements ) (* dw.Component , error ) {
282273 if mergeInto == nil || mergeInto .Container == nil {
283274 return nil , fmt .Errorf ("attempting to merge container contributions into a non-container component" )
284275 }
0 commit comments