Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/controllers/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@
func (l *LoadBalancerController) acquireIP(ctx context.Context, service *v1.Service) (string, error) {
annotations := service.GetAnnotations()
addressPool, ok := annotations[constants.MetalLBSpecificAddressPool]
deprecatedAddressPool, deprecatedok := annotations[constants.DeprecatedMetalLBSpecificAddressPool]

Check failure on line 339 in pkg/controllers/loadbalancer/loadbalancer.go

View workflow job for this annotation

GitHub Actions / Docker Build

declared and not used: deprecatedok (typecheck)

Check failure on line 339 in pkg/controllers/loadbalancer/loadbalancer.go

View workflow job for this annotation

GitHub Actions / Docker Build

declared and not used: deprecatedAddressPool

Check failure on line 339 in pkg/controllers/loadbalancer/loadbalancer.go

View workflow job for this annotation

GitHub Actions / Docker Build

declared and not used: deprecatedok) (typecheck)

Check failure on line 339 in pkg/controllers/loadbalancer/loadbalancer.go

View workflow job for this annotation

GitHub Actions / Docker Build

declared and not used: deprecatedAddressPool

Check failure on line 339 in pkg/controllers/loadbalancer/loadbalancer.go

View workflow job for this annotation

GitHub Actions / Docker Build

declared and not used: deprecatedok) (typecheck)

Check failure on line 339 in pkg/controllers/loadbalancer/loadbalancer.go

View workflow job for this annotation

GitHub Actions / Docker Build

declared and not used: deprecatedAddressPool
if !ok {
if l.defaultExternalNetworkID == "" {
return "", fmt.Errorf(`no default network for ip acquisition specified, acquire an ip for your cluster's project and specify it directly in "spec.loadBalancerIP"`)
Expand Down
3 changes: 2 additions & 1 deletion pkg/resources/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const (
ProviderName = "metal"

// FIXME this annotation is deprecated metallb.io should be used instead
MetalLBSpecificAddressPool = "metallb.universe.tf/address-pool"
DeprecatedMetalLBSpecificAddressPool = "metallb.universe.tf/address-pool"
MetalLBSpecificAddressPool = "metallb.io/address-pool"

IPPrefix = "metallb-"

Expand Down
Loading