Deployment is created with Container attached to Pod. The pod is named after the kube.Container.
()
| 64 | |
| 65 | // Deployment is created with Container attached to Pod. The pod is named after the kube.Container. |
| 66 | func (c *Container) Deployment() (*deploy.Deployment, error) { |
| 67 | meta := kube.ObjectMeta{ |
| 68 | GenerateName: c.name(), |
| 69 | } |
| 70 | |
| 71 | return deployWithPod(meta, c) |
| 72 | } |
| 73 | |
| 74 | // Images returns the Container's image |
| 75 | func (c *Container) Images() []*image.Image { |