generators.external-secrets.io_ecrauthorizationtokens.yaml 7.6 KB

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