Skip to content

Commit

Permalink
add docker ver negotiation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi committed Aug 17, 2023
1 parent cf04e38 commit 066b542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ func makePool(n *net.IPNet, count int) *metallbv1.IPAddressPool {
func (m *MetalLBSpec) Deploy(ctx context.Context) error {
var err error
if m.dClient == nil {
m.dClient, err = dclient.NewClientWithOpts(dclient.FromEnv)
m.dClient, err = dclient.NewClientWithOpts(dclient.FromEnv, dclient.WithAPIVersionNegotiation())
if err != nil {
return fmt.Errorf("failed to create docker client: %w", err)
}
Expand Down

0 comments on commit 066b542

Please sign in to comment.