1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-07 03:47:55 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
yasminvalim
de452c404c fix: Handle unchecked error returns across the codebase and other linter issues
The linter found staticcheck and errorcheck issues.  Deferred statements now  use join  to combine any new error with an existing one, preventing error information from being lost. Other minor error checks, like for printing text  and flushing data have also been addressed.
2025-07-28 19:12:25 -03:00
Benjamin Gilbert
7814b85b5a Replace io/ioutil
It was deprecated in Go 1.16 and its functions moved elsewhere.
2022-08-09 19:04:31 -04:00
Benjamin Gilbert
2a2ebf8c8d tools/docs: notice invalid configs with stable specs
In Ignition 2.x, the Parse() function from an individual config package
doesn't chain to earlier specs, but this code still assumed it does.
As a result, all configs with stable spec versions would fail on
ErrUnknownVersion, but we wouldn't notice because we were only looking
at the report and not the error return.

Switch to the high-level chaining parse function.  Also, check for parse
errors that aren't included in the report.
2021-06-25 14:37:16 -04:00
Benjamin Gilbert
594f5d76e2 tools/docs: fix config printing on non-empty report
Remember the newlines.
2021-06-25 14:37:16 -04:00
Jonathan Lebon
8f520621ee tree: update for stable v3.3.0 and new v3.4.0-experimental 2021-06-24 10:24:02 -04:00
Benjamin Gilbert
ba296323ec *: add some missing newlines in Fprintf() calls 2021-01-14 11:47:00 -05:00
Sohan Kunkerkar
4fa454ce3a *: fix staticcheck warnings
Fixes part of https://github.com/coreos/ignition/issues/1121
2020-12-07 17:09:15 -05:00
Stephen Lowrie
5b75aac6f1 internal: update for new experimental spec 2020-09-28 23:32:07 -05:00
Timothée Ravier
63c21c7a0e test: Use alternative marker for testing ignition config examples
To improve compatibility with Jekyll Markdown support, use an different
marker to signal valid Ignition configs that should be tested in the
documentation.
2020-09-15 13:14:34 +02:00
Timothée Ravier
9a3a0b8f30 docs: Rename doc to docs for GitHub Pages support
Also update path in docs test tool.
2020-09-10 17:36:45 +02:00
Benjamin Gilbert
2efaeece19 *: update for new experimental spec
Following instructions in development.md.
2020-05-03 01:42:20 -04:00
Andrew Jeddeloh
223d2481b8 internal/util/docs: update to use new validation 2019-05-24 11:28:28 -07:00
Stephen Lowrie
bb6182a393 *: bump import path
Bumps the import path to be `github.com/coreos/ignition/v2`, this is
required to be able to import the v2 of Ignition alongside v0 in other
repositories.
2019-04-09 12:40:08 -05:00
Andrew Jeddeloh
e6ca8952d1 *: switch to using 3.1.0-experimental everywhere 2019-04-04 15:13:20 -07:00
Andrew Jeddeloh
ca84f7ee8e *: stablize spec 3.0.0
Make 3.0.0-experimental into 3.0.0.
2019-03-25 14:38:23 -07:00
Andrew Jeddeloh
380b4dc404 *: use config/ver instead of internal/config
Lets use config/version instead of copying that to internal/config and
translating to it. This allow us to define extra functions on the types
for use by the internal code. This enable us to define functions
describing the "primary key" of all list entries in the config.
2019-03-15 14:24:16 -07:00
Euan Kemp
2699886b1b config/errors: move under 'shared'
Since more than just errors are shared between multiple config versions,
let's collect all the things under 'shared'
2018-03-20 00:02:56 -07:00
Derek Gonyeo
3c9dab9274 internal: docs checker fix for new package location
Change the docs checker's config path changed to internal/config, use
config/errors for ErrDeprecated.
2018-03-08 16:03:11 -08:00
Derek Gonyeo
d5e1034785 internal: delete prerelease_check.go
prerelease_check.go was used in tag_release.sh, but we no longer set the
Metadata field of the version and thus this check no longer does
anything.
2018-03-08 16:03:11 -08:00
Andrew Jeddeloh
212ce07bc3 tools/docs: change docs tool to work with ignition
Change clct's docs validator to work with Ignition. Disable validation
of snippets and ignore v1 deprecation warnings.
2018-01-23 13:19:40 -08:00
Andrew Jeddeloh
c2c6e25106 tools: add clct's docs validator
Copy verbatim so changes to it in future commits are easy to read
2018-01-23 13:19:40 -08:00
Alex Crawford
6b9270de7d util/tools: remove semver pre-release check
Ignition now ships with support for an experimental config. Because this
config is experimental, it is denoted with a semantic version
pre-release tag.
2017-02-27 14:50:09 -08:00
Alex Crawford
4a1e8353d5 *: rename src package to internal
This will prevent Ignition's implementation from being imported.
2016-03-31 17:42:22 -07:00