Skip to content

Commit

Permalink
Fix that the Resources configuration
Browse files Browse the repository at this point in the history
Fix that the Resources configuration
is missing the configuration of the initcontainer container

Signed-off-by: lion <mzzgaopeng@gmail.com>
  • Loading branch information
gaopeng authored and kubevirt-bot committed Mar 6, 2025
1 parent d9b72af commit c6438e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/import-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,11 @@ func makeImporterInitContainersSpec(args *importerPodArgs) []corev1.Container {
},
})
}
if args.podResourceRequirements != nil {
for i := range initContainers {
initContainers[i].Resources = *args.podResourceRequirements
}
}
return initContainers
}

Expand Down

0 comments on commit c6438e3

Please sign in to comment.