Skip to content

Commit

Permalink
Fixing index incrementation
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Schendel <[email protected]>
  • Loading branch information
amitschendel committed Jan 15, 2024
1 parent 1a05caf commit 0018d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (c *Controller) handleApplicationProfile(applicationProfileUnstructured *un
}

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

0 comments on commit 0018d33

Please sign in to comment.