crd-awscodecommit.yaml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # Copyright (c) 2020 TriggerMesh Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. apiVersion: apiextensions.k8s.io/v1
  15. kind: CustomResourceDefinition
  16. metadata:
  17. name: awscodecommitsources.sources.triggermesh.io
  18. labels:
  19. eventing.knative.dev/source: 'true'
  20. duck.knative.dev/source: 'true'
  21. knative.dev/crd-install: 'true'
  22. annotations:
  23. registry.knative.dev/eventTypes: |
  24. [
  25. { "type": "com.amazon.codecommit.push" },
  26. { "type": "com.amazon.codecommit.pull_request" }
  27. ]
  28. spec:
  29. group: sources.triggermesh.io
  30. scope: Namespaced
  31. names:
  32. kind: AWSCodeCommitSource
  33. plural: awscodecommitsources
  34. categories:
  35. - all
  36. - knative
  37. - eventing
  38. - sources
  39. versions:
  40. - name: v1alpha1
  41. served: true
  42. storage: true
  43. subresources:
  44. status: {}
  45. schema:
  46. openAPIV3Schema:
  47. type: object
  48. properties:
  49. spec:
  50. type: object
  51. properties:
  52. arn:
  53. type: string
  54. pattern: '^arn:aws(-cn|-us-gov)?:codecommit:[a-z]{2}(-gov)?-[a-z]+-\d:\d{12}:.+$'
  55. branch:
  56. type: string
  57. eventTypes:
  58. type: array
  59. items:
  60. type: string
  61. enum: [push, pull_request]
  62. credentials:
  63. type: object
  64. properties:
  65. accessKeyID:
  66. type: object
  67. properties:
  68. value:
  69. type: string
  70. valueFromSecret:
  71. type: object
  72. properties:
  73. name:
  74. type: string
  75. key:
  76. type: string
  77. oneOf:
  78. - required: ['value']
  79. - required: ['valueFromSecret']
  80. secretAccessKey:
  81. type: object
  82. properties:
  83. value:
  84. type: string
  85. format: password
  86. valueFromSecret:
  87. type: object
  88. properties:
  89. name:
  90. type: string
  91. key:
  92. type: string
  93. oneOf:
  94. - required: ['value']
  95. - required: ['valueFromSecret']
  96. sink:
  97. type: object
  98. properties:
  99. ref:
  100. type: object
  101. properties:
  102. apiVersion:
  103. type: string
  104. kind:
  105. type: string
  106. namespace:
  107. type: string
  108. name:
  109. type: string
  110. required:
  111. - apiVersion
  112. - kind
  113. - name
  114. uri:
  115. type: string
  116. format: uri
  117. oneOf:
  118. - required: ['ref']
  119. - required: ['uri']
  120. required:
  121. - arn
  122. - branch
  123. - eventTypes
  124. - sink
  125. status:
  126. type: object
  127. properties:
  128. sinkUri:
  129. type: string
  130. format: uri
  131. ceAttributes:
  132. type: array
  133. items:
  134. type: object
  135. properties:
  136. type:
  137. type: string
  138. source:
  139. type: string
  140. required:
  141. - type
  142. - source
  143. observedGeneration:
  144. type: integer
  145. format: int64
  146. conditions:
  147. type: array
  148. items:
  149. type: object
  150. properties:
  151. type:
  152. type: string
  153. status:
  154. type: string
  155. enum: ['True', 'False', Unknown]
  156. severity:
  157. type: string
  158. enum: [Error, Warning, Info]
  159. reason:
  160. type: string
  161. message:
  162. type: string
  163. lastTransitionTime:
  164. type: string
  165. format: date-time
  166. required:
  167. - type
  168. - status
  169. additionalPrinterColumns:
  170. - name: Ready
  171. type: string
  172. jsonPath: .status.conditions[?(@.type=='Ready')].status
  173. - name: Reason
  174. type: string
  175. jsonPath: .status.conditions[?(@.type=='Ready')].reason
  176. - name: Sink
  177. type: string
  178. jsonPath: .status.sinkUri
  179. - name: Age
  180. type: date
  181. jsonPath: .metadata.creationTimestamp