New ๐ŸŒŠ wave for @helm

Commit 767a4439

767a4439d179Merged

zhiliaev <[email protected]> ยท 4 years ago ยท 2 files ยท ~2 modified

Description

fix: hide values dest

Details

Commit
767a4439d179
Parent
fef2182ad5b7

pkg/release/values.gomodifiedView file

@@ -21,7 +21,7 @@
2121 // ValuesReference is used to match source values file path and temporary.
2222 type ValuesReference struct {
2323 Src string `yaml:"src"`
24- Dst string `yaml:"dst"`
24+ dst string `yaml:"dst"`
2525 Strict bool `yaml:"strict"`
2626 Render bool `yaml:"render"`
2727 }
@@ -56,7 +56,7 @@
5656 Dst string
5757 }{
5858 Src: v.Src,
59- Dst: v.Dst,
59+ Dst: v.dst,
6060 }, nil
6161 }
6262
@@ -66,8 +66,8 @@
6666
6767 // Download downloads values by source URL and places to destination path.
6868 func (v *ValuesReference) Download() error {
69- if err := helper.Download(v.Dst, v.Src); err != nil {
70- return fmt.Errorf("failed to download values %s -> %s: %w", v.Src, v.Dst, err)
69+ if err := helper.Download(v.dst, v.Src); err != nil {
70+ return fmt.Errorf("failed to download values %s -> %s: %w", v.Src, v.dst, err)
7171 }
7272
7373 return nil
@@ -75,7 +75,7 @@
7575
7676 // Get returns destination path of values.
7777 func (v *ValuesReference) Get() string {
78- return v.Dst
78+ return v.dst
7979 }
8080
8181 // SetUniq generates unique file path based on provided base directory, release uniqname and sha1 of source path.
@@ -85,7 +85,7 @@
8585 hash := h.Sum(nil)
8686 s := hex.EncodeToString(hash)
8787
88- v.Dst = filepath.Join(dir, "values", string(name), s+".yml")
88+ v.dst = filepath.Join(dir, "values", string(name), s+".yml")
8989
9090 return v
9191 }
@@ -104,7 +104,7 @@
104104
105105 v.SetUniq(dir, rel.Uniq())
106106
107- l := rel.Logger().WithField("values src", v.Src).WithField("values dst", v.Dst)
107+ l := rel.Logger().WithField("values src", v.Src).WithField("values dst", v.dst)
108108
109109 l.Trace("Building values reference")
110110
@@ -120,9 +120,9 @@
120120 }
121121
122122 if v.isURL() {
123- err = template.Tpl2yml(v.Dst, v.Dst, data, templater)
123+ err = template.Tpl2yml(v.dst, v.dst, data, templater)
124124 } else {
125- err = template.Tpl2yml(v.Src, v.Dst, data, templater)
125+ err = template.Tpl2yml(v.Src, v.dst, data, templater)
126126 }
127127
128128 if err != nil {