locostack.com_externaltools.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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: externaltools.locostack.com
  8. spec:
  9. group: locostack.com
  10. names:
  11. kind: ExternalTool
  12. listKind: ExternalToolList
  13. plural: externaltools
  14. shortNames:
  15. - et
  16. singular: externaltool
  17. scope: Namespaced
  18. versions:
  19. - additionalPrinterColumns:
  20. - jsonPath: .status.conditions[?(@.type=='Ready')].status
  21. name: Ready
  22. type: string
  23. name: v1alpha1
  24. schema:
  25. openAPIV3Schema:
  26. description: ExternalTool is the Schema for the externaltools 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 ExternalTool
  47. properties:
  48. auth:
  49. description: |-
  50. auth describes how to authenticate to the remote MCP server.
  51. Omit only for unauthenticated endpoints.
  52. properties:
  53. apiKey:
  54. description: apiKeySecretRef references a Secret key holding an
  55. API key and the header name to carry it in.
  56. properties:
  57. headerName:
  58. description: headerName is the HTTP header used to carry the
  59. key.
  60. type: string
  61. secretRef:
  62. description: secretRef references the Secret key holding the
  63. API key value.
  64. properties:
  65. key:
  66. description: The key of the secret to select from. Must
  67. be a valid secret key.
  68. type: string
  69. name:
  70. default: ""
  71. description: |-
  72. Name of the referent.
  73. This field is effectively required, but due to backwards compatibility is
  74. allowed to be empty. Instances of this type with an empty value here are
  75. almost certainly wrong.
  76. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  77. type: string
  78. optional:
  79. description: Specify whether the Secret or its key must
  80. be defined
  81. type: boolean
  82. required:
  83. - key
  84. type: object
  85. x-kubernetes-map-type: atomic
  86. required:
  87. - secretRef
  88. type: object
  89. bearerToken:
  90. description: |-
  91. bearerTokenSecretRef references a Secret key holding a bearer token.
  92. Injected as Authorization: Bearer <token> on every request.
  93. properties:
  94. key:
  95. description: The key of the secret to select from. Must be
  96. a valid secret key.
  97. type: string
  98. name:
  99. default: ""
  100. description: |-
  101. Name of the referent.
  102. This field is effectively required, but due to backwards compatibility is
  103. allowed to be empty. Instances of this type with an empty value here are
  104. almost certainly wrong.
  105. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  106. type: string
  107. optional:
  108. description: Specify whether the Secret or its key must be
  109. defined
  110. type: boolean
  111. required:
  112. - key
  113. type: object
  114. x-kubernetes-map-type: atomic
  115. headers:
  116. description: |-
  117. headers are arbitrary HTTP headers sourced from Secrets.
  118. Use for providers requiring multiple credentials or non-standard auth schemes.
  119. items:
  120. description: |-
  121. HTTPHeaderSpec defines an HTTP header whose value is sourced from a Secret.
  122. Used wherever arbitrary headers must be sent with outbound requests without
  123. inlining credential values into the CR.
  124. properties:
  125. name:
  126. description: name is the HTTP header name (e.g. X-Api-Key,
  127. Authorization).
  128. type: string
  129. valueFrom:
  130. description: valueFrom is the source for the header value
  131. — typically a secretKeyRef.
  132. properties:
  133. configMapKeyRef:
  134. description: Selects a key of a ConfigMap.
  135. properties:
  136. key:
  137. description: The key to select.
  138. type: string
  139. name:
  140. default: ""
  141. description: |-
  142. Name of the referent.
  143. This field is effectively required, but due to backwards compatibility is
  144. allowed to be empty. Instances of this type with an empty value here are
  145. almost certainly wrong.
  146. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  147. type: string
  148. optional:
  149. description: Specify whether the ConfigMap or its
  150. key must be defined
  151. type: boolean
  152. required:
  153. - key
  154. type: object
  155. x-kubernetes-map-type: atomic
  156. fieldRef:
  157. description: |-
  158. Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
  159. spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
  160. properties:
  161. apiVersion:
  162. description: Version of the schema the FieldPath
  163. is written in terms of, defaults to "v1".
  164. type: string
  165. fieldPath:
  166. description: Path of the field to select in the
  167. specified API version.
  168. type: string
  169. required:
  170. - fieldPath
  171. type: object
  172. x-kubernetes-map-type: atomic
  173. resourceFieldRef:
  174. description: |-
  175. Selects a resource of the container: only resources limits and requests
  176. (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
  177. properties:
  178. containerName:
  179. description: 'Container name: required for volumes,
  180. optional for env vars'
  181. type: string
  182. divisor:
  183. anyOf:
  184. - type: integer
  185. - type: string
  186. description: Specifies the output format of the
  187. exposed resources, defaults to "1"
  188. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  189. x-kubernetes-int-or-string: true
  190. resource:
  191. description: 'Required: resource to select'
  192. type: string
  193. required:
  194. - resource
  195. type: object
  196. x-kubernetes-map-type: atomic
  197. secretKeyRef:
  198. description: Selects a key of a secret in the pod's
  199. namespace
  200. properties:
  201. key:
  202. description: The key of the secret to select from. Must
  203. be a valid secret key.
  204. type: string
  205. name:
  206. default: ""
  207. description: |-
  208. Name of the referent.
  209. This field is effectively required, but due to backwards compatibility is
  210. allowed to be empty. Instances of this type with an empty value here are
  211. almost certainly wrong.
  212. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  213. type: string
  214. optional:
  215. description: Specify whether the Secret or its key
  216. must be defined
  217. type: boolean
  218. required:
  219. - key
  220. type: object
  221. x-kubernetes-map-type: atomic
  222. type: object
  223. required:
  224. - name
  225. - valueFrom
  226. type: object
  227. type: array
  228. type: object
  229. endpoint:
  230. description: endpoint is the base URL of the remote MCP server (e.g.
  231. https://tools.example.com/mcp).
  232. pattern: ^https?://
  233. type: string
  234. stackRef:
  235. description: stackRef associates this tool with a stack.
  236. properties:
  237. name:
  238. default: ""
  239. description: |-
  240. Name of the referent.
  241. This field is effectively required, but due to backwards compatibility is
  242. allowed to be empty. Instances of this type with an empty value here are
  243. almost certainly wrong.
  244. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  245. type: string
  246. type: object
  247. x-kubernetes-map-type: atomic
  248. toolName:
  249. description: toolName is the logical name for this tool as seen by
  250. the gateway and agents.
  251. type: string
  252. transport:
  253. default: http
  254. description: transport is the MCP transport protocol spoken by the
  255. remote server.
  256. enum:
  257. - sse
  258. - http
  259. type: string
  260. required:
  261. - endpoint
  262. - toolName
  263. type: object
  264. status:
  265. description: status defines the observed state of ExternalTool
  266. properties:
  267. conditions:
  268. description: |-
  269. conditions represent the current state of the ExternalTool resource.
  270. Each condition has a unique type and reflects the status of a specific aspect of the resource.
  271. Standard condition types include:
  272. - "Available": the resource is fully functional
  273. - "Progressing": the resource is being created or updated
  274. - "Degraded": the resource failed to reach or maintain its desired state
  275. The status of each condition is one of True, False, or Unknown.
  276. items:
  277. description: Condition contains details for one aspect of the current
  278. state of this API Resource.
  279. properties:
  280. lastTransitionTime:
  281. description: |-
  282. lastTransitionTime is the last time the condition transitioned from one status to another.
  283. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
  284. format: date-time
  285. type: string
  286. message:
  287. description: |-
  288. message is a human readable message indicating details about the transition.
  289. This may be an empty string.
  290. maxLength: 32768
  291. type: string
  292. observedGeneration:
  293. description: |-
  294. observedGeneration represents the .metadata.generation that the condition was set based upon.
  295. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
  296. with respect to the current state of the instance.
  297. format: int64
  298. minimum: 0
  299. type: integer
  300. reason:
  301. description: |-
  302. reason contains a programmatic identifier indicating the reason for the condition's last transition.
  303. Producers of specific condition types may define expected values and meanings for this field,
  304. and whether the values are considered a guaranteed API.
  305. The value should be a CamelCase string.
  306. This field may not be empty.
  307. maxLength: 1024
  308. minLength: 1
  309. pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
  310. type: string
  311. status:
  312. description: status of the condition, one of True, False, Unknown.
  313. enum:
  314. - "True"
  315. - "False"
  316. - Unknown
  317. type: string
  318. type:
  319. description: type of condition in CamelCase or in foo.example.com/CamelCase.
  320. maxLength: 316
  321. 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])$
  322. type: string
  323. required:
  324. - lastTransitionTime
  325. - message
  326. - reason
  327. - status
  328. - type
  329. type: object
  330. type: array
  331. x-kubernetes-list-map-keys:
  332. - type
  333. x-kubernetes-list-type: map
  334. observedGeneration:
  335. description: observedGeneration is the .metadata.generation last reconciled.
  336. format: int64
  337. type: integer
  338. type: object
  339. required:
  340. - spec
  341. type: object
  342. served: true
  343. storage: true
  344. subresources:
  345. status: {}