frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Validate schema between CRD versions and detect breaking changes

https://github.com/Skarlso/crd-to-sample-yaml/releases/tag/v1.2.0
1•skarlso•3h ago

Comments

skarlso•3h ago
Hello everyone!

My project [crd-to-sample-yaml](https://github.com/Skarlso/crd-to-sample-yaml) just got a neat new feature. It's validation of schemas between versions for a CRD. What the heck do I mean here?

TL;DR: Things like modifying required fields, removing existing fields, increasing minimum etc, all cause breaking changes between versions. That's what this can detect and show.

Longer:

So the project already had a testing feature like helm, but it wasn't this direct. And this command now can more easily be integrated as a CLI checker for between specific versions. Something like this:

``` cty validate schema -c path/to/crd.yaml --from v1alpha1 --to v1beta1 --fail-on-breaking ```

And it, of course, works with all the providers that it supports ( github, url, oci, files, folders... ).

The output is something like this:

``` Schema Validation Report =======================

CRD: TestResource From Version: v1alpha1 To Version: v1beta1

Summary: Total Changes: 5 Breaking Changes: 2 Additions: 2 Removals: 0

Changes: [breaking] spec.required: Field 'version' is now required + [addition] spec.properties.version: Property 'version' added [breaking] spec.properties.count.minimum: Minimum increased Old: 1 New: 5 ```

Or JSON, or YAML for further processing or putting the output into a Release Note.

I hope this is useful, it was very interesting to write it at least. :)

Enjoy it here [v1.2.0 release page](https://github.com/Skarlso/crd-to-sample-yaml/releases/tag/v...) and there is more documentation in [Schema validation doc](https://github.com/Skarlso/crd-to-sample-yaml/blob/main/SCHE...).

Thanks!

N8n Templates Library

https://n8ntemplates.vercel.app/
1•rajc111•34s ago•1 comments

FedEx Tumbles on Disappointing Guidance

https://sherwood.news/markets/fedex-earnings-2025-q4/
1•mooreds•45s ago•0 comments

AI Coding Assistants and the Case for More Open APIs

https://somic.substack.com/p/ai-coding-assistants-and-the-case
1•somic•1m ago•0 comments

Bezos and Blue Origin Try to Capitalize on Trump-Musk Split

https://www.wsj.com/business/jeff-bezos-trump-blue-origin-9f5ac75b
1•bundie•3m ago•0 comments

Ask HN: Opinions on latest crop of "nootropic" compounds – TrkB agonist etc.?

1•fnord77•5m ago•0 comments

Atari 2600 digital photo frame

https://www.raspberrypi.com/news/atari-2600-digital-photo-frame/
1•Brajeshwar•6m ago•0 comments

James Webb Space Telescope has discovered its first exoplanet (with pictures)

https://www.space.com/astronomy/exoplanets/the-james-webb-space-telescope-has-discovered-its-1st-exoplanet-and-snapped-its-picture-image
1•Brajeshwar•6m ago•0 comments

Show HN: Clip All King Soopers and Other Kroger Stores' Digital Coupons

https://github.com/DavidZirinsky/Coupon-Clipper
1•dudeWithAMood•7m ago•0 comments

NeuroCode – Brain-Inspired AI for Code Understanding

https://github.com/FalahMsi/neurocode
1•FalahDev•8m ago•1 comments

The SmartNIC revolution fell flat, but AI might change that

https://www.theregister.com/2025/06/26/will_ai_save_dpus/
2•rntn•8m ago•0 comments

Facebook will take down our app because we don't install antivirus on macOS

https://twitter.com/kvz/status/1938223048777220123
1•kvz•9m ago•1 comments

Reviled Pest Is the Unsung Hero of Every Major City in the World

https://www.nytimes.com/2025/06/24/magazine/pigeons-city-nature.html
1•reaperducer•9m ago•0 comments

Auth for business software isn't that similar to auth for consumer software

https://tesseral.com/blog/b2b-auth-isnt-that-similar-to-b2c-auth
1•noleary•12m ago•0 comments

Network Capabilities in Surreal Cloud

https://surrealdb.com/blog/introducing-network-capabilities-in-surreal-cloud
3•datastorydesign•13m ago•0 comments

Pro Codes Act–Or, What If the Law Came Behind a Paywall?

https://www.forbes.com/sites/andrewleahey/2025/06/26/pro-codes-act-or-what-if-the-law-came-behind-a-paywall/
1•tldrthelaw•15m ago•0 comments

A Nobel Prize winner decodes why people aren't having kids

https://www.washingtonpost.com/opinions/2025/02/18/fertility-decline-women-kids-claudia-goldin/
3•keepamovin•19m ago•1 comments

A world where subscriptions don't suck

https://nuggetize.com/blog/smart-subscriptions
2•mattvr•20m ago•0 comments

A Review of Aerospike Nozzles: Current Trends in Aerospace Applications

https://www.mdpi.com/2226-4310/12/6/519
9•PaulHoule•20m ago•0 comments

FLUX.1 Kontext [Dev] – Open Weights for Image Editing

https://bfl.ai/announcements/flux-1-kontext-dev
9•minimaxir•21m ago•2 comments

Cross-Compiling 10k Rust CLI Crates Statically

https://blog.pkgforge.dev/cross-compiling-10000-rust-cli-crates-statically
3•todsacerdoti•22m ago•0 comments

Introduction to embedded development with Rust: Overview of the ecosystem

https://kerkour.com/introduction-to-embedded-development-with-rust
1•unsolved73•22m ago•0 comments

Field Guide to the North American Weigh Station

https://hackaday.com/2025/06/26/field-guide-to-the-north-american-weigh-station/
2•zdw•23m ago•1 comments

Log-Survival to Death Rate

https://entropicthoughts.com/log-survival-to-death-rate
1•kqr•24m ago•0 comments

FLUX Kontext Dev Ultra Fast Live

https://huggingface.co/spaces/wavespeed/FLUX-Kontext-Dev-Ultra-Fast
2•chengzeyi•24m ago•1 comments

Show HN: Personal Branding Photos for Women in 10 mins

https://www.gostudio.ai/?fp_ref=10654
2•gostudio_ai•28m ago•0 comments

Tennis Scorigami

https://www.tennis-scorigami.com/
2•jlarks32•28m ago•0 comments

Young People Face a Hiring Crisis. AI Is Making It Worse

https://derekthompson.substack.com/p/young-people-face-a-hiring-crisis
7•herbertl•28m ago•0 comments

KDE Plasma 6.4 review – A worrying trend

https://www.dedoimedo.com/computers/plasma-6-4-review.html
4•jandeboevrie•29m ago•0 comments

Ask HN: How can I promote my Free Startup Mentoring?

2•riley-i•31m ago•2 comments

My favorite account is a library in Ohio

https://www.milkkarten.net/p/columbus-metropolitan-library-social-media
2•herbertl•32m ago•0 comments