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

Function NewDefaultPod

pkg/entity/pod.go:77–79  ·  view source on GitHub ↗

NewDefaultPod creates a Pod using spreads defaults without any containers attached. Containers must be attached before this Pod can be deployed.

(meta kube.ObjectMeta, source string, objects ...deploy.KubeObject)

Source from the content-addressed store, hash-verified

75// NewDefaultPod creates a Pod using spreads defaults without any containers attached. Containers must be attached
76// before this Pod can be deployed.
77func NewDefaultPod(meta kube.ObjectMeta, source string, objects ...deploy.KubeObject) (*Pod, error) {
78 return NewPodFromPodSpec(meta, DefaultPodSpec, kube.ObjectMeta{}, source, objects...)
79}
80
81// Deployment is created containing Pod with attached Containers.
82func (c *Pod) Deployment() (*deploy.Deployment, error) {

Callers 2

deployWithPodFunction · 0.85
AttachMethod · 0.85

Calls 1

NewPodFromPodSpecFunction · 0.85

Tested by

no test coverage detected