|
| 1 | +apiVersion: "apiextensions.k8s.io/v1" |
| 2 | +kind: "CustomResourceDefinition" |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + controller-gen.kubebuilder.io/version: "v0.17.0" |
| 6 | + name: "hypernodes.topology.volcano.sh" |
| 7 | +spec: |
| 8 | + group: "topology.volcano.sh" |
| 9 | + names: |
| 10 | + kind: "HyperNode" |
| 11 | + listKind: "HyperNodeList" |
| 12 | + plural: "hypernodes" |
| 13 | + shortNames: |
| 14 | + - "hn" |
| 15 | + singular: "hypernode" |
| 16 | + scope: "Cluster" |
| 17 | + versions: |
| 18 | + - additionalPrinterColumns: |
| 19 | + - jsonPath: ".spec.tier" |
| 20 | + name: "Tier" |
| 21 | + type: "string" |
| 22 | + - jsonPath: ".status.nodeCount" |
| 23 | + name: "NodeCount" |
| 24 | + type: "integer" |
| 25 | + - jsonPath: ".metadata.creationTimestamp" |
| 26 | + name: "Age" |
| 27 | + type: "date" |
| 28 | + name: "v1alpha1" |
| 29 | + schema: |
| 30 | + openAPIV3Schema: |
| 31 | + description: "HyperNode represents a collection of nodes sharing similar network topology or performance characteristics." |
| 32 | + properties: |
| 33 | + apiVersion: |
| 34 | + description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" |
| 35 | + type: "string" |
| 36 | + kind: |
| 37 | + description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" |
| 38 | + type: "string" |
| 39 | + metadata: |
| 40 | + type: "object" |
| 41 | + spec: |
| 42 | + description: "Spec defines the desired configuration of the HyperNode." |
| 43 | + properties: |
| 44 | + members: |
| 45 | + description: "Members defines a list of node groups or individual nodes included in the HyperNode." |
| 46 | + items: |
| 47 | + description: "MemberSpec represents a specific node or a hyperNodes in the hyperNode." |
| 48 | + properties: |
| 49 | + selector: |
| 50 | + description: "Selector defines the selection rules for this member." |
| 51 | + properties: |
| 52 | + exactMatch: |
| 53 | + description: "ExactMatch defines the exact match criteria." |
| 54 | + properties: |
| 55 | + name: |
| 56 | + description: "Name specifies the exact name of the node to match." |
| 57 | + type: "string" |
| 58 | + type: "object" |
| 59 | + labelMatch: |
| 60 | + description: "LabelMatch defines the labels match criteria (only take effect when Member Type is \"Node\")." |
| 61 | + properties: |
| 62 | + matchExpressions: |
| 63 | + description: "matchExpressions is a list of label selector requirements. The requirements are ANDed." |
| 64 | + items: |
| 65 | + description: "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values." |
| 66 | + properties: |
| 67 | + key: |
| 68 | + description: "key is the label key that the selector applies to." |
| 69 | + type: "string" |
| 70 | + operator: |
| 71 | + description: "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist." |
| 72 | + type: "string" |
| 73 | + values: |
| 74 | + description: "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch." |
| 75 | + items: |
| 76 | + type: "string" |
| 77 | + type: "array" |
| 78 | + x-kubernetes-list-type: "atomic" |
| 79 | + required: |
| 80 | + - "key" |
| 81 | + - "operator" |
| 82 | + type: "object" |
| 83 | + type: "array" |
| 84 | + x-kubernetes-list-type: "atomic" |
| 85 | + matchLabels: |
| 86 | + additionalProperties: |
| 87 | + type: "string" |
| 88 | + description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed." |
| 89 | + type: "object" |
| 90 | + type: "object" |
| 91 | + x-kubernetes-map-type: "atomic" |
| 92 | + regexMatch: |
| 93 | + description: "RegexMatch defines the regex match criteria." |
| 94 | + properties: |
| 95 | + pattern: |
| 96 | + description: "Pattern defines the regex pattern to match node names." |
| 97 | + type: "string" |
| 98 | + type: "object" |
| 99 | + type: "object" |
| 100 | + x-kubernetes-validations: |
| 101 | + - message: "Either ExactMatch or RegexMatch or LabelMatch must be specified" |
| 102 | + rule: "has(self.exactMatch) || has(self.regexMatch) || has(self.labelMatch)" |
| 103 | + - message: "Only one of ExactMatch, RegexMatch, or LabelMatch can be specified" |
| 104 | + rule: "(has(self.exactMatch) ? 1 : 0) + (has(self.regexMatch) ? 1 : 0) + (has(self.labelMatch) ? 1 : 0) <= 1" |
| 105 | + type: |
| 106 | + description: "Type specifies the member type." |
| 107 | + enum: |
| 108 | + - "Node" |
| 109 | + - "HyperNode" |
| 110 | + type: "string" |
| 111 | + required: |
| 112 | + - "type" |
| 113 | + type: "object" |
| 114 | + type: "array" |
| 115 | + tier: |
| 116 | + description: "Tier categorizes the performance level of the HyperNode." |
| 117 | + type: "integer" |
| 118 | + required: |
| 119 | + - "tier" |
| 120 | + type: "object" |
| 121 | + status: |
| 122 | + description: "Status provides the current state of the HyperNode." |
| 123 | + properties: |
| 124 | + conditions: |
| 125 | + description: "Conditions provide details about the current state of the HyperNode." |
| 126 | + items: |
| 127 | + description: "Condition contains details for one aspect of the current state of this API Resource." |
| 128 | + properties: |
| 129 | + lastTransitionTime: |
| 130 | + description: "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." |
| 131 | + format: "date-time" |
| 132 | + type: "string" |
| 133 | + message: |
| 134 | + description: "message is a human readable message indicating details about the transition.\nThis may be an empty string." |
| 135 | + maxLength: 32768 |
| 136 | + type: "string" |
| 137 | + observedGeneration: |
| 138 | + description: "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance." |
| 139 | + format: "int64" |
| 140 | + minimum: 0.0 |
| 141 | + type: "integer" |
| 142 | + reason: |
| 143 | + description: "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty." |
| 144 | + maxLength: 1024 |
| 145 | + minLength: 1 |
| 146 | + pattern: "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$" |
| 147 | + type: "string" |
| 148 | + status: |
| 149 | + description: "status of the condition, one of True, False, Unknown." |
| 150 | + enum: |
| 151 | + - "True" |
| 152 | + - "False" |
| 153 | + - "Unknown" |
| 154 | + type: "string" |
| 155 | + type: |
| 156 | + description: "type of condition in CamelCase or in foo.example.com/CamelCase." |
| 157 | + maxLength: 316 |
| 158 | + pattern: "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$" |
| 159 | + type: "string" |
| 160 | + required: |
| 161 | + - "lastTransitionTime" |
| 162 | + - "message" |
| 163 | + - "reason" |
| 164 | + - "status" |
| 165 | + - "type" |
| 166 | + type: "object" |
| 167 | + type: "array" |
| 168 | + nodeCount: |
| 169 | + description: "NodeCount is the total number of nodes currently in the HyperNode." |
| 170 | + format: "int64" |
| 171 | + minimum: 0.0 |
| 172 | + type: "integer" |
| 173 | + type: "object" |
| 174 | + type: "object" |
| 175 | + served: true |
| 176 | + storage: true |
| 177 | + subresources: |
| 178 | + status: {} |
0 commit comments