Skip to content

Commit

Permalink
Update values.schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhprasad-sap committed Apr 12, 2024
1 parent ccd71ed commit f150f93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
10 changes: 1 addition & 9 deletions files/chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1489,15 +1489,7 @@
},
"Quantity": {
"additionalProperties": false,
"properties": {
"Format": {
"type": "string"
}
},
"required": [
"Format"
],
"type": "object"
"type": "string"
},
"QuobyteVolumeSource": {
"additionalProperties": false,
Expand Down
6 changes: 6 additions & 0 deletions hack/schema-generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ func updateProperties(data []byte) []byte {
rawExt["additionalProperties"] = true
m["$defs"].(map[string]interface{})["RawExtension"] = rawExt

quantity := m["$defs"].(map[string]interface{})["Quantity"].(map[string]interface{})
quantity["type"] = "string"
delete(quantity,"properties")
delete(quantity,"required")
m["$defs"].(map[string]interface{})["Quantity"] = quantity

serviceBindingSpec := m["$defs"].(map[string]interface{})["serviceBindingExt"].(map[string]interface{})
serviceBindingSpec["required"] = []string{"name", "serviceInstanceName", "secretName"}

Expand Down
10 changes: 1 addition & 9 deletions test/files/expectedChart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1489,15 +1489,7 @@
},
"Quantity": {
"additionalProperties": false,
"properties": {
"Format": {
"type": "string"
}
},
"required": [
"Format"
],
"type": "object"
"type": "string"
},
"QuobyteVolumeSource": {
"additionalProperties": false,
Expand Down

0 comments on commit f150f93

Please sign in to comment.