Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Render filemodes properly#1050

Merged
laverya merged 5 commits intoreplicatedhq:masterfrom
laverya:render-filemodes-properly
Aug 26, 2019
Merged

Render filemodes properly#1050
laverya merged 5 commits intoreplicatedhq:masterfrom
laverya:render-filemodes-properly

Conversation

@laverya
Copy link
Member

@laverya laverya commented Aug 26, 2019

What I Did

File modes for the inline asset type (and those that rely on it, such as the various terraform assets) are set with chmod after writing to avoid umask issues. Fixes #1014, along with docs fixes

How I Did it

After writing the file, run chmod to ensure the correct mode is set.

How to verify it

Unit tests have been added.

Description for the Changelog

File modes are set properly on rendered inline assets regardless of umask values.

Picture of a Ship (not required but encouraged)

USS L-10 (SS-50)

@laverya laverya requested a review from divolgin August 26, 2019 20:12
@laverya laverya merged commit 6f46010 into replicatedhq:master Aug 26, 2019
@laverya laverya deleted the render-filemodes-properly branch August 26, 2019 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ship.yaml inline asset file modes are not set correctly

2 participants