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

Method Deployment

pkg/entity/image.go:36–42  ·  view source on GitHub ↗

Deployment is created with image attached to default pod. The GenerateName of the Pod is the name of the image.

()

Source from the content-addressed store, hash-verified

34// Deployment is created with image attached to default pod. The GenerateName of the Pod
35// is the name of the image.
36func (c *Image) Deployment() (*deploy.Deployment, error) {
37 meta := kube.ObjectMeta{
38 GenerateName: c.name(),
39 }
40
41 return deployWithPod(meta, c)
42}
43
44// Images returns the associated image.Image
45func (c *Image) Images() []*image.Image {

Callers 1

TestImageDeploymentFunction · 0.95

Calls 2

nameMethod · 0.95
deployWithPodFunction · 0.85

Tested by 1

TestImageDeploymentFunction · 0.76