garethr / openshift-json-schema Goto Github PK
View Code? Open in Web Editor NEWA set of JSON schemas for various OpenShift versions, extracted from the OpenAPI definitions
License: Other
A set of JSON schemas for various OpenShift versions, extracted from the OpenAPI definitions
License: Other
Currently imagePullPolicy is just:
"imagePullPolicy": {
"type": "string",
"description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images"
}
But should have enum for always, never, and IfNotPresent
Even though, in OC 3.11, the ingress resource is housed under v1beta1, if I pass an ingress under networking api, kubeval says it's valid.
https://docs.openshift.com/container-platform/3.11/rest_api/apis-extensions/v1beta1.Ingress.html
RedHat update (fixes) the OpenAPI spec for openshift 3.11
Fields like route.spec are not required anymore..
like #6 but status is also optional.
it says so in the description:
"com.github.openshift.api.route.v1.RouteSpec": {
"description": "RouteSpec describes the hostname or path the route exposes, .....",
"required": [
"host",
"to"
],
"properties": {
"alternateBackends": {
"description": "alternateBackends allows up to 3 additional backends to be assigned to the route. Only the Service kind is allowed, and it will be defaulted to Service. Use the weight field in RouteTargetReference object to specify relative preference.",
"type": "array",
"items": {
"$ref": "#/definitions/com.github.openshift.api.route.v1.RouteTargetReference"
}
},
"host": {
"description": "host is an alias/DNS that points to the service. Optional. ......"
//...
similarly, status cannot be required when sending from the client --- in fact it should probably be null, because it is reserved from communication from the server to the client.
by listing both as required, it is not possible to construct both a schematically and semantically valid object. (they are a bit mutually exclusive in my understanding)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.