From c6f9276f9bca80b04f1afddcb8590796d63165e2 Mon Sep 17 00:00:00 2001 From: jellyabd Date: Tue, 28 Mar 2023 14:24:13 +0800 Subject: [PATCH 1/5] Add files via upload --- queue.yaml | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 queue.yaml diff --git a/queue.yaml b/queue.yaml new file mode 100644 index 0000000000..853ff82094 --- /dev/null +++ b/queue.yaml @@ -0,0 +1,144 @@ + +--- +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: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + 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 From 50e4b0a4cc8d4aac18f59f8771b2755b2fefaec3 Mon Sep 17 00:00:00 2001 From: jellyabd Date: Tue, 28 Mar 2023 14:46:42 +0800 Subject: [PATCH 2/5] Add files via upload --- queue.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/queue.yaml b/queue.yaml index 853ff82094..a929ebd3d9 100644 --- a/queue.yaml +++ b/queue.yaml @@ -24,9 +24,6 @@ spec: openAPIV3Schema: description: Queue is a queue of PodGroup. properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string @@ -101,8 +98,7 @@ spec: format: int32 type: integer reservation: - description: Reservation is the profile of resource reservation for - queue + description: Reservation is the profile of resource reservation for queue properties: nodes: description: Nodes are Locked nodes for queue From 4723a9868db3450c3376cbfed6a508e88344d6d4 Mon Sep 17 00:00:00 2001 From: jellyabd Date: Tue, 28 Mar 2023 15:00:37 +0800 Subject: [PATCH 3/5] Add files via upload From 22a9a3f92ed572cba1f00ff5d110b97681774d27 Mon Sep 17 00:00:00 2001 From: jellyabd Date: Tue, 28 Mar 2023 15:01:15 +0800 Subject: [PATCH 4/5] Add files via upload --- queue.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/queue.yaml b/queue.yaml index a929ebd3d9..1a934ad149 100644 --- a/queue.yaml +++ b/queue.yaml @@ -24,11 +24,6 @@ spec: openAPIV3Schema: description: Queue is a queue of PodGroup. properties: - kind: - description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object 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: From 936924b131bb2fcbab0098926438f9b913274fe2 Mon Sep 17 00:00:00 2001 From: jellyabd Date: Tue, 28 Mar 2023 20:07:03 +0800 Subject: [PATCH 5/5] Add files via upload --- tomodel.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 tomodel.yaml 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