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:
committed by
Brian Goff
parent
45d2ef06b2
commit
3da9b0d105
@@ -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),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user