Skip to content

Commit

Permalink
Merge pull request #2700 from fluxcd/fix-bootstrap-fs
Browse files Browse the repository at this point in the history
MacOS: fix bootstrap manifest generation
  • Loading branch information
stefanprodan committed May 4, 2022
2 parents ab00e34 + b9fbdfc commit 4dd20af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/manifestgen/install/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"path/filepath"
"strings"

"github.com/fluxcd/pkg/kustomize/filesys"
"github.com/fluxcd/pkg/untar"

"github.com/fluxcd/flux2/pkg/manifestgen/kustomization"
Expand Down Expand Up @@ -126,12 +125,7 @@ func build(base, output string) error {
return err
}

outputBase := filepath.Dir(strings.TrimSuffix(output, string(filepath.Separator)))
fs, err := filesys.MakeFsOnDiskSecure(outputBase)
if err != nil {
return err
}
if err = fs.WriteFile(output, resources); err != nil {
if err = os.WriteFile(output, resources, 0o640); err != nil {
return err
}

Expand Down

0 comments on commit 4dd20af

Please sign in to comment.