update deprecated calls

Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com>
This commit is contained in:
alex boten 2026-04-02 15:54:32 -07:00
parent 39672984b5
commit ab63eeb0d2
No known key found for this signature in database
GPG Key ID: B6C3966DEDD376B5
2 changed files with 2 additions and 4 deletions

View File

@ -146,7 +146,6 @@ func NewDockerDiscovery(conf *DockerSDConfig, opts discovery.DiscovererOptions)
clientOpts := []client.Opt{
client.WithHost(conf.Host),
client.WithAPIVersionNegotiation(),
}
d.filters = make(client.Filters)
@ -176,7 +175,7 @@ func NewDockerDiscovery(conf *DockerSDConfig, opts discovery.DiscovererOptions)
)
}
d.client, err = client.NewClientWithOpts(clientOpts...)
d.client, err = client.New(clientOpts...)
if err != nil {
return nil, fmt.Errorf("error setting up docker client: %w", err)
}

View File

@ -140,7 +140,6 @@ func NewDiscovery(conf *DockerSwarmSDConfig, opts discovery.DiscovererOptions) (
clientOpts := []client.Opt{
client.WithHost(conf.Host),
client.WithAPIVersionNegotiation(),
}
d.filters = make(client.Filters)
@ -170,7 +169,7 @@ func NewDiscovery(conf *DockerSwarmSDConfig, opts discovery.DiscovererOptions) (
)
}
d.client, err = client.NewClientWithOpts(clientOpts...)
d.client, err = client.New(clientOpts...)
if err != nil {
return nil, fmt.Errorf("error setting up docker swarm client: %w", err)
}