Deployment is created with image attached to default pod. The GenerateName of the Pod is the name of the image.
()
| 34 | // Deployment is created with image attached to default pod. The GenerateName of the Pod |
| 35 | // is the name of the image. |
| 36 | func (c *Image) Deployment() (*deploy.Deployment, error) { |
| 37 | meta := kube.ObjectMeta{ |
| 38 | GenerateName: c.name(), |
| 39 | } |
| 40 | |
| 41 | return deployWithPod(meta, c) |
| 42 | } |
| 43 | |
| 44 | // Images returns the associated image.Image |
| 45 | func (c *Image) Images() []*image.Image { |