(name, source string)
| 57 | } |
| 58 | |
| 59 | func newDefaultContainer(name, source string) (*Container, error) { |
| 60 | kubeContainer := DefaultContainer |
| 61 | kubeContainer.Name = name |
| 62 | return NewContainer(kubeContainer, kube.ObjectMeta{}, source) |
| 63 | } |
| 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) { |