Skip to content

Commit

Permalink
use same permissions for released cluster-stacks
Browse files Browse the repository at this point in the history
we were having 0755 permissions for one file
which was cluster-addon-values.yaml and this
commit updates it so that we have the same
permissions for all the files in release assets.

Signed-off-by: kranurag7 <[email protected]>
  • Loading branch information
kranurag7 committed Feb 23, 2024
1 parent e9e6d3d commit 001a9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (c *CreateOptions) generateRelease() error {
return fmt.Errorf("failed to read cluster-addon-values.yaml: %w", err)
}

if err := os.WriteFile(filepath.Join(c.ClusterStackReleaseDir, "cluster-addon-values.yaml"), clusterAddonData, os.ModePerm); err != nil {
if err := os.WriteFile(filepath.Join(c.ClusterStackReleaseDir, "cluster-addon-values.yaml"), clusterAddonData, os.FileMode(0o644)); err != nil {
return fmt.Errorf("failed to write cluster-addon-values.yaml: %w", err)
}

Expand Down

0 comments on commit 001a9d0

Please sign in to comment.