Upgrade K8s
* Upgrade k8s.io/api go get k8s.io/api@kubernetes-1.15.2 * Upgrade k8s.io/apimachinery go get k8s.io/apimachinery@kubernetes-1.15.2 * Upgrade kubernetes-1.15.2 go get k8s.io/client-go@kubernetes-1.15.2 * Upgrade kk8s.io/kubernetes to v1.15.2 go get k8s.io/kubernetes@v1.15.2 This also locks the the dependency for github.com/prometheus/client_golang/prometheus due to a golang bug, and to please the validation scripts. The replaces were generated by: go get k8s.io/kubernetes@v1.15.2 2> fail for i in $(cat fail|grep unknown|cut -f1 -d@|cut -f2 -d" ") do echo "replace ${i} => ${i} kubernetes-1.15.2" done
This commit is contained in:
@@ -44,7 +44,7 @@ func testNodeRun(t *testing.T, enableLease bool) {
|
||||
testP := &testNodeProvider{NodeProvider: &NaiveNodeProvider{}}
|
||||
|
||||
nodes := c.CoreV1().Nodes()
|
||||
leases := c.Coordination().Leases(corev1.NamespaceNodeLease)
|
||||
leases := c.CoordinationV1beta1().Leases(corev1.NamespaceNodeLease)
|
||||
|
||||
interval := 1 * time.Millisecond
|
||||
opts := []NodeControllerOpt{
|
||||
@@ -216,7 +216,7 @@ func TestNodeCustomUpdateStatusErrorHandler(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestEnsureLease(t *testing.T) {
|
||||
c := testclient.NewSimpleClientset().Coordination().Leases(corev1.NamespaceNodeLease)
|
||||
c := testclient.NewSimpleClientset().CoordinationV1beta1().Leases(corev1.NamespaceNodeLease)
|
||||
n := testNode(t)
|
||||
ctx := context.Background()
|
||||
|
||||
@@ -270,7 +270,7 @@ func TestUpdateNodeStatus(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestUpdateNodeLease(t *testing.T) {
|
||||
leases := testclient.NewSimpleClientset().Coordination().Leases(corev1.NamespaceNodeLease)
|
||||
leases := testclient.NewSimpleClientset().CoordinationV1beta1().Leases(corev1.NamespaceNodeLease)
|
||||
lease := newLease(nil)
|
||||
n := testNode(t)
|
||||
setLeaseAttrs(lease, n, 0)
|
||||
|
||||
Reference in New Issue
Block a user