Skip to content

Commit

Permalink
Merge pull request #2115 from crossplane-contrib/backport-2114-to-rel…
Browse files Browse the repository at this point in the history
…ease-0.50
  • Loading branch information
MisterMX authored Oct 30, 2024
2 parents 7bfc380 + 4de6ac3 commit c300d7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/clients/eks/eks.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"encoding/json"
"errors"
"net"
"slices"

"github.com/aws/aws-sdk-go-v2/aws"
v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
Expand Down Expand Up @@ -181,6 +182,9 @@ func CreatePatch(in *ekstypes.Cluster, target *v1beta1.ClusterParameters) (*v1be
currentParams := &v1beta1.ClusterParameters{}
LateInitialize(currentParams, in)

slices.Sort(currentParams.ResourcesVpcConfig.SubnetIDs)
slices.Sort(target.ResourcesVpcConfig.SubnetIDs)

jsonPatch, err := jsonpatch.CreateJSONPatch(currentParams, target)
if err != nil {
return nil, err
Expand Down

0 comments on commit c300d7f

Please sign in to comment.