-
Notifications
You must be signed in to change notification settings - Fork 1
/
kubevip.go
40 lines (33 loc) · 979 Bytes
/
kubevip.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// kubevip loadbalancer that does nothing, but exists to enable bgp functionality
package kubevip
import (
"context"
"github.com/cherryservers/cloud-provider-cherry/cherry/loadbalancers"
"k8s.io/client-go/kubernetes"
)
type LB struct {
}
// NewLB returns a new LB
//
//nolint:revive // ignore unused error
func NewLB(k8sclient kubernetes.Interface, config string) *LB {
return &LB{}
}
// AddService add a service
//
//nolint:revive // ignore unused error
func (l *LB) AddService(ctx context.Context, svcNamespace, svcName, ip string, nodes []loadbalancers.Node) error {
return nil
}
// RemoveService remove a service
//
//nolint:revive // ignore unused error
func (l *LB) RemoveService(ctx context.Context, svcNamespace, svcName, ip string) error {
return nil
}
// UpdateService update a service
//
//nolint:revive // ignore unused error
func (l *LB) UpdateService(ctx context.Context, svcNamespace, svcName string, nodes []loadbalancers.Node) error {
return nil
}