fix: fix configuration and remove uneeded libs

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
This commit is contained in:
Paulo Dias 2024-12-06 17:58:21 +00:00
parent a90aa34e71
commit 713903fe48
No known key found for this signature in database
GPG key ID: CE1937300CB848AA
2 changed files with 3 additions and 5 deletions

View file

@ -16,7 +16,6 @@ package openstack
import ( import (
"context" "context"
"fmt" "fmt"
"log"
"log/slog" "log/slog"
"net" "net"
"strconv" "strconv"
@ -120,7 +119,6 @@ func (i *LoadBalancerDiscovery) refresh(ctx context.Context) ([]*targetgroup.Gro
// Fetch all floating IPs with pagination // Fetch all floating IPs with pagination
fipPages, err := floatingips.List(networkClient, floatingips.ListOpts{}).AllPages() fipPages, err := floatingips.List(networkClient, floatingips.ListOpts{}).AllPages()
if err != nil { if err != nil {
log.Printf("Error calling OpenStack API: %v", err)
return nil, fmt.Errorf("failed to list all fips: %w", err) return nil, fmt.Errorf("failed to list all fips: %w", err)
} }
if err != nil { if err != nil {

View file

@ -1197,9 +1197,9 @@ The following meta labels are available on targets during [relabeling](#relabel_
#### `loadbalancer` #### `loadbalancer`
The `loadbalancer` role discovers one target per `PROMETHEUS` listener of The `loadbalancer` role discovers one target per Octavia loadbalancer with a
Octavia loa dbalancer. The target address defaults to the VIP address of the `PROMETHEUS` listener. The target address defaults to the VIP address
load balancer. of the load balancer.
The following meta labels are available on targets during [relabeling](#relabel_config): The following meta labels are available on targets during [relabeling](#relabel_config):