remove unused code of (pkg/controller)

This commit is contained in:
Guoliang Wang
2018-05-19 08:18:13 +08:00
parent 552453f6fd
commit b1ac6df4dc
8 changed files with 9 additions and 44 deletions

View File

@@ -32,7 +32,6 @@ var (
productionLabel = map[string]string{"type": "production"}
testLabel = map[string]string{"type": "testing"}
productionLabelSelector = labels.Set{"type": "production"}.AsSelector()
testLabelSelector = labels.Set{"type": "testing"}.AsSelector()
controllerUID = "123"
)
@@ -60,12 +59,10 @@ func newPod(podName string, label map[string]string, owner metav1.Object) *v1.Po
func TestClaimPods(t *testing.T) {
controllerKind := schema.GroupVersionKind{}
type test struct {
name string
manager *PodControllerRefManager
pods []*v1.Pod
filters []func(*v1.Pod) bool
claimed []*v1.Pod
released []*v1.Pod
name string
manager *PodControllerRefManager
pods []*v1.Pod
claimed []*v1.Pod
}
var tests = []test{
{