Rename PodTemplate.Spec to PodTemplate.Template

This commit is contained in:
Clayton Coleman
2015-03-04 10:46:27 -05:00
parent 10c2ace6bf
commit e6e034af4f
8 changed files with 58 additions and 45 deletions

View File

@@ -446,7 +446,7 @@ func printPodList(podList *api.PodList, w io.Writer) error {
}
func printPodTemplate(pod *api.PodTemplate, w io.Writer) error {
containers := pod.Spec.Spec.Containers
containers := pod.Template.Spec.Containers
var firstContainer api.Container
if len(containers) > 0 {
firstContainer, containers = containers[0], containers[1:]
@@ -455,7 +455,7 @@ func printPodTemplate(pod *api.PodTemplate, w io.Writer) error {
pod.Name,
firstContainer.Name,
firstContainer.Image,
formatLabels(pod.Spec.Labels),
formatLabels(pod.Template.Labels),
)
if err != nil {
return err