From 780cecea902b1be11abdc2dc7f1c26f45e7c8d4c Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 5 May 2024 13:32:40 +0200 Subject: [PATCH] Some minor fixes --- internal/controllers/applications.go | 2 +- internal/helpers/helmhelper/helm.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/controllers/applications.go b/internal/controllers/applications.go index 100378d..0303b5b 100644 --- a/internal/controllers/applications.go +++ b/internal/controllers/applications.go @@ -70,7 +70,7 @@ func (app *Application) Create(ctx context.Context) error { RepositoryKind: "oci", RepositoryName: "softplayer", } - goPath := os.TempDir() + "softplayer" + goPath := os.TempDir() + "/softplayer" if err := os.MkdirAll(goPath, 0777); err != nil { return err } diff --git a/internal/helpers/helmhelper/helm.go b/internal/helpers/helmhelper/helm.go index 4447c52..7613f3c 100644 --- a/internal/helpers/helmhelper/helm.go +++ b/internal/helpers/helmhelper/helm.go @@ -70,6 +70,7 @@ func (h *Helm) PullChart(workdirPath string, release *ReleaseData) (path string, } client := action.NewPullWithOpts(action.WithConfig(config)) + client.InsecureSkipTLSverify = true client.Untar = true client.UntarDir = workdirPath client.SetRegistryClient(registry)