Skip to content

Commit 0018d33

Browse files
committed
Fixing index incrementation
Signed-off-by: Amit Schendel <[email protected]>
1 parent 1a05caf commit 0018d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (c *Controller) handleApplicationProfile(applicationProfileUnstructured *un
248248
}
249249

250250
// TODO: Make this code more efficient and less repetitive.
251-
for containerIndex := 0; containerIndex < len(podApplicationProfileObj.Spec.Containers); i++ {
251+
for containerIndex := 0; containerIndex < len(podApplicationProfileObj.Spec.Containers); containerIndex++ {
252252
// Merge containers
253253
if mapContainer, exists := containersMap[podApplicationProfileObj.Spec.Containers[containerIndex].Name]; exists {
254254
// Merge SysCalls

0 commit comments

Comments
 (0)