prow/pjutil/tot.go
func PostsubmitToJobSpec(post config.Postsubmit) *downwardapi.JobSpec {
	return &downwardapi.JobSpec{
		Type: prowapi.PostsubmitJob,
		Job:  post.Name,
	}
}
func PostsubmitToJobSpec(post config.Postsubmit) *downwardapi.JobSpec {
	return &downwardapi.JobSpec{
		Type: prowapi.PostsubmitJob,
		Job:  post.Name,
	}
}
// PostsubmitToJobSpec generates a downwardapi.JobSpec out of a Postsubmit.
// Useful for figuring out GCS paths when parsing jobs out
// of a prow config.