Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config/*: drop warning on unset file/dir mode #978

Merged
merged 1 commit into from
May 14, 2020
Merged

config/*: drop warning on unset file/dir mode #978

merged 1 commit into from
May 14, 2020

Conversation

bgilbert
Copy link
Contributor

The warning was originally added in #493 because Ignition spec 2 defaulted to mode 0000, which was certainly not what the user wanted. However, spec 3 defaults to 0755 for dirs and 0644 for files, and is documented as such. It's therefore reasonable for the user to omit those fields, and by issuing the warnings we're encouraging the user to write unnecessarily verbose Ignition configs (or FCCs).

The warning was originally added in 424f37b because Ignition spec 2
defaulted to mode 0000, which was certainly not what the user wanted.
However, spec 3 defaults to 0755 for dirs and 0644 for files, and is
documented as such.  It's therefore reasonable for the user to omit those
fields, and by issuing the warnings we're encouraging the user to write
unnecessarily verbose Ignition configs (or FCCs).
@bgilbert bgilbert merged commit 21207e1 into coreos:master May 14, 2020
@bgilbert bgilbert deleted the mode-warnings branch May 14, 2020 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants