generators.external-secrets.io_ecrauthorizationtokens.yaml 7.8 KB

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