crd-awscognitoidentity.yaml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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: awscognitoidentitysources.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.cognito-identity.sync_trigger" }
  26. ]
  27. spec:
  28. group: sources.triggermesh.io
  29. scope: Namespaced
  30. names:
  31. kind: AWSCognitoIdentitySource
  32. plural: awscognitoidentitysources
  33. categories:
  34. - all
  35. - knative
  36. - eventing
  37. - sources
  38. versions:
  39. - name: v1alpha1
  40. served: true
  41. storage: true
  42. subresources:
  43. status: {}
  44. schema:
  45. openAPIV3Schema:
  46. type: object
  47. properties:
  48. spec:
  49. type: object
  50. properties:
  51. arn:
  52. type: string
  53. pattern: '^arn:aws(-cn|-us-gov)?:cognito-identity:[a-z]{2}(-gov)?-[a-z]+-\d:\d{12}:identitypool\/.+$'
  54. credentials:
  55. type: object
  56. properties:
  57. accessKeyID:
  58. type: object
  59. properties:
  60. value:
  61. type: string
  62. valueFromSecret:
  63. type: object
  64. properties:
  65. name:
  66. type: string
  67. key:
  68. type: string
  69. oneOf:
  70. - required: ['value']
  71. - required: ['valueFromSecret']
  72. secretAccessKey:
  73. type: object
  74. properties:
  75. value:
  76. type: string
  77. format: password
  78. valueFromSecret:
  79. type: object
  80. properties:
  81. name:
  82. type: string
  83. key:
  84. type: string
  85. oneOf:
  86. - required: ['value']
  87. - required: ['valueFromSecret']
  88. sink:
  89. type: object
  90. properties:
  91. ref:
  92. type: object
  93. properties:
  94. apiVersion:
  95. type: string
  96. kind:
  97. type: string
  98. namespace:
  99. type: string
  100. name:
  101. type: string
  102. required:
  103. - apiVersion
  104. - kind
  105. - name
  106. uri:
  107. type: string
  108. format: uri
  109. oneOf:
  110. - required: ['ref']
  111. - required: ['uri']
  112. required:
  113. - arn
  114. - sink
  115. status:
  116. type: object
  117. properties:
  118. sinkUri:
  119. type: string
  120. format: uri
  121. ceAttributes:
  122. type: array
  123. items:
  124. type: object
  125. properties:
  126. type:
  127. type: string
  128. source:
  129. type: string
  130. required:
  131. - type
  132. - source
  133. observedGeneration:
  134. type: integer
  135. format: int64
  136. conditions:
  137. type: array
  138. items:
  139. type: object
  140. properties:
  141. type:
  142. type: string
  143. status:
  144. type: string
  145. enum: ['True', 'False', Unknown]
  146. severity:
  147. type: string
  148. enum: [Error, Warning, Info]
  149. reason:
  150. type: string
  151. message:
  152. type: string
  153. lastTransitionTime:
  154. type: string
  155. format: date-time
  156. required:
  157. - type
  158. - status
  159. additionalPrinterColumns:
  160. - name: Ready
  161. type: string
  162. jsonPath: .status.conditions[?(@.type=='Ready')].status
  163. - name: Reason
  164. type: string
  165. jsonPath: .status.conditions[?(@.type=='Ready')].reason
  166. - name: Sink
  167. type: string
  168. jsonPath: .status.sinkUri
  169. - name: Age
  170. type: date
  171. jsonPath: .metadata.creationTimestamp