Skip to content

Commit

Permalink
Preallocate containers
Browse files Browse the repository at this point in the history
  • Loading branch information
waseem-h committed Aug 6, 2018
1 parent 1b98947 commit 6f580db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kube/mounts/mounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (mm *MountManager) MountVolumes(volumeMountConfigs []v1alpha1.VolumeMount)
return err
}

var containersToUpdate []corev1.Container
containersToUpdate := make([]corev1.Container, 0, len(volumeMountConfigs))

for _, volumeMountConfig := range volumeMountConfigs {
container, err := mm.findContainerWithName(volumeMountConfig.Container)
Expand Down

0 comments on commit 6f580db

Please sign in to comment.