generators.external-secrets.io_ecrauthorizationtokens.yaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.19.0
  6. labels:
  7. external-secrets.io/component: controller
  8. name: ecrauthorizationtokens.generators.external-secrets.io
  9. spec:
  10. group: generators.external-secrets.io
  11. names:
  12. categories:
  13. - external-secrets
  14. - external-secrets-generators
  15. kind: ECRAuthorizationToken
  16. listKind: ECRAuthorizationTokenList
  17. plural: ecrauthorizationtokens
  18. singular: ecrauthorizationtoken
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: |-
  25. ECRAuthorizationTokenSpec uses the GetAuthorizationToken API to retrieve an
  26. authorization token.
  27. The authorization token is valid for 12 hours.
  28. The authorizationToken returned is a base64 encoded string that can be decoded
  29. and used in a docker login command to authenticate to a registry.
  30. For more information, see Registry authentication (https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html#registry_auth) in the Amazon Elastic Container Registry User Guide.
  31. properties:
  32. apiVersion:
  33. description: |-
  34. APIVersion defines the versioned schema of this representation of an object.
  35. Servers should convert recognized schemas to the latest internal value, and
  36. may reject unrecognized values.
  37. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  38. type: string
  39. kind:
  40. description: |-
  41. Kind is a string value representing the REST resource this object represents.
  42. Servers may infer this from the endpoint the client submits requests to.
  43. Cannot be updated.
  44. In CamelCase.
  45. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  46. type: string
  47. metadata:
  48. type: object
  49. spec:
  50. properties:
  51. auth:
  52. description: Auth defines how to authenticate with AWS
  53. properties:
  54. jwt:
  55. description: Authenticate against AWS using service account tokens.
  56. properties:
  57. serviceAccountRef:
  58. description: A reference to a ServiceAccount resource.
  59. properties:
  60. audiences:
  61. description: |-
  62. Audience specifies the `aud` claim for the service account token
  63. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  64. then this audiences will be appended to the list
  65. items:
  66. type: string
  67. type: array
  68. name:
  69. description: The name of the ServiceAccount resource being
  70. referred to.
  71. maxLength: 253
  72. minLength: 1
  73. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  74. type: string
  75. namespace:
  76. description: |-
  77. Namespace of the resource being referred to.
  78. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  79. maxLength: 63
  80. minLength: 1
  81. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  82. type: string
  83. required:
  84. - name
  85. type: object
  86. type: object
  87. secretRef:
  88. description: |-
  89. AWSAuthSecretRef holds secret references for AWS credentials
  90. both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.
  91. properties:
  92. accessKeyIDSecretRef:
  93. description: The AccessKeyID is used for authentication
  94. properties:
  95. key:
  96. description: |-
  97. A key in the referenced Secret.
  98. Some instances of this field may be defaulted, in others it may be required.
  99. maxLength: 253
  100. minLength: 1
  101. pattern: ^[-._a-zA-Z0-9]+$
  102. type: string
  103. name:
  104. description: The name of the Secret resource being referred
  105. to.
  106. maxLength: 253
  107. minLength: 1
  108. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  109. type: string
  110. namespace:
  111. description: |-
  112. The namespace of the Secret resource being referred to.
  113. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  114. maxLength: 63
  115. minLength: 1
  116. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  117. type: string
  118. type: object
  119. secretAccessKeySecretRef:
  120. description: The SecretAccessKey is used for authentication
  121. properties:
  122. key:
  123. description: |-
  124. A key in the referenced Secret.
  125. Some instances of this field may be defaulted, in others it may be required.
  126. maxLength: 253
  127. minLength: 1
  128. pattern: ^[-._a-zA-Z0-9]+$
  129. type: string
  130. name:
  131. description: The name of the Secret resource being referred
  132. to.
  133. maxLength: 253
  134. minLength: 1
  135. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  136. type: string
  137. namespace:
  138. description: |-
  139. The namespace of the Secret resource being referred to.
  140. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  141. maxLength: 63
  142. minLength: 1
  143. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  144. type: string
  145. type: object
  146. sessionTokenSecretRef:
  147. description: |-
  148. The SessionToken used for authentication
  149. This must be defined if AccessKeyID and SecretAccessKey are temporary credentials
  150. see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
  151. properties:
  152. key:
  153. description: |-
  154. A key in the referenced Secret.
  155. Some instances of this field may be defaulted, in others it may be required.
  156. maxLength: 253
  157. minLength: 1
  158. pattern: ^[-._a-zA-Z0-9]+$
  159. type: string
  160. name:
  161. description: The name of the Secret resource being referred
  162. to.
  163. maxLength: 253
  164. minLength: 1
  165. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  166. type: string
  167. namespace:
  168. description: |-
  169. The namespace of the Secret resource being referred to.
  170. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  171. maxLength: 63
  172. minLength: 1
  173. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  174. type: string
  175. type: object
  176. type: object
  177. type: object
  178. region:
  179. description: Region specifies the region to operate in.
  180. type: string
  181. role:
  182. description: |-
  183. You can assume a role before making calls to the
  184. desired AWS service.
  185. type: string
  186. scope:
  187. description: |-
  188. Scope specifies the ECR service scope.
  189. Valid options are private and public.
  190. type: string
  191. required:
  192. - region
  193. type: object
  194. type: object
  195. served: true
  196. storage: true
  197. subresources:
  198. status: {}