Skip to content

Commit 92f736b

Browse files
committed
fix: add lb backend type
1 parent ed78a52 commit 92f736b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pkg/apis/compute/loadbalancer_const.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ const (
155155

156156
// TODO raw type
157157
const (
158-
LB_BACKEND_GUEST = "guest"
159-
LB_BACKEND_HOST = "host"
160-
LB_BACKEND_IP = "ip"
158+
LB_BACKEND_GUEST = "guest"
159+
LB_BACKEND_HOST = "host"
160+
LB_BACKEND_IP = "ip"
161+
LB_BACKEND_ADDRESS = "address"
161162
)
162163

163164
const (

pkg/cloudprovider/loadbalancerbackend.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type SLoadbalancerBackend struct {
1818
Index int
1919
Weight int
2020
Port int
21+
Enabled bool
2122
Id string
2223
Name string
2324
ExternalId string

0 commit comments

Comments
 (0)