Commit a8ba005a authored by walkafwalka's avatar walkafwalka
Browse files

Add umask before tarball creation


Signed-off-by: default avatarwalkafwalka <2865898-walkafwalka@users.noreply.gitlab.com>
Showing with 3 additions and 0 deletions
+3 -0
...@@ -25,6 +25,7 @@ import ( ...@@ -25,6 +25,7 @@ import (
"k8s.io/helm/pkg/helm/helmpath" "k8s.io/helm/pkg/helm/helmpath"
"os" "os"
"path/filepath" "path/filepath"
"syscall"
"testing" "testing"
) )
...@@ -213,6 +214,8 @@ func TestExtract(t *testing.T) { ...@@ -213,6 +214,8 @@ func TestExtract(t *testing.T) {
//{"README.md", "so you know what's upp"}, //{"README.md", "so you know what's upp"},
//{"script.sh", "echo script"}, //{"script.sh", "echo script"},
syscall.Umask(0000)
var tarbuf bytes.Buffer var tarbuf bytes.Buffer
tw := tar.NewWriter(&tarbuf) tw := tar.NewWriter(&tarbuf)
var files = []struct { var files = []struct {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment