MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Render

Method Render

pkg/devspace/deploy/deployer/kubectl/kubectl.go:108–120  ·  view source on GitHub ↗

Render writes the generated manifests to the out stream

(ctx devspacecontext.Context, out io.Writer)

Source from the content-addressed store, hash-verified

106
107// Render writes the generated manifests to the out stream
108func (d *DeployConfig) Render(ctx devspacecontext.Context, out io.Writer) error {
109 for _, manifest := range d.Manifests {
110 _, replacedManifest, _, err := d.getReplacedManifest(ctx, false, manifest)
111 if err != nil {
112 return errors.Errorf("%v\nPlease make sure `kubectl apply` does work locally with manifest `%s`", err, manifest)
113 }
114
115 _, _ = out.Write([]byte(replacedManifest))
116 _, _ = out.Write([]byte("\n---\n"))
117 }
118
119 return nil
120}
121
122// Status prints the status of all matched manifests from kubernetes
123func (d *DeployConfig) Status(ctx devspacecontext.Context) (*deployer.StatusResult, error) {

Callers 1

TestRenderFunction · 0.95

Calls 3

getReplacedManifestMethod · 0.95
ErrorfMethod · 0.45
WriteMethod · 0.45

Tested by 1

TestRenderFunction · 0.76