MCPcopy
hub / github.com/redspread/spread / deployWithPod

Function deployWithPod

pkg/entity/pod.go:223–235  ·  view source on GitHub ↗
(meta kube.ObjectMeta, attached Entity)

Source from the content-addressed store, hash-verified

221}
222
223func 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
237var (
238 // ErrMissingContainer is where the Pod is being used in a context where it must be valid and doesn't have a Container.

Callers 2

DeploymentMethod · 0.85
DeploymentMethod · 0.85

Calls 4

NewDefaultPodFunction · 0.85
SourceMethod · 0.65
AttachMethod · 0.65
DeploymentMethod · 0.65

Tested by

no test coverage detected