Skip to content

Commit e9352a6

Browse files
(chore): Add JSONSchema validation for bundle configuration
- Validates bundle configuration based on supported install modes. - Only bundles with AllNamespaces support can skip watchNamespace config. - This prevents unexpected behavior when bundles add new install modes. Assisted-by: Cursor
1 parent b3f85d5 commit e9352a6

File tree

4 files changed

+549
-62
lines changed

4 files changed

+549
-62
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require (
2323
github.com/operator-framework/operator-registry v1.60.0
2424
github.com/prometheus/client_golang v1.23.2
2525
github.com/prometheus/common v0.67.2
26+
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
2627
github.com/spf13/cobra v1.10.1
2728
github.com/spf13/pflag v1.0.10
2829
github.com/stretchr/testify v1.11.1
@@ -191,7 +192,6 @@ require (
191192
github.com/rivo/uniseg v0.4.7 // indirect
192193
github.com/rubenv/sql-migrate v1.8.0 // indirect
193194
github.com/russross/blackfriday/v2 v2.1.0 // indirect
194-
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
195195
github.com/secure-systems-lab/go-securesystemslib v0.9.1 // indirect
196196
github.com/shopspring/decimal v1.4.0 // indirect
197197
github.com/sigstore/fulcio v1.7.1 // indirect

0 commit comments

Comments
 (0)