Skip to content

Commit

Permalink
add condition for triggering the deletion of redundant chassises in s…
Browse files Browse the repository at this point in the history
…bdb (#1411)
  • Loading branch information
lut777 committed Mar 29, 2022
1 parent 2aedc6a commit 41f8e26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,8 @@ func (c *Controller) RemoveRedundantChassis(node *v1.Node) error {
klog.Errorf("failed to get node %s chassisID, %v", node.Name, err)
return err
}
if chassisAdd == "" {

if chassisAdd == "" && node.Annotations[util.ChassisAnnotation] != "" {
chassises, err := c.ovnClient.GetAllChassisHostname()
if err != nil {
klog.Errorf("failed to get all chassis, %v", err)
Expand Down

0 comments on commit 41f8e26

Please sign in to comment.