generators.external-secrets.io_ecrauthorizationtokens.yaml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.16.5
  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. shortNames:
  19. - ecrauthorizationtoken
  20. singular: ecrauthorizationtoken
  21. scope: Namespaced
  22. versions:
  23. - name: v1alpha1
  24. schema:
  25. openAPIV3Schema:
  26. description: |-
  27. ECRAuthorizationTokenSpec uses the GetAuthorizationToken API to retrieve an
  28. authorization token.
  29. The authorization token is valid for 12 hours.
  30. The authorizationToken returned is a base64 encoded string that can be decoded
  31. and used in a docker login command to authenticate to a registry.
  32. 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.
  33. properties:
  34. apiVersion:
  35. description: |-
  36. APIVersion defines the versioned schema of this representation of an object.
  37. Servers should convert recognized schemas to the latest internal value, and
  38. may reject unrecognized values.
  39. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  40. type: string
  41. kind:
  42. description: |-
  43. Kind is a string value representing the REST resource this object represents.
  44. Servers may infer this from the endpoint the client submits requests to.
  45. Cannot be updated.
  46. In CamelCase.
  47. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  48. type: string
  49. metadata:
  50. type: object
  51. spec:
  52. properties:
  53. auth:
  54. description: Auth defines how to authenticate with AWS
  55. properties:
  56. jwt:
  57. description: Authenticate against AWS using service account tokens.
  58. properties:
  59. serviceAccountRef:
  60. description: A reference to a ServiceAccount resource.
  61. properties:
  62. audiences:
  63. description: |-
  64. Audience specifies the `aud` claim for the service account token
  65. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  66. then this audiences will be appended to the list
  67. items:
  68. type: string
  69. type: array
  70. name:
  71. description: The name of the ServiceAccount resource being
  72. referred to.
  73. type: string
  74. namespace:
  75. description: |-
  76. Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults
  77. to the namespace of the referent.
  78. type: string
  79. required:
  80. - name
  81. type: object
  82. type: object
  83. secretRef:
  84. description: |-
  85. AWSAuthSecretRef holds secret references for AWS credentials
  86. both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.
  87. properties:
  88. accessKeyIDSecretRef:
  89. description: The AccessKeyID is used for authentication
  90. properties:
  91. key:
  92. description: |-
  93. The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be
  94. defaulted, in others it may be required.
  95. type: string
  96. name:
  97. description: The name of the Secret resource being referred
  98. to.
  99. type: string
  100. namespace:
  101. description: |-
  102. Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults
  103. to the namespace of the referent.
  104. type: string
  105. type: object
  106. secretAccessKeySecretRef:
  107. description: The SecretAccessKey is used for authentication
  108. properties:
  109. key:
  110. description: |-
  111. The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be
  112. defaulted, in others it may be required.
  113. type: string
  114. name:
  115. description: The name of the Secret resource being referred
  116. to.
  117. type: string
  118. namespace:
  119. description: |-
  120. Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults
  121. to the namespace of the referent.
  122. type: string
  123. type: object
  124. sessionTokenSecretRef:
  125. description: |-
  126. The SessionToken used for authentication
  127. This must be defined if AccessKeyID and SecretAccessKey are temporary credentials
  128. see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
  129. properties:
  130. key:
  131. description: |-
  132. The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be
  133. defaulted, in others it may be required.
  134. type: string
  135. name:
  136. description: The name of the Secret resource being referred
  137. to.
  138. type: string
  139. namespace:
  140. description: |-
  141. Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults
  142. to the namespace of the referent.
  143. type: string
  144. type: object
  145. type: object
  146. type: object
  147. region:
  148. description: Region specifies the region to operate in.
  149. type: string
  150. role:
  151. description: |-
  152. You can assume a role before making calls to the
  153. desired AWS service.
  154. type: string
  155. required:
  156. - region
  157. type: object
  158. type: object
  159. served: true
  160. storage: true
  161. subresources:
  162. status: {}