diff --git a/cmd/virtual-kubelet/commands/root/root.go b/cmd/virtual-kubelet/commands/root/root.go index 0e207814d..099e81fd9 100644 --- a/cmd/virtual-kubelet/commands/root/root.go +++ b/cmd/virtual-kubelet/commands/root/root.go @@ -136,7 +136,7 @@ func runRootCommand(ctx context.Context, c Opts) error { node, err := vkubelet.NewNode( vkubelet.NaiveNodeProvider{}, pNode, - client.Coordination().Leases(corev1.NamespaceNodeLease), + client.CoordinationV1beta1().Leases(corev1.NamespaceNodeLease), client.CoreV1().Nodes(), vkubelet.WithNodeDisableLease(!c.EnableNodeLease), )