From c2e079433645bdbeb3d297a01a9338fbf47846d6 Mon Sep 17 00:00:00 2001 From: Sarah Alsmiller Date: Wed, 3 Apr 2024 10:39:48 -0500 Subject: [PATCH] run codegen --- agent/proxycfg/proxycfg.deepcopy.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/agent/proxycfg/proxycfg.deepcopy.go b/agent/proxycfg/proxycfg.deepcopy.go index 68a5bd0db5fc6..19484073e7ef3 100644 --- a/agent/proxycfg/proxycfg.deepcopy.go +++ b/agent/proxycfg/proxycfg.deepcopy.go @@ -727,6 +727,22 @@ func (o *configSnapshotMeshGateway) DeepCopy() *configSnapshotMeshGateway { } } } + if o.Limits != nil { + cp.Limits = new(structs.UpstreamLimits) + *cp.Limits = *o.Limits + if o.Limits.MaxConnections != nil { + cp.Limits.MaxConnections = new(int) + *cp.Limits.MaxConnections = *o.Limits.MaxConnections + } + if o.Limits.MaxPendingRequests != nil { + cp.Limits.MaxPendingRequests = new(int) + *cp.Limits.MaxPendingRequests = *o.Limits.MaxPendingRequests + } + if o.Limits.MaxConcurrentRequests != nil { + cp.Limits.MaxConcurrentRequests = new(int) + *cp.Limits.MaxConcurrentRequests = *o.Limits.MaxConcurrentRequests + } + } return &cp } @@ -879,5 +895,17 @@ func (o *configSnapshotTerminatingGateway) DeepCopy() *configSnapshotTerminating cp.InboundPeerTrustBundles[k2] = cp_InboundPeerTrustBundles_v2 } } + if o.Limits.MaxConnections != nil { + cp.Limits.MaxConnections = new(int) + *cp.Limits.MaxConnections = *o.Limits.MaxConnections + } + if o.Limits.MaxPendingRequests != nil { + cp.Limits.MaxPendingRequests = new(int) + *cp.Limits.MaxPendingRequests = *o.Limits.MaxPendingRequests + } + if o.Limits.MaxConcurrentRequests != nil { + cp.Limits.MaxConcurrentRequests = new(int) + *cp.Limits.MaxConcurrentRequests = *o.Limits.MaxConcurrentRequests + } return &cp }