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

Function newDefaultContainer

pkg/entity/container.go:59–63  ·  view source on GitHub ↗
(name, source string)

Source from the content-addressed store, hash-verified

57}
58
59func 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.
66func (c *Container) Deployment() (*deploy.Deployment, error) {

Callers 1

AttachMethod · 0.85

Calls 1

NewContainerFunction · 0.85

Tested by

no test coverage detected