Skip to content

Commit d18ad2c

Browse files
authored
feat: Add OpenShift 4.18 schema (#160)
1 parent ba878ea commit d18ad2c

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ server:
3131
- kubernetes-1.20.2
3232
- openshift-3.11.0
3333
- openshift-4.1.0
34+
- openshift-4.18
3435
- com.coreos
3536
availableSchemas: [] # openAPI schema to validate against, i.e. to validate if rendered objects could be applied
3637
objects: # objects visible to Helm's k8s client, for example via the `lookup` function

internal/schemas/openapi-schemas/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

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

611
## Adhoc generation
712

@@ -22,4 +27,4 @@ with an addition of a "x-kubernetes-group-version-kind" to map to the API ref:
2227
"version": "v1"
2328
}
2429
]
25-
```
30+
```
846 KB
Binary file not shown.

internal/schemas/schemas_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ func TestSchemas(t *testing.T) {
1111
"kubernetes-1.20.2",
1212
"openshift-3.11.0",
1313
"openshift-4.1.0",
14+
"openshift-4.18",
1415
"com.coreos",
1516
}
1617

0 commit comments

Comments
 (0)