mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
delete some unused code
This commit is contained in:
parent
328e3a8ab9
commit
a3c1dfba24
@ -317,8 +317,7 @@ func CheckNodesReady(c clientset.Interface, nt time.Duration, expect int) ([]str
|
|||||||
go func() { result <- WaitForNodeToBeReady(c, n, timeout) }()
|
go func() { result <- WaitForNodeToBeReady(c, n, timeout) }()
|
||||||
}
|
}
|
||||||
failed := false
|
failed := false
|
||||||
// TODO(mbforbes): Change to `for range` syntax once we support only Go
|
|
||||||
// >= 1.4.
|
|
||||||
for i := range nodeList.Items {
|
for i := range nodeList.Items {
|
||||||
_ = i
|
_ = i
|
||||||
if !<-result {
|
if !<-result {
|
||||||
|
@ -30,8 +30,6 @@ import (
|
|||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
||||||
const resizeNodeReadyTimeout = 2 * time.Minute
|
|
||||||
|
|
||||||
func resizeRC(c clientset.Interface, ns, name string, replicas int32) error {
|
func resizeRC(c clientset.Interface, ns, name string, replicas int32) error {
|
||||||
rc, err := c.CoreV1().ReplicationControllers(ns).Get(name, metav1.GetOptions{})
|
rc, err := c.CoreV1().ReplicationControllers(ns).Get(name, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -104,7 +104,6 @@ type localTestVolume struct {
|
|||||||
const (
|
const (
|
||||||
// TODO: This may not be available/writable on all images.
|
// TODO: This may not be available/writable on all images.
|
||||||
hostBase = "/tmp"
|
hostBase = "/tmp"
|
||||||
containerBase = "/myvol"
|
|
||||||
// Path to the first volume in the test containers
|
// Path to the first volume in the test containers
|
||||||
// created via createLocalPod or makeLocalPod
|
// created via createLocalPod or makeLocalPod
|
||||||
// leveraging pv_util.MakePod
|
// leveraging pv_util.MakePod
|
||||||
|
Loading…
Reference in New Issue
Block a user