Skip to content
Snippets Groups Projects
Unverified Commit 4dd20af7 authored by Stefan Prodan's avatar Stefan Prodan Committed by GitHub
Browse files

Merge pull request #2700 from fluxcd/fix-bootstrap-fs

MacOS: fix bootstrap manifest generation
parents ab00e348 b9fbdfc9
No related merge requests found
...@@ -26,7 +26,6 @@ import ( ...@@ -26,7 +26,6 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/fluxcd/pkg/kustomize/filesys"
"github.com/fluxcd/pkg/untar" "github.com/fluxcd/pkg/untar"
"github.com/fluxcd/flux2/pkg/manifestgen/kustomization" "github.com/fluxcd/flux2/pkg/manifestgen/kustomization"
...@@ -126,12 +125,7 @@ func build(base, output string) error { ...@@ -126,12 +125,7 @@ func build(base, output string) error {
return err return err
} }
outputBase := filepath.Dir(strings.TrimSuffix(output, string(filepath.Separator))) if err = os.WriteFile(output, resources, 0o640); err != nil {
fs, err := filesys.MakeFsOnDiskSecure(outputBase)
if err != nil {
return err
}
if err = fs.WriteFile(output, resources); err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment