Skip to content

Commit

Permalink
./hack/update-all.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LionelJouin committed Sep 6, 2024
1 parent 8146f42 commit d45448c
Show file tree
Hide file tree
Showing 17 changed files with 1,936 additions and 213 deletions.
77 changes: 77 additions & 0 deletions api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 147 additions & 0 deletions api/openapi-spec/v3/apis__resource.k8s.io__v1alpha3_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,68 @@
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.resource.v1alpha3.AllocatedDeviceStatus": {
"description": "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.",
"properties": {
"conditions": {
"description": "Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Condition"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"device": {
"default": "",
"description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.",
"type": "string"
},
"deviceInfo": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.runtime.RawExtension"
}
],
"description": "DeviceInfo contains Arbitrary driver-specific data."
},
"driver": {
"default": "",
"description": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.",
"type": "string"
},
"networkDeviceInfo": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.resource.v1alpha3.NetworkDeviceInfo"
}
],
"default": {},
"description": "NetworkDeviceInfo contains network-related information specific to the device."
},
"pool": {
"default": "",
"description": "This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.",
"type": "string"
},
"request": {
"default": "",
"description": "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.",
"type": "string"
}
},
"required": [
"request",
"driver",
"pool",
"device"
],
"type": "object"
},
"io.k8s.api.resource.v1alpha3.AllocationResult": {
"description": "AllocationResult contains attributes of an allocated resource.",
"properties": {
Expand Down Expand Up @@ -581,6 +643,28 @@
},
"type": "object"
},
"io.k8s.api.resource.v1alpha3.NetworkDeviceInfo": {
"description": "NetworkDeviceInfo provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.",
"properties": {
"interface": {
"description": "Interface specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface.",
"type": "string"
},
"ips": {
"description": "IPs lists the IP addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses.",
"items": {
"default": "",
"type": "string"
},
"type": "array"
},
"mac": {
"description": "Mac represents the MAC address of the device's network interface.",
"type": "string"
}
},
"type": "object"
},
"io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration": {
"description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.",
"properties": {
Expand Down Expand Up @@ -924,6 +1008,23 @@
"description": "Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.\n\nThis is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.",
"type": "boolean"
},
"deviceStatuses": {
"description": "DeviceStatuses contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.resource.v1alpha3.AllocatedDeviceStatus"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-map-keys": [
"devicePoolName",
"deviceName"
],
"x-kubernetes-list-type": "map"
},
"reservedFor": {
"description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.\n\nIn a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.\n\nBoth schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.",
"items": {
Expand Down Expand Up @@ -1352,6 +1453,52 @@
}
]
},
"io.k8s.apimachinery.pkg.apis.meta.v1.Condition": {
"description": "Condition contains details for one aspect of the current state of this API Resource.",
"properties": {
"lastTransitionTime": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
}
],
"description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable."
},
"message": {
"default": "",
"description": "message is a human readable message indicating details about the transition. This may be an empty string.",
"type": "string"
},
"observedGeneration": {
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.",
"format": "int64",
"type": "integer"
},
"reason": {
"default": "",
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.",
"type": "string"
},
"status": {
"default": "",
"description": "status of the condition, one of True, False, Unknown.",
"type": "string"
},
"type": {
"default": "",
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
"type": "string"
}
},
"required": [
"type",
"status",
"lastTransitionTime",
"reason",
"message"
],
"type": "object"
},
"io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions": {
"description": "DeleteOptions may be provided when deleting an API object.",
"properties": {
Expand Down
Loading

0 comments on commit d45448c

Please sign in to comment.