locostack.com_skills.yaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. ---
  2. apiVersion: apiextensions.k8s.io/v1
  3. kind: CustomResourceDefinition
  4. metadata:
  5. annotations:
  6. controller-gen.kubebuilder.io/version: v0.20.1
  7. name: skills.locostack.com
  8. spec:
  9. group: locostack.com
  10. names:
  11. kind: Skill
  12. listKind: SkillList
  13. plural: skills
  14. shortNames:
  15. - skl
  16. singular: skill
  17. scope: Namespaced
  18. versions:
  19. - additionalPrinterColumns:
  20. - jsonPath: .status.files
  21. name: Files
  22. type: integer
  23. name: v1alpha1
  24. schema:
  25. openAPIV3Schema:
  26. description: Skill is the Schema for the skills API
  27. properties:
  28. apiVersion:
  29. description: |-
  30. APIVersion defines the versioned schema of this representation of an object.
  31. Servers should convert recognized schemas to the latest internal value, and
  32. may reject unrecognized values.
  33. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  34. type: string
  35. kind:
  36. description: |-
  37. Kind is a string value representing the REST resource this object represents.
  38. Servers may infer this from the endpoint the client submits requests to.
  39. Cannot be updated.
  40. In CamelCase.
  41. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  42. type: string
  43. metadata:
  44. type: object
  45. spec:
  46. description: spec defines the desired state of Skill
  47. properties:
  48. body:
  49. description: body contains the main content of the skill, part of
  50. the "SKILL.md" file.
  51. type: string
  52. description:
  53. description: description provides a brief summary of the skill, part
  54. of the "SKILL.md" file.
  55. type: string
  56. files:
  57. description: |-
  58. files is the list of files that will be used by the skill.
  59. scripts, references, assets, ...
  60. items:
  61. properties:
  62. content:
  63. description: content is the content of the file.
  64. type: string
  65. path:
  66. description: path is the relative path of the file within the
  67. skill.
  68. type: string
  69. required:
  70. - content
  71. - path
  72. type: object
  73. type: array
  74. skillName:
  75. description: skillName is the name of the skill, part of the "SKILL.md"
  76. file.
  77. type: string
  78. stackRef:
  79. description: stackRef associates this tool with a stack.
  80. properties:
  81. name:
  82. default: ""
  83. description: |-
  84. Name of the referent.
  85. This field is effectively required, but due to backwards compatibility is
  86. allowed to be empty. Instances of this type with an empty value here are
  87. almost certainly wrong.
  88. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  89. type: string
  90. type: object
  91. x-kubernetes-map-type: atomic
  92. required:
  93. - body
  94. - description
  95. - skillName
  96. type: object
  97. status:
  98. description: status defines the observed state of Skill
  99. properties:
  100. conditions:
  101. description: The status of each condition is one of True, False, or
  102. Unknown.
  103. items:
  104. description: Condition contains details for one aspect of the current
  105. state of this API Resource.
  106. properties:
  107. lastTransitionTime:
  108. description: |-
  109. lastTransitionTime is the last time the condition transitioned from one status to another.
  110. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
  111. format: date-time
  112. type: string
  113. message:
  114. description: |-
  115. message is a human readable message indicating details about the transition.
  116. This may be an empty string.
  117. maxLength: 32768
  118. type: string
  119. observedGeneration:
  120. description: |-
  121. observedGeneration represents the .metadata.generation that the condition was set based upon.
  122. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
  123. with respect to the current state of the instance.
  124. format: int64
  125. minimum: 0
  126. type: integer
  127. reason:
  128. description: |-
  129. reason contains a programmatic identifier indicating the reason for the condition's last transition.
  130. Producers of specific condition types may define expected values and meanings for this field,
  131. and whether the values are considered a guaranteed API.
  132. The value should be a CamelCase string.
  133. This field may not be empty.
  134. maxLength: 1024
  135. minLength: 1
  136. pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
  137. type: string
  138. status:
  139. description: status of the condition, one of True, False, Unknown.
  140. enum:
  141. - "True"
  142. - "False"
  143. - Unknown
  144. type: string
  145. type:
  146. description: type of condition in CamelCase or in foo.example.com/CamelCase.
  147. maxLength: 316
  148. 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])$
  149. type: string
  150. required:
  151. - lastTransitionTime
  152. - message
  153. - reason
  154. - status
  155. - type
  156. type: object
  157. type: array
  158. x-kubernetes-list-map-keys:
  159. - type
  160. x-kubernetes-list-type: map
  161. files:
  162. description: files is the number of files contained in the skill.
  163. format: int32
  164. type: integer
  165. observedGeneration:
  166. description: observedGeneration is the .metadata.generation last reconciled.
  167. format: int64
  168. type: integer
  169. type: object
  170. required:
  171. - spec
  172. type: object
  173. served: true
  174. storage: true
  175. subresources:
  176. status: {}