-
Notifications
You must be signed in to change notification settings - Fork 247
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
Consider adding spec fields describing the config source and generator #696
Comments
I'm in favor. Given that Ignition will just ignore this field (i.e. there is never a case where we want to alter behavior based on it) and that it's for humans only, why not just a string to put something like |
I'm pretty much of the opinion that this doesn't belong to the schema. Rationale is:
|
Ignition warns on unused fields, so that would wrongfully generate warnings. |
This sounds like a way to hack around JSON's lack of support for comments.
Or maybe that itself should be refined so it allows e.g. fields starting with underscores without warnings. Then, one can add whatever |
Hmm. that would also allow for passing data to other things in the initramfs (e.g. for package layering that gets set up on first boot, although I'm still unsure how exactly that would work). |
I'm still concerned about even slightly encouraging slipstreaming of configuration for other initramfs tools. It seems like a giant attractive nuisance. (For distro developers, not directly for users.) @jlebon's point about JSON comments rings true, though. What if we supported e.g. underscore keys but stripped them out before writing the cache file? We could always change that behavior later if desired. |
By "supported" I assume you mean "didn't warn on parsing them". I'd be in favor; it's a simple enough change to make too. |
Any reason this should have with 3.0.0 vs 3.1.0? |
It would allow FCOSCT to provide the additional metadata from day one. Other than that, no. It's also somewhat less relevant now because of #726. |
Ok, dropping the spec 3.0.0 milestone then |
Feature Request
Environment
Any
Desired Feature
Consider adding spec fields describing where a config came from: the corresponding human-readable source file and the tool used to convert it into an Ignition config.
The purpose of these fields is to assist users in determining the source of an Ignition config and what bugs may have existed in the tool used to generate it. They are explicitly not to be used by Ignition to work around bugs in generator tools.
Example spec fragment
The data model below is intentionally simplistic, e.g. it does not handle multiple source files or multiple generator tools. We could expand the model if that seems useful, but I didn't want to overdo it.
<type>-<value>
where type issha512
.The text was updated successfully, but these errors were encountered: