generators.external-secrets.io_ecrauthorizationtokens.yaml 7.7 KB

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