Skip to content

Commit

Permalink
Merge pull request #775 from spectrocloud/PCP-1505
Browse files Browse the repository at this point in the history
PCP-1505: palette continuously updating EKS cluster endpoints
  • Loading branch information
sadysnaat authored Jul 13, 2023
2 parents ca20342 + a1e3b55 commit 04064de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cloud/services/eks/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ func (s *Service) reconcileVpcConfig(vpcConfig *eks.VpcConfigResponse) (*eks.Vpc
needsUpdate := !tristate.EqualWithDefault(false, vpcConfig.EndpointPrivateAccess, updatedVpcConfig.EndpointPrivateAccess) ||
!tristate.EqualWithDefault(true, vpcConfig.EndpointPublicAccess, updatedVpcConfig.EndpointPublicAccess) ||
!publicAccessCIDRsEqual(vpcConfig.PublicAccessCidrs, updatedVpcConfig.PublicAccessCidrs)

if *updatedVpcConfig.EndpointPublicAccess == false && len(updatedVpcConfig.PublicAccessCidrs) == 0 {
updatedVpcConfig.PublicAccessCidrs = []*string{}
}

if needsUpdate {
return &eks.VpcConfigRequest{
EndpointPublicAccess: updatedVpcConfig.EndpointPublicAccess,
Expand Down

0 comments on commit 04064de

Please sign in to comment.