diff --git a/queue.yaml b/queue.yaml new file mode 100644 index 0000000000..1a934ad149 --- /dev/null +++ b/queue.yaml @@ -0,0 +1,135 @@ + +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.6.0 + creationTimestamp: null + name: queues.scheduling.volcano.sh +spec: + group: scheduling.volcano.sh + names: + kind: Queue + listKind: QueueList + plural: queues + shortNames: + - q + - queue-v1beta1 + singular: queue + scope: Cluster + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + description: Queue is a queue of PodGroup. + properties: + spec: + description: 'Specification of the desired behavior of the queue. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status' + properties: + capability: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) pairs. + type: object + extendClusters: + description: extendCluster indicate the jobs in this Queue will be dispatched to these clusters. + items: + description: CluterSpec represents the template of Cluster + properties: + capacity: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) pairs. + type: object + name: + type: string + weight: + format: int32 + type: integer + type: object + type: array + guarantee: + description: Guarantee indicate configuration about resource reservation + properties: + resource: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: The amount of cluster resource reserved for queue. Just set either `percentage` or `resource` + type: object + type: object + reclaimable: + description: Reclaimable indicate whether the queue can be reclaimed by other queue + type: boolean + weight: + format: int32 + type: integer + type: object + status: + description: The status of queue. + properties: + completed: + description: The number of `Completed` PodGroup in this queue. + format: int32 + type: integer + inqueue: + description: The number of `Inqueue` PodGroup in this queue. + format: int32 + type: integer + pending: + description: The number of 'Pending' PodGroup in this queue. + format: int32 + type: integer + reservation: + description: Reservation is the profile of resource reservation for queue + properties: + nodes: + description: Nodes are Locked nodes for queue + items: + type: string + type: array + resource: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: Resource is a list of total idle resource in locked nodes. + type: object + type: object + running: + description: The number of 'Running' PodGroup in this queue. + format: int32 + type: integer + state: + description: State is state of queue + type: string + unknown: + description: The number of 'Unknown' PodGroup in this queue. + format: int32 + type: integer + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] \ No newline at end of file diff --git a/tomodel.yaml b/tomodel.yaml new file mode 100644 index 0000000000..1a1c0e0e71 --- /dev/null +++ b/tomodel.yaml @@ -0,0 +1,47 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.4.1 + creationTimestamp: null + name: newkinds.my.group.com +spec: + group: my.group.com + names: + kind: NewKind + listKind: NewKindList + plural: newkinds + singular: newkind + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + description: NewKind is the Schema for the NewKind API + properties: + apiVersion: + description: 'desc' + type: string + kind: + description: 'desc' + type: string + metadata: + type: object + spec: + description: NewKind defines the desired state of NewKind + properties: + key: + description: key value which generated using a hash method + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] \ No newline at end of file