Skip to content

Commit

Permalink
Issue #4156 (part2) - Bug: On restart, agbot doesn't update a node ev…
Browse files Browse the repository at this point in the history
…en though a new service was added and a deployment policy update occurred

Signed-off-by: Le Zhang <zhangl@us.ibm.com>
  • Loading branch information
LiilyZhang committed Oct 14, 2024
1 parent a2f6c4b commit f3e1813
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agreementbot/consumer_protocol_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,9 @@ func (b *BaseConsumerProtocolHandler) HandlePolicyChangeForAgreement(ag persiste
t_comp, consumerNamespace, t_reason := compcheck.CheckClusterNamespaceCompatibility(dev.NodeType, dev.ClusterNamespace, dev.IsNamespaceScoped, busPol.ClusterNamespace, wl.ClusterDeployment, ag.Pattern, false, msgPrinter)
if !t_comp {
glog.V(5).Infof(BCPHlogstring(b.Name(), fmt.Sprintf("cluster namespace %v is not longer compatible for agreement %v. Reason is: %v", consumerNamespace, ag.CurrentAgreementId, t_reason)))

return true, true, false
}
// new cluster namespace is still compatible
return true, true, false
}
}

Expand Down

0 comments on commit f3e1813

Please sign in to comment.