(meta kube.ObjectMeta, attached Entity)
| 221 | } |
| 222 | |
| 223 | func deployWithPod(meta kube.ObjectMeta, attached Entity) (*deploy.Deployment, error) { |
| 224 | pod, err := NewDefaultPod(meta, attached.Source()) |
| 225 | if err != nil { |
| 226 | return nil, err |
| 227 | } |
| 228 | |
| 229 | err = pod.Attach(attached) |
| 230 | if err != nil { |
| 231 | return nil, err |
| 232 | } |
| 233 | |
| 234 | return pod.Deployment() |
| 235 | } |
| 236 | |
| 237 | var ( |
| 238 | // ErrMissingContainer is where the Pod is being used in a context where it must be valid and doesn't have a Container. |
no test coverage detected