Skip to content

Commit

Permalink
Add support for policy CR with serviceTypeLB (#3332)
Browse files Browse the repository at this point in the history
  • Loading branch information
arzzon committed May 2, 2024
1 parent a2fa0c7 commit 4088633
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions pkg/controller/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,16 +413,17 @@ func (ctlr *Controller) processResources() bool {
}
}
if ctlr.managedResources.ManageCustomResources {
virtuals := ctlr.getVirtualsForCustomPolicy(cp)
//Sync Custompolicy for Virtual Servers
for _, virtual := range virtuals {
err := ctlr.processVirtualServers(virtual, false)
if err != nil {
// TODO
utilruntime.HandleError(fmt.Errorf("Sync %v failed with %v", key, err))
isRetryableError = true
}
}
// TODO: Uncomment the below code once Virtual Server CR is supported for 3.x
//virtuals := ctlr.getVirtualsForCustomPolicy(cp)
////Sync Custompolicy for Virtual Servers
//for _, virtual := range virtuals {
// err := ctlr.processVirtualServers(virtual, false)
// if err != nil {
// // TODO
// utilruntime.HandleError(fmt.Errorf("Sync %v failed with %v", key, err))
// isRetryableError = true
// }
//}
//Sync Custompolicy for Transport Servers
tsVirtuals := ctlr.getTransportServersForCustomPolicy(cp)
for _, virtual := range tsVirtuals {
Expand Down

0 comments on commit 4088633

Please sign in to comment.