Skip to content

Commit 0e6a539

Browse files
committed
returned meshkit error in ApplyHelmChart
Signed-off-by: reaper8055 <11490705+reaper8055@users.noreply.github.com>
1 parent 872a658 commit 0e6a539

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

utils/kubernetes/apply-helm-chart.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,16 @@ const (
5656
Latest = ">0.0.0-0"
5757
)
5858

59-
// downloadLocaton is the location where downloaded helm charts
60-
// will be stored. os.TempDir will ensure that the path is cross
61-
// platform
62-
var downloadLocation = os.TempDir()
63-
6459
var (
65-
// writeKubeConfig marshals kubeconfig bytes. Kept as a variable to enable deterministic test stubs.
60+
// downloadLocaton is the location where downloaded helm charts
61+
// will be stored. os.TempDir will ensure that the path is cross
62+
// platform
63+
downloadLocation = os.TempDir()
64+
// writeKubeConfig marshals kubeconfig bytes. Kept as a variable to enable
65+
// deterministic test stubs.
6666
writeKubeConfig = clientcmd.Write
67-
// writeTempData writes byte payloads to temp files. Kept as a variable to enable deterministic test stubs.
67+
// writeTempData writes byte payloads to temp files. Kept as a variable to
68+
// enable deterministic test stubs.
6869
writeTempData = setDataAndReturnFilename
6970
)
7071

@@ -274,7 +275,7 @@ func (c *Client) ApplyHelmChart(cfg ApplyHelmChartConfig) error {
274275
kubeConfig, cleanup, err := c.setupKubeConfig()
275276
if err != nil {
276277
cleanup()
277-
return err
278+
return ErrApplyHelmChart(err)
278279
}
279280
actionConfig, err := c.createHelmActionConfig(cfg, kubeConfig)
280281
if err != nil {

0 commit comments

Comments
 (0)