Skip to content

Commit

Permalink
Fix loadBalancer.ingress.ip update for new service
Browse files Browse the repository at this point in the history
  • Loading branch information
dzeromsk committed Feb 14, 2022
1 parent 2e630f8 commit 2368d0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/simple-cloud-provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: simple-cloud-provider
description: A general purpose kubernetes cloud provider
type: application
version: 0.1.1
appVersion: "0.1.0"
version: 0.1.2
appVersion: "0.1.2"
9 changes: 8 additions & 1 deletion pkg/provider/loadBalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ func (k *simpleLoadBalancerManager) syncLoadBalancer(ctx context.Context, servic
if err != nil {
return nil, err
}
return &service.Status.LoadBalancer, nil

return &v1.LoadBalancerStatus{
Ingress: []v1.LoadBalancerIngress{
{
IP: newSvc.Vip,
},
},
}, nil
}

func discoverAddress(cm *v1.ConfigMap, namespace, configMapName string) (vip string, err error) {
Expand Down

0 comments on commit 2368d0e

Please sign in to comment.