Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upupdate docs for 3.0.0 #788
Conversation
This comment has been minimized.
This comment has been minimized.
|
Partially addresses #705. Still needs updates to the config spec documentation for what fields are used as IDs and which are immune to duplicate merging. |
|
|
||
| Since files, directories, and links all describe filesystem entries can can conflict, these lists are deduplicated across each other. This means a file in child config can replace a link in the parent, or a directory in a child config can replace a file in the parent. | ||
|
|
||
| ### Configs are merged in a depth first traversal |
This comment has been minimized.
This comment has been minimized.
jlebon
Apr 11, 2019
Member
How about just "Configs are merged in the order they appear"? Seems clearer than "depth first traversal".
This comment has been minimized.
This comment has been minimized.
ajeddeloh
Apr 11, 2019
Author
Contributor
That's more ambiguous. Consider if config A merged B and C, but B merges D and E. The final config looks like:
Final =
M(
M(
A,
M(
M(B, D),
E
)
)
C)
Basically "order they appear" isn't well defined.
This comment has been minimized.
This comment has been minimized.
|
Updated except for the DFS part. I agree its clunky, but I'd rather have that be more exact than less clunky. Will mull over a better way to word it. Edit: kept the DFS title, but made the explanation clearer. |
|
Haven't directly checked that all the nits have been addressed, but I trust you and GitHub's (On that topic, I like GitHub's new interdiff thing, though rebases make it hard to tell what really changed. In contrast, Homu's autosquash feature lets you have |
| @@ -1,6 +1,6 @@ | |||
| # Development | |||
|
|
|||
| A Go 1.7+ [environment](https://golang.org/doc/install) and the `blkid.h` headers are required. | |||
| A Go 1.11+ [environment](https://golang.org/doc/install) and the `blkid.h` headers are required. Using go 1.10 may work, but isn't directly supported since it does not support go modules. | |||
This comment has been minimized.
This comment has been minimized.
arithx
Apr 12, 2019
Contributor
Should we directly call out go versions 1.9.7+ & 1.10.3+ specifically as potentially working as they have minimal module compatability? (https://github.com/golang/go/wiki/Modules#how-are-v2-modules-treated-in-a-build-if-modules-support-is-not-enabled-how-does-minimal-module-compatibility-work-in-197-1103-and-111)
This comment has been minimized.
This comment has been minimized.
ajeddeloh
Apr 12, 2019
Author
Contributor
I think we actually need 1.10 for other reasons, don't remember what explicitly.
This comment has been minimized.
This comment has been minimized.
ajeddeloh
Apr 12, 2019
Author
Contributor
8fff753#diff-354f30a63fb0907d4ad57269548329e3 Is where we bumped it previously. Unfortunately, not much context there.
This comment has been minimized.
This comment has been minimized.
arithx
Apr 12, 2019
Contributor
iirc we bumped it to those versions to have the two most recent go releases supported, not for a compat reason.
| @@ -114,11 +110,11 @@ Create a new [release checklist](https://github.com/coreos/ignition/issues/new?l | |||
|
|
|||
| ## Marking an experimental spec as stable | |||
|
|
|||
| When an experimental version of the Ignition config spec (e.g.: `2.3.0-experimental`) is to be declared stable (e.g. `2.3.0`), there are a handful of changes that must be made to the code base. These changes should have the following effects: | |||
| When an experimental version of the Ignition config spec (e.g.: `3.1.0-experimental`) is to be declared stable (e.g. `3.1.0`), there are a handful of changes that must be made to the code base. These changes should have the following effects: | |||
This comment has been minimized.
This comment has been minimized.
arithx
Apr 12, 2019
Contributor
Should we switch to generics for version numbers (e.x. X.Y.0-experimental) here like we do in other sections?
This comment has been minimized.
This comment has been minimized.
ajeddeloh
Apr 12, 2019
Author
Contributor
I think this is OK. This section is an overview while the following sections are specific instructions.
This comment has been minimized.
This comment has been minimized.
arithx
Apr 12, 2019
Contributor
My line of thinking was that we wouldn't need to update the text again if we ended up making another major version bump in the future. Either way I don't think it's a major issue either way and am ok with whichever you choose.
ba74a2d
to
79c1bfd
This comment has been minimized.
This comment has been minimized.
|
Fixed the link |
Replace old configs with their equivalents in spec 3.0.0. Reword explainers to be correct.
|
LGTM with a couple nits. |
Drop bits that only apply to spec 2.x.y.
This doc needs more love, but this should be enough to make it at least correct.
Now that spec 3.0.0 is stable and the docs are updated, turn on config checking in the docs.
Rename the doc to correctly match the version. This was an oversight originally.
ajeddeloh commentedApr 8, 2019
Very rough right now, not worth reviewing yet.