Skip to content

Commit 62c907e

Browse files
stefanmcshaneDanil-Grigorev
authored andcommitted
memory aliasing patch
1 parent 562fae8 commit 62c907e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkg/eks/podidentities/plan.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ func (a *plan) getDesiredAssociation(association EKSPodIdentityAssociation) bool
6565
func (a *plan) Create(_ context.Context) ([]planner.Procedure, error) {
6666
procedures := []planner.Procedure{}
6767

68-
for _, desired := range a.desiredAssociations {
68+
for _, d := range a.desiredAssociations {
69+
desired := d
6970
existsInCurrent := a.getCurrentAssociation(desired)
7071

7172
// Create pod association if is doesnt already exist

pkg/eks/podidentities/types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ limitations under the License.
1717
package podidentities
1818

1919
import (
20+
"net/http"
21+
2022
"github.com/google/go-cmp/cmp"
2123
)
2224

@@ -42,6 +44,6 @@ func (e *EKSPodIdentityAssociation) IsEqual(other *EKSPodIdentityAssociation) bo
4244
if !cmp.Equal(e.RoleARN, other.RoleARN) {
4345
return false
4446
}
45-
47+
x := http.DefaultClient
4648
return true
4749
}

0 commit comments

Comments
 (0)