Skip to content

Commit da50834

Browse files
authored
use same permissions for released cluster-stacks (#80)
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]>
1 parent 12ba110 commit da50834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func (c *CreateOptions) generateRelease() error {
211211
return fmt.Errorf("failed to read cluster-addon-values.yaml: %w", err)
212212
}
213213

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

0 commit comments

Comments
 (0)