Merge pull request #23366 from goltermann/vet

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2016-03-24 21:50:56 -07:00
42 changed files with 68 additions and 72 deletions

View File

@@ -325,7 +325,7 @@ func TestGenerateService(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
if test.expectPOST != sawPOST {
t.Error("expectPost: %v, sawPost: %v", test.expectPOST, sawPOST)
t.Errorf("expectPost: %v, sawPost: %v", test.expectPOST, sawPOST)
}
}
}

View File

@@ -1584,7 +1584,7 @@ func printConfigMapList(list *api.ConfigMapList, w io.Writer, options PrintOptio
}
func printPodSecurityPolicy(item *extensions.PodSecurityPolicy, w io.Writer, options PrintOptions) error {
_, err := fmt.Fprintf(w, "%s\t%t\t%v\t%t\t%s\t%s\n", item.Name, item.Spec.Privileged,
_, err := fmt.Fprintf(w, "%s\t%t\t%v\t%v\t%s\t%s\n", item.Name, item.Spec.Privileged,
item.Spec.Capabilities, item.Spec.Volumes, item.Spec.SELinux.Rule,
item.Spec.RunAsUser.Rule)
return err