Skip to content

Commit

Permalink
Lb-svc supports custom VPCs (#1779)
Browse files Browse the repository at this point in the history
Co-authored-by: chenjianhui <chenjianhui@yealink.com>
  • Loading branch information
ShaPoHun and chenjianhui authored Aug 4, 2022
1 parent cd00ddb commit 80425b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/service_lb.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func (c *Controller) genLbSvcDeployment(svc *corev1.Service) (dp *v1.Deployment)
if svc.Spec.LoadBalancerIP != "" {
podAnnotations[attchIpAnnotation] = svc.Spec.LoadBalancerIP
}
if v, ok := svc.Annotations[util.LogicalSwitchAnnotation]; ok {
podAnnotations[util.LogicalSwitchAnnotation] = v
}

dp = &v1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 80425b7

Please sign in to comment.