You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
6.2 KiB

  1. ---
  2. apiVersion: apiextensions.k8s.io/v1
  3. kind: CustomResourceDefinition
  4. metadata:
  5. annotations:
  6. api-approved.kubernetes.io: https://github.com/kubernetes/enhancements/pull/1870
  7. controller-gen.kubebuilder.io/version: v0.11.1
  8. creationTimestamp: null
  9. name: noderesourcetopologies.topology.node.k8s.io
  10. spec:
  11. group: topology.node.k8s.io
  12. names:
  13. kind: NodeResourceTopology
  14. listKind: NodeResourceTopologyList
  15. plural: noderesourcetopologies
  16. shortNames:
  17. - node-res-topo
  18. singular: noderesourcetopology
  19. scope: Cluster
  20. versions:
  21. - name: v1alpha2
  22. schema:
  23. openAPIV3Schema:
  24. description: NodeResourceTopology describes node resources and their topology.
  25. properties:
  26. apiVersion:
  27. description: 'APIVersion defines the versioned schema of this representation
  28. of an object. Servers should convert recognized schemas to the latest
  29. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  30. type: string
  31. attributes:
  32. description: AttributeList contains an array of AttributeInfo objects.
  33. items:
  34. description: AttributeInfo contains one attribute of a Zone.
  35. properties:
  36. name:
  37. type: string
  38. value:
  39. type: string
  40. required:
  41. - name
  42. - value
  43. type: object
  44. type: array
  45. kind:
  46. description: 'Kind is a string value representing the REST resource this
  47. object represents. Servers may infer this from the endpoint the client
  48. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  49. type: string
  50. metadata:
  51. type: object
  52. topologyPolicies:
  53. description: 'DEPRECATED (to be removed in v1beta1): use top level attributes
  54. if needed'
  55. items:
  56. type: string
  57. type: array
  58. zones:
  59. description: ZoneList contains an array of Zone objects.
  60. items:
  61. description: Zone represents a resource topology zone, e.g. socket,
  62. node, die or core.
  63. properties:
  64. attributes:
  65. description: AttributeList contains an array of AttributeInfo objects.
  66. items:
  67. description: AttributeInfo contains one attribute of a Zone.
  68. properties:
  69. name:
  70. type: string
  71. value:
  72. type: string
  73. required:
  74. - name
  75. - value
  76. type: object
  77. type: array
  78. costs:
  79. description: CostList contains an array of CostInfo objects.
  80. items:
  81. description: CostInfo describes the cost (or distance) between
  82. two Zones.
  83. properties:
  84. name:
  85. type: string
  86. value:
  87. format: int64
  88. type: integer
  89. required:
  90. - name
  91. - value
  92. type: object
  93. type: array
  94. name:
  95. type: string
  96. parent:
  97. type: string
  98. resources:
  99. description: ResourceInfoList contains an array of ResourceInfo
  100. objects.
  101. items:
  102. description: ResourceInfo contains information about one resource
  103. type.
  104. properties:
  105. allocatable:
  106. anyOf:
  107. - type: integer
  108. - type: string
  109. description: Allocatable quantity of the resource, corresponding
  110. to allocatable in node status, i.e. total amount of this
  111. resource available to be used by pods.
  112. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  113. x-kubernetes-int-or-string: true
  114. available:
  115. anyOf:
  116. - type: integer
  117. - type: string
  118. description: Available is the amount of this resource currently
  119. available for new (to be scheduled) pods, i.e. Allocatable
  120. minus the resources reserved by currently running pods.
  121. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  122. x-kubernetes-int-or-string: true
  123. capacity:
  124. anyOf:
  125. - type: integer
  126. - type: string
  127. description: Capacity of the resource, corresponding to capacity
  128. in node status, i.e. total amount of this resource that
  129. the node has.
  130. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  131. x-kubernetes-int-or-string: true
  132. name:
  133. description: Name of the resource.
  134. type: string
  135. required:
  136. - allocatable
  137. - available
  138. - capacity
  139. - name
  140. type: object
  141. type: array
  142. type:
  143. type: string
  144. required:
  145. - name
  146. - type
  147. type: object
  148. type: array
  149. required:
  150. - zones
  151. type: object
  152. served: true
  153. storage: true