generators.external-secrets.io_ecrauthorizationtokens.yaml 7.6 KB

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