Skip to content

Commit c30c5b2

Browse files
[release-v1.34] skip setting readonly LB fields in the update call (#1234)
* do not set the lb.status when updating Signed-off-by: Felix Breuer <f.breuer94@gmail.com> * remove more readonly fields Signed-off-by: Felix Breuer <f.breuer94@gmail.com> --------- Signed-off-by: Felix Breuer <f.breuer94@gmail.com> Co-authored-by: Felix Breuer <f.breuer94@gmail.com>
1 parent 5625095 commit c30c5b2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

pkg/ccm/loadbalancer.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,14 @@ func (l *LoadBalancer) EnsureLoadBalancer( //nolint:gocyclo // not really comple
148148
spec.Version = lb.Version
149149
spec.Name = &name
150150
updatePayload := &loadbalancer.UpdateLoadBalancerPayload{
151-
Errors: spec.Errors,
152151
ExternalAddress: spec.ExternalAddress,
153152
Listeners: spec.Listeners,
154153
Name: spec.Name,
155154
Networks: spec.Networks,
156155
Options: spec.Options,
157156
PlanId: spec.PlanId,
158-
PrivateAddress: spec.PrivateAddress,
159157
Region: spec.Region,
160158
Labels: spec.Labels,
161-
Status: new(loadbalancer.UpdateLoadBalancerPayloadStatus(spec.GetStatus())),
162159
TargetPools: spec.TargetPools,
163160
Version: spec.Version,
164161
}

0 commit comments

Comments
 (0)