Render writes the generated manifests to the out stream
(ctx devspacecontext.Context, out io.Writer)
| 106 | |
| 107 | // Render writes the generated manifests to the out stream |
| 108 | func (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 |
| 123 | func (d *DeployConfig) Status(ctx devspacecontext.Context) (*deployer.StatusResult, error) { |