File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
6459var (
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 {
You can’t perform that action at this time.
0 commit comments