Stop using deprecated method Clientset.Coordination (#581)

Clientset.Coordination is deprecated. We are meant to use the specific
version of the client: CoordinationV1beta1. Clientset.Coordination is
going to be removed in future versions of the client API.
This commit is contained in:
Sargun Dhillon
2019-04-23 14:17:15 -07:00
committed by Brian Goff
parent 45d2ef06b2
commit 3da9b0d105

View File

@@ -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),
)