-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix deletion of address in l4 #1814
Fix deletion of address in l4 #1814
Conversation
4b601f1
to
76a24d4
Compare
/assign @kl52752 |
@@ -118,7 +118,7 @@ func (l4 *L4) EnsureInternalLoadBalancerDeleted(svc *corev1.Service) *L4ILBSyncR | |||
result.Error = err | |||
result.GCEResourceInError = annotations.ForwardingRuleResource | |||
} | |||
if err = ensureAddressDeleted(l4.cloud, name, l4.cloud.Region()); err != nil { | |||
if err = ensureAddressDeleted(l4.cloud, frName, l4.cloud.Region()); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, good suggestion, done
We were trying to delete address with backend service name, but we only reserve address with forwarding rule name Remove frName argument from ensureForwardingRule, and instead construct the name on the fly
76a24d4
to
6c9120a
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kl52752, panslava The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We were trying to delete address with backend service name, but we only reserve address with forwarding rule name