Skip to content

Commit

Permalink
🧹 fix 'G601: Implicit memory aliasing in for loop' linter issue
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew authored and tekton-robot committed Dec 1, 2023
1 parent 40e67ed commit eb7fa97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/reconciler/openshift/common/cabundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ func ApplyCABundles(u *unstructured.Unstructured) error {

// Now that the injected certificates have been added as a volume, let's
// mount them via volumeMounts in the containers
for i, c := range deployment.Spec.Template.Spec.Containers {
for i := range deployment.Spec.Template.Spec.Containers {
c := deployment.Spec.Template.Spec.Containers[i] // Create a copy of the container
common.AddCABundlesToContainerVolumes(&c)
deployment.Spec.Template.Spec.Containers[i] = c
}
Expand Down

0 comments on commit eb7fa97

Please sign in to comment.