From 54aabc642d72cdaa6243c4f0de0b08dce4fe62b9 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 5 May 2024 19:52:41 +0200 Subject: [PATCH] Add ssl to the final image --- Containerfile | 1 + internal/helpers/helmhelper/helm.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index aa4b769..3e7fcf2 100644 --- a/Containerfile +++ b/Containerfile @@ -9,4 +9,5 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o backend FROM scratch COPY --from=0 /app/backend /app +COPY --from=0 /etc/ssl /etc/ssl ENTRYPOINT ["/app"] diff --git a/internal/helpers/helmhelper/helm.go b/internal/helpers/helmhelper/helm.go index 7613f3c..c1bf093 100644 --- a/internal/helpers/helmhelper/helm.go +++ b/internal/helpers/helmhelper/helm.go @@ -70,7 +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)