Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Hamon committed Apr 25, 2024
1 parent f82dcba commit b113e50
Show file tree
Hide file tree
Showing 68 changed files with 148 additions and 112 deletions.
7 changes: 5 additions & 2 deletions master-local/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9568,7 +9568,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": "string"
}
},
Expand Down Expand Up @@ -15386,7 +15386,7 @@
"description": "NamedResourcesFilter is used in ResourceFilterModel.",
"properties": {
"selector": {
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type in NamedResourcesAttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"type": "string"
}
},
Expand Down Expand Up @@ -16188,6 +16188,9 @@
"description": "If StructuredData is set, then it needs to be used instead of Data."
}
},
"required": [
"driverName"
],
"type": "object"
},
"io.k8s.api.resource.v1alpha2.ResourceRequest": {
Expand Down
2 changes: 1 addition & 1 deletion master-local/namedresourcesfilter-resource-v1alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "NamedResourcesFilter is used in ResourceFilterModel.",
"properties": {
"selector": {
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type in NamedResourcesAttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-local/namedresourcesfilter.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "NamedResourcesFilter is used in ResourceFilterModel.",
"properties": {
"selector": {
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type in NamedResourcesAttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-local/podresourceclaimstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-local/podresourceclaimstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
3 changes: 3 additions & 0 deletions master-local/resourcehandle-resource-v1alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"description": "If StructuredData is set, then it needs to be used instead of Data."
}
},
"required": [
"driverName"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
3 changes: 3 additions & 0 deletions master-local/resourcehandle.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"description": "If StructuredData is set, then it needs to be used instead of Data."
}
},
"required": [
"driverName"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
7 changes: 5 additions & 2 deletions master-standalone-strict/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9883,7 +9883,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": "string"
}
},
Expand Down Expand Up @@ -15890,7 +15890,7 @@
"description": "NamedResourcesFilter is used in ResourceFilterModel.",
"properties": {
"selector": {
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type in NamedResourcesAttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"type": "string"
}
},
Expand Down Expand Up @@ -16720,6 +16720,9 @@
"description": "If StructuredData is set, then it needs to be used instead of Data."
}
},
"required": [
"driverName"
],
"type": "object",
"additionalProperties": false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@
},
"driverName": {
"description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
"type": [
"string",
"null"
]
"type": "string"
},
"structuredData": {
"description": "StructuredResourceHandle is the in-tree representation of the allocation result.",
Expand Down Expand Up @@ -212,6 +209,9 @@
"additionalProperties": false
}
},
"required": [
"driverName"
],
"type": [
"object",
"null"
Expand Down
8 changes: 4 additions & 4 deletions master-standalone-strict/allocationresult.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@
},
"driverName": {
"description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
"type": [
"string",
"null"
]
"type": "string"
},
"structuredData": {
"description": "StructuredResourceHandle is the in-tree representation of the allocation result.",
Expand Down Expand Up @@ -212,6 +209,9 @@
"additionalProperties": false
}
},
"required": [
"driverName"
],
"type": [
"object",
"null"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "NamedResourcesFilter is used in ResourceFilterModel.",
"properties": {
"selector": {
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type in NamedResourcesAttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/namedresourcesfilter.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "NamedResourcesFilter is used in ResourceFilterModel.",
"properties": {
"selector": {
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"description": "Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\n\nIn addition, for each type in NamedResourcesAttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\n\n attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) &&\n attributes.stringslice[\"b\"].isSorted()",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/pod-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11880,7 +11880,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -11877,7 +11877,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/podlist-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11895,7 +11895,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/podlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -11889,7 +11889,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/podresourceclaimstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/podresourceclaimstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/podstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-standalone-strict/podstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@
"type": "string"
},
"resourceClaimName": {
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.",
"type": [
"string",
"null"
Expand Down
8 changes: 4 additions & 4 deletions master-standalone-strict/resourceclaim-resource-v1alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,7 @@
},
"driverName": {
"description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
"type": [
"string",
"null"
]
"type": "string"
},
"structuredData": {
"description": "StructuredResourceHandle is the in-tree representation of the allocation result.",
Expand Down Expand Up @@ -544,6 +541,9 @@
"additionalProperties": false
}
},
"required": [
"driverName"
],
"type": [
"object",
"null"
Expand Down
8 changes: 4 additions & 4 deletions master-standalone-strict/resourceclaim.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,7 @@
},
"driverName": {
"description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.",
"type": [
"string",
"null"
]
"type": "string"
},
"structuredData": {
"description": "StructuredResourceHandle is the in-tree representation of the allocation result.",
Expand Down Expand Up @@ -541,6 +538,9 @@
"additionalProperties": false
}
},
"required": [
"driverName"
],
"type": [
"object",
"null"
Expand Down
Loading

0 comments on commit b113e50

Please sign in to comment.