mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/kube-vip/kube-vip.git
synced 2026-09-20 08:03:47 +08:00
This is a complete hack
This does the following: - Bumps client-go a version - Adds the missing `contexts` - Takes leaderElection from Kubernetes upstream and adds a fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net"
|
||||
"os"
|
||||
@@ -142,7 +143,7 @@ var kubeKubeadmJoin = &cobra.Command{
|
||||
|
||||
opts := metav1.ListOptions{}
|
||||
opts.LabelSelector = "node-role.kubernetes.io/master"
|
||||
nodes, err := clientset.CoreV1().Nodes().List(opts)
|
||||
nodes, err := clientset.CoreV1().Nodes().List(context.TODO(), opts)
|
||||
|
||||
// Iterate over all nodes that are masters and find the details to build a peer list
|
||||
for x := range nodes.Items {
|
||||
|
||||
Reference in New Issue
Block a user