Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ server:
- kubernetes-1.20.2
- openshift-3.11.0
- openshift-4.1.0
- openshift-4.18
- com.coreos
availableSchemas: [] # openAPI schema to validate against, i.e. to validate if rendered objects could be applied
objects: # objects visible to Helm's k8s client, for example via the `lookup` function
Expand Down
7 changes: 6 additions & 1 deletion internal/schemas/openapi-schemas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

- OpenShift 3.11 schema source: https://github.com/garethr/openshift-json-schema/blob/master/v3.11.0/_definitions.json
- OpenShift 4.1 schema source: https://github.com/garethr/openshift-json-schema/blob/master/v4.1.0/_definitions.json
- OpenShift 4.18 schema source:
- Install openshift
- `oc get --raw /openapi/v2 | jq --sort-keys 'del(.parameters, .paths[], .security, .securityDefinitions)' > openshift-${version}.json`
- Update the `.info` in the resulting file
- `gzip -9 openshift-${version}.json`

## Adhoc generation

Expand All @@ -22,4 +27,4 @@ with an addition of a "x-kubernetes-group-version-kind" to map to the API ref:
"version": "v1"
}
]
```
```
Binary file not shown.
1 change: 1 addition & 0 deletions internal/schemas/schemas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ func TestSchemas(t *testing.T) {
"kubernetes-1.20.2",
"openshift-3.11.0",
"openshift-4.1.0",
"openshift-4.18",
"com.coreos",
}

Expand Down