2014-07-15 14:52:39 +00:00
|
|
|
/*
|
|
|
|
Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"io/ioutil"
|
|
|
|
"os"
|
|
|
|
"sort"
|
2015-01-05 01:30:30 +00:00
|
|
|
"strings"
|
2014-07-15 14:52:39 +00:00
|
|
|
"testing"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
2015-01-22 01:11:56 +00:00
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/v1beta1"
|
2014-10-08 19:56:02 +00:00
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/validation"
|
2014-07-15 14:52:39 +00:00
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet"
|
2015-01-14 23:22:21 +00:00
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
|
2014-07-15 14:52:39 +00:00
|
|
|
)
|
|
|
|
|
2015-03-13 13:19:07 +00:00
|
|
|
func ExampleManifestAndPod(id string) (v1beta1.ContainerManifest, api.Pod) {
|
2015-01-22 01:11:56 +00:00
|
|
|
manifest := v1beta1.ContainerManifest{
|
2014-10-08 19:56:02 +00:00
|
|
|
ID: id,
|
2015-01-14 23:22:21 +00:00
|
|
|
UUID: types.UID(id),
|
2015-01-22 01:11:56 +00:00
|
|
|
Containers: []v1beta1.Container{
|
2014-10-08 19:56:02 +00:00
|
|
|
{
|
|
|
|
Name: "c" + id,
|
|
|
|
Image: "foo",
|
2014-11-05 19:08:26 +00:00
|
|
|
TerminationMessagePath: "/somepath",
|
2014-10-08 19:56:02 +00:00
|
|
|
},
|
|
|
|
},
|
2015-01-22 01:11:56 +00:00
|
|
|
Volumes: []v1beta1.Volume{
|
2014-10-08 19:56:02 +00:00
|
|
|
{
|
|
|
|
Name: "host-dir",
|
2015-01-22 01:11:56 +00:00
|
|
|
Source: v1beta1.VolumeSource{
|
2015-02-20 06:27:27 +00:00
|
|
|
HostDir: &v1beta1.HostPathVolumeSource{"/dir/path"},
|
2014-10-08 19:56:02 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2015-03-13 13:19:07 +00:00
|
|
|
expectedPod := api.Pod{
|
2014-10-23 20:51:34 +00:00
|
|
|
ObjectMeta: api.ObjectMeta{
|
2015-02-26 20:27:14 +00:00
|
|
|
Name: id,
|
|
|
|
UID: types.UID(id),
|
|
|
|
Namespace: kubelet.NamespaceDefault,
|
2014-10-08 19:56:02 +00:00
|
|
|
},
|
|
|
|
Spec: api.PodSpec{
|
|
|
|
Containers: []api.Container{
|
|
|
|
{
|
|
|
|
Name: "c" + id,
|
|
|
|
Image: "foo",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Volumes: []api.Volume{
|
|
|
|
{
|
|
|
|
Name: "host-dir",
|
2015-03-03 22:48:55 +00:00
|
|
|
VolumeSource: api.VolumeSource{
|
2015-02-20 06:27:27 +00:00
|
|
|
HostPath: &api.HostPathVolumeSource{"/dir/path"},
|
2014-10-08 19:56:02 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
return manifest, expectedPod
|
|
|
|
}
|
|
|
|
|
2014-07-15 14:52:39 +00:00
|
|
|
func TestExtractFromNonExistentFile(t *testing.T) {
|
|
|
|
ch := make(chan interface{}, 1)
|
2014-11-21 21:47:21 +00:00
|
|
|
c := sourceFile{"/some/fake/file", ch}
|
2014-07-15 14:52:39 +00:00
|
|
|
err := c.extractFromPath()
|
2014-07-27 13:30:32 +00:00
|
|
|
if err == nil {
|
|
|
|
t.Errorf("Expected error")
|
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdateOnNonExistentFile(t *testing.T) {
|
|
|
|
ch := make(chan interface{})
|
|
|
|
NewSourceFile("random_non_existent_path", time.Millisecond, ch)
|
|
|
|
select {
|
|
|
|
case got := <-ch:
|
2015-01-09 07:01:07 +00:00
|
|
|
update := got.(kubelet.PodUpdate)
|
|
|
|
expected := CreatePodUpdate(kubelet.SET, kubelet.FileSource)
|
2015-01-26 17:52:50 +00:00
|
|
|
if !api.Semantic.DeepDerivative(expected, update) {
|
2015-01-09 07:01:07 +00:00
|
|
|
t.Fatalf("Expected %#v, Got %#v", expected, update)
|
|
|
|
}
|
|
|
|
|
2015-01-28 19:27:15 +00:00
|
|
|
case <-time.After(time.Second):
|
2015-01-09 07:01:07 +00:00
|
|
|
t.Errorf("Expected update, timeout instead")
|
2014-07-15 14:52:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func writeTestFile(t *testing.T, dir, name string, contents string) *os.File {
|
|
|
|
file, err := ioutil.TempFile(os.TempDir(), "test_pod_config")
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("Unable to create test file %#v", err)
|
|
|
|
}
|
|
|
|
file.Close()
|
|
|
|
if err := ioutil.WriteFile(file.Name(), []byte(contents), 0555); err != nil {
|
|
|
|
t.Fatalf("Unable to write test file %#v", err)
|
|
|
|
}
|
|
|
|
return file
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestReadFromFile(t *testing.T) {
|
2015-01-05 01:30:30 +00:00
|
|
|
file := writeTestFile(t, os.TempDir(), "test_pod_config",
|
|
|
|
`{
|
|
|
|
"version": "v1beta1",
|
|
|
|
"uuid": "12345",
|
|
|
|
"id": "test",
|
2015-01-22 01:11:56 +00:00
|
|
|
"containers": [{ "image": "test/image", imagePullPolicy: "PullAlways"}]
|
2015-01-05 01:30:30 +00:00
|
|
|
}`)
|
2014-07-15 14:52:39 +00:00
|
|
|
defer os.Remove(file.Name())
|
|
|
|
|
|
|
|
ch := make(chan interface{})
|
|
|
|
NewSourceFile(file.Name(), time.Millisecond, ch)
|
|
|
|
select {
|
|
|
|
case got := <-ch:
|
|
|
|
update := got.(kubelet.PodUpdate)
|
2015-03-13 13:19:07 +00:00
|
|
|
expected := CreatePodUpdate(kubelet.SET, kubelet.FileSource, api.Pod{
|
2014-10-23 20:51:34 +00:00
|
|
|
ObjectMeta: api.ObjectMeta{
|
2015-02-26 20:27:14 +00:00
|
|
|
Name: "",
|
2015-01-05 01:30:30 +00:00
|
|
|
UID: "12345",
|
2015-02-26 20:27:14 +00:00
|
|
|
Namespace: kubelet.NamespaceDefault,
|
2015-01-05 01:30:30 +00:00
|
|
|
SelfLink: "",
|
2014-10-08 19:56:02 +00:00
|
|
|
},
|
2015-01-26 17:52:50 +00:00
|
|
|
Spec: api.PodSpec{Containers: []api.Container{{Image: "test/image"}}},
|
2014-07-15 14:52:39 +00:00
|
|
|
})
|
2015-01-05 01:30:30 +00:00
|
|
|
|
2015-02-26 20:27:14 +00:00
|
|
|
if !strings.HasPrefix(update.Pods[0].Name, "test-") {
|
|
|
|
t.Errorf("Unexpected name: %s", update.Pods[0].Name)
|
|
|
|
}
|
2015-01-05 01:30:30 +00:00
|
|
|
// There's no way to provide namespace in ContainerManifest, so
|
|
|
|
// it will be defaulted.
|
2015-02-26 20:27:14 +00:00
|
|
|
if update.Pods[0].Namespace != kubelet.NamespaceDefault {
|
|
|
|
t.Errorf("Unexpected namespace: %s", update.Pods[0].Namespace)
|
2015-01-05 01:30:30 +00:00
|
|
|
}
|
|
|
|
// SelfLink depends on namespace.
|
2015-02-26 20:27:14 +00:00
|
|
|
if !strings.HasPrefix(update.Pods[0].SelfLink, "/api/") {
|
|
|
|
t.Errorf("Unexpected selflink: %s", update.Pods[0].SelfLink)
|
2015-01-05 01:30:30 +00:00
|
|
|
}
|
|
|
|
|
2015-02-26 20:27:14 +00:00
|
|
|
// Reset the fileds that we don't want to compare.
|
|
|
|
update.Pods[0].Name = ""
|
|
|
|
update.Pods[0].SelfLink = ""
|
2015-01-26 17:52:50 +00:00
|
|
|
if !api.Semantic.DeepDerivative(expected, update) {
|
2014-10-08 19:56:02 +00:00
|
|
|
t.Fatalf("Expected %#v, Got %#v", expected, update)
|
2014-07-15 14:52:39 +00:00
|
|
|
}
|
|
|
|
|
2015-01-28 19:27:15 +00:00
|
|
|
case <-time.After(time.Second):
|
2014-07-15 14:52:39 +00:00
|
|
|
t.Errorf("Expected update, timeout instead")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-22 05:57:14 +00:00
|
|
|
func TestReadFromFileWithoutID(t *testing.T) {
|
|
|
|
file := writeTestFile(t, os.TempDir(), "test_pod_config",
|
|
|
|
`{
|
|
|
|
"version": "v1beta1",
|
|
|
|
"uuid": "12345",
|
|
|
|
"containers": [{ "image": "test/image", imagePullPolicy: "PullAlways"}]
|
|
|
|
}`)
|
|
|
|
defer os.Remove(file.Name())
|
|
|
|
|
|
|
|
ch := make(chan interface{})
|
|
|
|
NewSourceFile(file.Name(), time.Millisecond, ch)
|
|
|
|
select {
|
|
|
|
case got := <-ch:
|
|
|
|
update := got.(kubelet.PodUpdate)
|
2015-03-13 13:19:07 +00:00
|
|
|
expected := CreatePodUpdate(kubelet.SET, kubelet.FileSource, api.Pod{
|
2015-01-22 05:57:14 +00:00
|
|
|
ObjectMeta: api.ObjectMeta{
|
|
|
|
Name: "",
|
|
|
|
UID: "12345",
|
2015-02-26 20:27:14 +00:00
|
|
|
Namespace: kubelet.NamespaceDefault,
|
2015-01-22 05:57:14 +00:00
|
|
|
SelfLink: "",
|
|
|
|
},
|
2015-01-26 17:52:50 +00:00
|
|
|
Spec: api.PodSpec{Containers: []api.Container{{Image: "test/image"}}},
|
2015-01-22 05:57:14 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
if len(update.Pods[0].ObjectMeta.Name) == 0 {
|
|
|
|
t.Errorf("Name did not get defaulted")
|
|
|
|
}
|
2015-02-26 20:27:14 +00:00
|
|
|
// Reset the fileds that we don't want to compare.
|
|
|
|
update.Pods[0].Name = ""
|
|
|
|
update.Pods[0].SelfLink = ""
|
2015-01-26 17:52:50 +00:00
|
|
|
if !api.Semantic.DeepDerivative(expected, update) {
|
2015-01-22 05:57:14 +00:00
|
|
|
t.Fatalf("Expected %#v, Got %#v", expected, update)
|
|
|
|
}
|
|
|
|
|
2015-01-28 19:27:15 +00:00
|
|
|
case <-time.After(time.Second):
|
2015-01-22 05:57:14 +00:00
|
|
|
t.Errorf("Expected update, timeout instead")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestReadV1Beta2FromFile(t *testing.T) {
|
|
|
|
file := writeTestFile(t, os.TempDir(), "test_pod_config",
|
|
|
|
`{
|
|
|
|
"version": "v1beta2",
|
|
|
|
"uuid": "12345",
|
|
|
|
"id": "test",
|
|
|
|
"containers": [{ "image": "test/image", imagePullPolicy: "PullAlways"}]
|
|
|
|
}`)
|
|
|
|
defer os.Remove(file.Name())
|
|
|
|
|
|
|
|
ch := make(chan interface{})
|
|
|
|
NewSourceFile(file.Name(), time.Millisecond, ch)
|
|
|
|
select {
|
|
|
|
case got := <-ch:
|
|
|
|
update := got.(kubelet.PodUpdate)
|
2015-03-13 13:19:07 +00:00
|
|
|
expected := CreatePodUpdate(kubelet.SET, kubelet.FileSource, api.Pod{
|
2015-01-22 05:57:14 +00:00
|
|
|
ObjectMeta: api.ObjectMeta{
|
2015-02-26 20:27:14 +00:00
|
|
|
Name: "",
|
2015-01-22 05:57:14 +00:00
|
|
|
UID: "12345",
|
2015-02-26 20:27:14 +00:00
|
|
|
Namespace: kubelet.NamespaceDefault,
|
2015-01-22 05:57:14 +00:00
|
|
|
SelfLink: "",
|
|
|
|
},
|
2015-01-26 17:52:50 +00:00
|
|
|
Spec: api.PodSpec{Containers: []api.Container{{Image: "test/image"}}},
|
2015-01-22 05:57:14 +00:00
|
|
|
})
|
|
|
|
|
2015-02-26 20:27:14 +00:00
|
|
|
// Reset the fileds that we don't want to compare.
|
|
|
|
update.Pods[0].Name = ""
|
|
|
|
update.Pods[0].SelfLink = ""
|
2015-01-26 17:52:50 +00:00
|
|
|
if !api.Semantic.DeepDerivative(expected, update) {
|
2015-01-22 05:57:14 +00:00
|
|
|
t.Fatalf("Expected %#v, Got %#v", expected, update)
|
|
|
|
}
|
|
|
|
|
2015-01-28 19:27:15 +00:00
|
|
|
case <-time.After(time.Second):
|
2015-01-22 05:57:14 +00:00
|
|
|
t.Errorf("Expected update, timeout instead")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-05 01:30:30 +00:00
|
|
|
func TestReadFromFileWithDefaults(t *testing.T) {
|
|
|
|
file := writeTestFile(t, os.TempDir(), "test_pod_config",
|
|
|
|
`{
|
|
|
|
"version": "v1beta1",
|
|
|
|
"id": "test",
|
|
|
|
"containers": [{ "image": "test/image" }]
|
|
|
|
}`)
|
|
|
|
defer os.Remove(file.Name())
|
|
|
|
|
|
|
|
ch := make(chan interface{})
|
|
|
|
NewSourceFile(file.Name(), time.Millisecond, ch)
|
|
|
|
select {
|
|
|
|
case got := <-ch:
|
|
|
|
update := got.(kubelet.PodUpdate)
|
2015-02-26 20:27:14 +00:00
|
|
|
if update.Pods[0].UID == "" {
|
|
|
|
t.Errorf("Unexpected UID: %s", update.Pods[0].UID)
|
2015-01-05 01:30:30 +00:00
|
|
|
}
|
|
|
|
|
2015-01-28 19:27:15 +00:00
|
|
|
case <-time.After(time.Second):
|
2015-01-05 01:30:30 +00:00
|
|
|
t.Errorf("Expected update, timeout instead")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-15 14:52:39 +00:00
|
|
|
func TestExtractFromBadDataFile(t *testing.T) {
|
|
|
|
file := writeTestFile(t, os.TempDir(), "test_pod_config", string([]byte{1, 2, 3}))
|
|
|
|
defer os.Remove(file.Name())
|
|
|
|
|
|
|
|
ch := make(chan interface{}, 1)
|
2014-11-21 21:47:21 +00:00
|
|
|
c := sourceFile{file.Name(), ch}
|
2014-07-15 14:52:39 +00:00
|
|
|
err := c.extractFromPath()
|
2014-07-27 13:30:32 +00:00
|
|
|
if err == nil {
|
2014-10-08 19:56:02 +00:00
|
|
|
t.Fatalf("Expected error")
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
expectEmptyChannel(t, ch)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestExtractFromEmptyDir(t *testing.T) {
|
|
|
|
dirName, err := ioutil.TempDir("", "foo")
|
2014-07-27 13:30:32 +00:00
|
|
|
if err != nil {
|
2014-10-08 19:56:02 +00:00
|
|
|
t.Fatalf("Unexpected error: %v", err)
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
defer os.RemoveAll(dirName)
|
|
|
|
|
|
|
|
ch := make(chan interface{}, 1)
|
2014-11-21 21:47:21 +00:00
|
|
|
c := sourceFile{dirName, ch}
|
2014-07-15 14:52:39 +00:00
|
|
|
err = c.extractFromPath()
|
2014-07-27 13:30:32 +00:00
|
|
|
if err != nil {
|
2014-10-08 19:56:02 +00:00
|
|
|
t.Fatalf("Unexpected error: %v", err)
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
|
|
|
|
update := (<-ch).(kubelet.PodUpdate)
|
2014-12-17 05:11:27 +00:00
|
|
|
expected := CreatePodUpdate(kubelet.SET, kubelet.FileSource)
|
2015-01-26 17:52:50 +00:00
|
|
|
if !api.Semantic.DeepDerivative(expected, update) {
|
2014-07-15 14:52:39 +00:00
|
|
|
t.Errorf("Expected %#v, Got %#v", expected, update)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestExtractFromDir(t *testing.T) {
|
2014-10-08 19:56:02 +00:00
|
|
|
manifest, expectedPod := ExampleManifestAndPod("1")
|
|
|
|
manifest2, expectedPod2 := ExampleManifestAndPod("2")
|
|
|
|
|
2015-01-22 01:11:56 +00:00
|
|
|
manifests := []v1beta1.ContainerManifest{manifest, manifest2}
|
2015-03-13 13:19:07 +00:00
|
|
|
pods := []api.Pod{expectedPod, expectedPod2}
|
2014-07-15 14:52:39 +00:00
|
|
|
files := make([]*os.File, len(manifests))
|
|
|
|
|
|
|
|
dirName, err := ioutil.TempDir("", "foo")
|
2014-07-27 13:30:32 +00:00
|
|
|
if err != nil {
|
2014-10-08 19:56:02 +00:00
|
|
|
t.Fatalf("Unexpected error: %v", err)
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
|
|
|
|
for i, manifest := range manifests {
|
|
|
|
data, err := json.Marshal(manifest)
|
2014-07-27 13:30:32 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Errorf("Unexpected error: %v", err)
|
2014-10-08 19:56:02 +00:00
|
|
|
continue
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
file, err := ioutil.TempFile(dirName, manifest.ID)
|
2014-07-27 13:30:32 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Errorf("Unexpected error: %v", err)
|
2014-10-08 19:56:02 +00:00
|
|
|
continue
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
name := file.Name()
|
2014-07-27 13:30:32 +00:00
|
|
|
if err := file.Close(); err != nil {
|
|
|
|
t.Errorf("Unexpected error: %v", err)
|
2014-10-08 19:56:02 +00:00
|
|
|
continue
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
ioutil.WriteFile(name, data, 0755)
|
|
|
|
files[i] = file
|
|
|
|
}
|
|
|
|
|
|
|
|
ch := make(chan interface{}, 1)
|
2014-11-21 21:47:21 +00:00
|
|
|
c := sourceFile{dirName, ch}
|
2014-07-15 14:52:39 +00:00
|
|
|
err = c.extractFromPath()
|
2014-07-27 13:30:32 +00:00
|
|
|
if err != nil {
|
2014-10-08 19:56:02 +00:00
|
|
|
t.Fatalf("Unexpected error: %v", err)
|
2014-07-27 13:30:32 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
|
|
|
|
update := (<-ch).(kubelet.PodUpdate)
|
2015-01-05 01:30:30 +00:00
|
|
|
for i := range update.Pods {
|
2015-02-26 20:27:14 +00:00
|
|
|
// Pod name is generated with hash and is unique. Skip the comparision
|
|
|
|
// here by setting it to a simple value.
|
|
|
|
update.Pods[i].Name = manifests[i].ID
|
2015-01-05 01:30:30 +00:00
|
|
|
update.Pods[i].SelfLink = ""
|
|
|
|
}
|
2014-12-17 05:11:27 +00:00
|
|
|
expected := CreatePodUpdate(kubelet.SET, kubelet.FileSource, pods...)
|
2015-01-05 01:30:30 +00:00
|
|
|
for i := range expected.Pods {
|
2015-02-26 20:27:14 +00:00
|
|
|
// Pod name is generated with hash and is unique. Skip the comparision
|
|
|
|
// here by setting it to a simple value.
|
|
|
|
expected.Pods[i].Name = manifests[i].ID
|
2015-01-05 01:30:30 +00:00
|
|
|
}
|
2014-07-15 14:52:39 +00:00
|
|
|
sort.Sort(sortedPods(update.Pods))
|
|
|
|
sort.Sort(sortedPods(expected.Pods))
|
2015-01-26 17:52:50 +00:00
|
|
|
if !api.Semantic.DeepDerivative(expected, update) {
|
2014-10-08 19:56:02 +00:00
|
|
|
t.Fatalf("Expected %#v, Got %#v", expected, update)
|
2014-07-15 14:52:39 +00:00
|
|
|
}
|
2014-08-03 20:55:34 +00:00
|
|
|
for i := range update.Pods {
|
2015-03-13 13:19:07 +00:00
|
|
|
if errs := validation.ValidatePod(&update.Pods[i]); len(errs) != 0 {
|
2015-02-26 20:27:14 +00:00
|
|
|
t.Errorf("Expected no validation errors on %#v, Got %q", update.Pods[i], errs)
|
2014-08-03 20:55:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|