Comments (7)
@miabbott: Is this issue still valid?
https://github.com/coreos/ignition/blob/master/config/v3_0/schema/ignition.json
If yes, I would like to work on it.
from coreos-assembler.
@akoserwal Yes I think it is still a valid issue. I think this is a two-step problem to solve.
- Create a schema definition for both
builds.json
andmeta.json
- Create a way to validate the generated JSON files are in compliance with the schemas definitions.
Ignition has the ignition-validate
tool that can be used to validate Ignition configs; coreos-assembler
would need something similar.
from coreos-assembler.
I agree we should do this. Note the schema for builds.json
dramatically changed in #580. Notably, we also include a schema-version
key now.
from coreos-assembler.
Ignition has the ignition-validate tool that can be used to validate Ignition configs; coreos-assembler would need something similar.
This would be a nice to have, but we could probably just use some additions to the tests which we can run against PRs etc.
from coreos-assembler.
Given that I've broken COSA builds with my refactor....I would like to do this. We hg
Here's my proposal for the schema:
- the schema will be made an explicit contract which external sources can rely on
- add tests to ensure that the schema is enforced
- changing the schema will incur some friction, but changes to the schema will become INTENTIONAL.
from coreos-assembler.
coreos/mantle#1165 is intended to do validation too; not the same as a schema, but using a statically typed programming language to parse it makes API changes very explicit.
from coreos-assembler.
This was done.
from coreos-assembler.
Related Issues (20)
- How to build a PXE Image with Dockerfile layering HOT 1
- `coreos.unique.boot.failure` kola test fails on aarch64
- `coreos.ignition.failure` sometimes fails on RHCOS HOT 15
- Create disk failed due to incorrect option format on Fedora 39 HOT 1
- build-arch jobs failing with "Error: unmarshalling error into &errorhandling.ErrorModel"
- cosa build error: "cli: stat /var/tmp/mantle-qemu771203327/swtpm-sock: no such file or directory" HOT 4
- [RFE] kola should support to start previous build to do external tests HOT 4
- OSBuild without compression yields GRUB failures HOT 25
- what is the difference between dasd and metal4k on s390x? HOT 9
- Kola Custom Test HOT 10
- `buildextend-virtualbox` and `buildextend-vmware` improperly handle raw disks >=8GB HOT 6
- `kola testiso` tests should check for badness in console/journal output HOT 5
- rework iscsi tests architecture HOT 2
- osbuild should use a buildroot that matches the target system HOT 6
- kola qemuexec fails on PXE with `uefi-secure` qemu-firmware HOT 2
- cosa run should't expect an image when `--netboot` is present
- 4K UEFI PXE tests failing HOT 2
- Docs: Using the provided alias with `COREOS_ASSEMBLER_CONFIG_GIT` leave FS with dangling files HOT 2
- Check that there is console output / a login prompt to make sure getty works HOT 2
- Fail test on SELinux denials and export audit.log if any found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coreos-assembler.