Skip to content
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

redpanda: assert backwards compat guarantees #1236

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chrisseto
Copy link
Contributor

@chrisseto chrisseto commented Apr 19, 2024

161aa66 redpanda: assert backwards compat guarantees

This commit utilizes valuesutil.Generate to assert the backwards
compatibility guarantees of the redpanda chart's values.schema.json
across all minor versions start with the 5.6.x series.

The guarantee is both documented and enforced by
TestSchemaBackwardCompat test.

@chrisseto chrisseto self-assigned this Apr 19, 2024
Base automatically changed from chris/jsonschema-fuzzing to main April 22, 2024 14:41
@chrisseto chrisseto force-pushed the chris/fuzz-redpanda branch from 4d6396f to 161aa66 Compare April 23, 2024 19:50
@chrisseto chrisseto marked this pull request as ready for review April 23, 2024 19:52
Enabled *bool `json:"enabled" jsonschema:"required"`
Certs *TLSCertMap `json:"certs"`
Enabled *bool `json:"enabled" jsonschema:"required"`
Certs TLSCertMap `json:"certs"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is not a pointer, should the jsonschema be set to required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Fixed.

Copy link
Contributor

@RafalKorepta RafalKorepta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chrisseto chrisseto force-pushed the chris/fuzz-redpanda branch 2 times, most recently from 85a9e82 to 255f730 Compare April 24, 2024 20:37
@chrisseto chrisseto enabled auto-merge (rebase) April 24, 2024 20:37
@chrisseto chrisseto force-pushed the chris/fuzz-redpanda branch 2 times, most recently from 6c07a96 to fa56782 Compare April 25, 2024 15:28
This commit utilizes `valuesutil.Generate` to assert the backwards
compatibility guarantees of the redpanda chart's values.schema.json
across all minor versions start with the 5.6.x series.

The guarantee is both documented and enforced by
`TestSchemaBackwardCompat` test.
@chrisseto chrisseto force-pushed the chris/fuzz-redpanda branch from fa56782 to ce09ab0 Compare April 26, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants