Skip to content

Commit

Permalink
Initial attempt at v1.29
Browse files Browse the repository at this point in the history
Use referencing and a newer version of openapi2jsonschema
  • Loading branch information
willthames committed Dec 27, 2023
1 parent af8371c commit c65532e
Show file tree
Hide file tree
Showing 11,480 changed files with 669,196 additions and 164,188 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ license = {text = "Apache"}
dependencies = [
'PyYAML',
'jsonschema',
'typing-extensions'
'typing-extensions',
'importlib-resources',
'packaging',
'referencing'
]
dynamic = ["version", "readme"]

Expand Down
37,497 changes: 19,326 additions & 18,171 deletions src/kubernetes_validate/kubernetes-json-schema/v1.20.0-local-strict/_definitions.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "Affinity is a group of affinity scheduling rules.",
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Affinity"
"description": "Affinity is a group of affinity scheduling rules.",
"properties": {
"nodeAffinity": {
"$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAffinity",
"description": "Describes node affinity scheduling rules for the pod."
},
"podAffinity": {
"$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinity",
"description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))."
},
"podAntiAffinity": {
"$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAntiAffinity",
"description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))."
}
},
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"$id": "https://kubernetes.io/api/affinity/v1"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"$ref": "_definitions.json#/definitions/io.k8s.api.rbac.v1.AggregationRule"
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"properties": {
"clusterRoleSelectors": {
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
"items": {
"$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
},
"type": [
"array",
"null"
]
}
},
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"$id": "https://kubernetes.io/api/aggregationrule/rbac/v1"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"$ref": "_definitions.json#/definitions/io.k8s.api.rbac.v1alpha1.AggregationRule"
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"properties": {
"clusterRoleSelectors": {
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
"items": {
"$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
},
"type": [
"array",
"null"
]
}
},
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"$id": "https://kubernetes.io/api/aggregationrule/rbac/v1alpha1"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"$ref": "_definitions.json#/definitions/io.k8s.api.rbac.v1beta1.AggregationRule"
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"properties": {
"clusterRoleSelectors": {
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
"items": {
"$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
},
"type": [
"array",
"null"
]
}
},
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"$id": "https://kubernetes.io/api/aggregationrule/rbac/v1beta1"
}
Loading

0 comments on commit c65532e

Please sign in to comment.