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

Method WriteValues

pkg/devspace/helm/generic/generic.go:49–66  ·  view source on GitHub ↗
(values map[string]interface{})

Source from the content-addressed store, hash-verified

47}
48
49func (c *client) WriteValues(values map[string]interface{}) (string, error) {
50 f, err := os.CreateTemp("", "")
51 if err != nil {
52 return "", err
53 }
54 defer f.Close()
55 out, err := yaml.Marshal(values)
56 if err != nil {
57 return "", errors.Wrap(err, "marshal values")
58 }
59
60 _, err = f.Write(out)
61 if err != nil {
62 return "", err
63 }
64
65 return f.Name(), nil
66}
67
68func (c *client) Exec(ctx devspacecontext.Context, args []string) ([]byte, error) {
69 err := c.ensureHelmBinary(ctx.Context())

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.65
NameMethod · 0.65
WriteMethod · 0.45

Tested by

no test coverage detected