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

Method Deployment

pkg/entity/container.go:66–72  ·  view source on GitHub ↗

Deployment is created with Container attached to Pod. The pod is named after the kube.Container.

()

Source from the content-addressed store, hash-verified

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) {
67 meta := kube.ObjectMeta{
68 GenerateName: c.name(),
69 }
70
71 return deployWithPod(meta, c)
72}
73
74// Images returns the Container's image
75func (c *Container) Images() []*image.Image {

Callers 3

TestContainerAttachFunction · 0.95

Calls 2

nameMethod · 0.95
deployWithPodFunction · 0.85

Tested by 3

TestContainerAttachFunction · 0.76