We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5f2af6 + 1a86153 commit 416cf16Copy full SHA for 416cf16
1 file changed
internal/service/lb/manager.go
@@ -84,6 +84,10 @@ func (s *Manager) DeleteLB(ctx context.Context, labelSelector string) error {
84
if err != nil {
85
return utils.IgnoreNotFound(err)
86
}
87
+ if len(lbs) == 0 {
88
+ // consider as already deleted
89
+ return nil
90
+ }
91
if len(lbs) > 1 {
92
return fmt.Errorf("found more than one lb with same label")
93
0 commit comments