-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
9 changed files
with
3,600 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// +gotohelm:ignore=true | ||
package redpanda | ||
|
||
import ( | ||
_ "embed" | ||
"encoding/json" | ||
|
||
"github.com/invopop/jsonschema" | ||
) | ||
|
||
//go:embed values.schema.json | ||
var schemaBytes []byte | ||
|
||
func JSONSchema() *jsonschema.Schema { | ||
var s jsonschema.Schema | ||
if err := json.Unmarshal(schemaBytes, &s); err != nil { | ||
panic(err) | ||
} | ||
return &s | ||
} |
Oops, something went wrong.