Skip to content

Commit

Permalink
add docker ver negotiation (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi authored Aug 17, 2023
1 parent f2da5fc commit 65d0d47
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 65d0d47

Please sign in to comment.