generators.external-secrets.io_acraccesstokens.yaml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.11.1
  6. creationTimestamp: null
  7. name: acraccesstokens.generators.external-secrets.io
  8. spec:
  9. group: generators.external-secrets.io
  10. names:
  11. categories:
  12. - acraccesstoken
  13. kind: ACRAccessToken
  14. listKind: ACRAccessTokenList
  15. plural: acraccesstokens
  16. shortNames:
  17. - acraccesstoken
  18. singular: acraccesstoken
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: "ACRAccessToken returns a Azure Container Registry token that
  25. can be used for pushing/pulling images. Note: by default it will return
  26. an ACR Refresh Token with full access (depending on the identity). This
  27. can be scoped down to the repository level using .spec.scope. In case scope
  28. is defined it will return an ACR Access Token. \n See docs: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md"
  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. description: 'ACRAccessTokenSpec defines how to generate the access token
  44. e.g. how to authenticate and which registry to use. see: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md#overview'
  45. properties:
  46. auth:
  47. properties:
  48. managedIdentity:
  49. description: ManagedIdentity uses Azure Managed Identity to authenticate
  50. with Azure.
  51. properties:
  52. identityId:
  53. description: If multiple Managed Identity is assigned to the
  54. pod, you can select the one to be used
  55. type: string
  56. type: object
  57. servicePrincipal:
  58. description: ServicePrincipal uses Azure Service Principal credentials
  59. to authenticate with Azure.
  60. properties:
  61. secretRef:
  62. description: Configuration used to authenticate with Azure
  63. using static credentials stored in a Kind=Secret.
  64. properties:
  65. clientId:
  66. description: The Azure clientId of the service principle
  67. used for authentication.
  68. properties:
  69. key:
  70. description: The key of the entry in the Secret resource's
  71. `data` field to be used. Some instances of this
  72. field may be defaulted, in others it may be required.
  73. type: string
  74. name:
  75. description: The name of the Secret resource being
  76. referred to.
  77. type: string
  78. namespace:
  79. description: Namespace of the resource being referred
  80. to. Ignored if referent is not cluster-scoped. cluster-scoped
  81. defaults to the namespace of the referent.
  82. type: string
  83. type: object
  84. clientSecret:
  85. description: The Azure ClientSecret of the service principle
  86. used for authentication.
  87. properties:
  88. key:
  89. description: The key of the entry in the Secret resource's
  90. `data` field to be used. Some instances of this
  91. field may be defaulted, in others it may be required.
  92. type: string
  93. name:
  94. description: The name of the Secret resource being
  95. referred to.
  96. type: string
  97. namespace:
  98. description: Namespace of the resource being referred
  99. to. Ignored if referent is not cluster-scoped. cluster-scoped
  100. defaults to the namespace of the referent.
  101. type: string
  102. type: object
  103. type: object
  104. required:
  105. - secretRef
  106. type: object
  107. workloadIdentity:
  108. description: WorkloadIdentity uses Azure Workload Identity to
  109. authenticate with Azure.
  110. properties:
  111. serviceAccountRef:
  112. description: ServiceAccountRef specified the service account
  113. that should be used when authenticating with WorkloadIdentity.
  114. properties:
  115. audiences:
  116. description: Audience specifies the `aud` claim for the
  117. service account token If the service account uses a
  118. well-known annotation for e.g. IRSA or GCP Workload
  119. Identity then this audiences will be appended to the
  120. list
  121. items:
  122. type: string
  123. type: array
  124. name:
  125. description: The name of the ServiceAccount resource being
  126. referred to.
  127. type: string
  128. namespace:
  129. description: Namespace of the resource being referred
  130. to. Ignored if referent is not cluster-scoped. cluster-scoped
  131. defaults to the namespace of the referent.
  132. type: string
  133. required:
  134. - name
  135. type: object
  136. type: object
  137. type: object
  138. environmentType:
  139. default: PublicCloud
  140. description: 'EnvironmentType specifies the Azure cloud environment
  141. endpoints to use for connecting and authenticating with Azure. By
  142. default it points to the public cloud AAD endpoint. The following
  143. endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152
  144. PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud'
  145. enum:
  146. - PublicCloud
  147. - USGovernmentCloud
  148. - ChinaCloud
  149. - GermanCloud
  150. type: string
  151. registry:
  152. description: the domain name of the ACR registry e.g. foobarexample.azurecr.io
  153. type: string
  154. scope:
  155. description: "Define the scope for the access token, e.g. pull/push
  156. access for a repository. if not provided it will return a refresh
  157. token that has full scope. Note: you need to pin it down to the
  158. repository level, there is no wildcard available. \n examples: repository:my-repository:pull,push
  159. repository:my-repository:pull \n see docs for details: https://docs.docker.com/registry/spec/auth/scope/"
  160. type: string
  161. tenantId:
  162. description: TenantID configures the Azure Tenant to send requests
  163. to. Required for ServicePrincipal auth type.
  164. type: string
  165. required:
  166. - auth
  167. - registry
  168. type: object
  169. type: object
  170. served: true
  171. storage: true
  172. subresources:
  173. status: {}