generators.external-secrets.io_gcraccesstokens.yaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.17.1
  6. labels:
  7. external-secrets.io/component: controller
  8. name: gcraccesstokens.generators.external-secrets.io
  9. spec:
  10. group: generators.external-secrets.io
  11. names:
  12. categories:
  13. - external-secrets
  14. - external-secrets-generators
  15. kind: GCRAccessToken
  16. listKind: GCRAccessTokenList
  17. plural: gcraccesstokens
  18. singular: gcraccesstoken
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: |-
  25. GCRAccessToken generates an GCP access token
  26. that can be used to authenticate with GCR.
  27. properties:
  28. apiVersion:
  29. description: |-
  30. APIVersion defines the versioned schema of this representation of an object.
  31. Servers should convert recognized schemas to the latest internal value, and
  32. may reject unrecognized values.
  33. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  34. type: string
  35. kind:
  36. description: |-
  37. Kind is a string value representing the REST resource this object represents.
  38. Servers may infer this from the endpoint the client submits requests to.
  39. Cannot be updated.
  40. In CamelCase.
  41. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  42. type: string
  43. metadata:
  44. type: object
  45. spec:
  46. properties:
  47. auth:
  48. description: Auth defines the means for authenticating with GCP
  49. properties:
  50. secretRef:
  51. properties:
  52. secretAccessKeySecretRef:
  53. description: The SecretAccessKey is used for authentication
  54. properties:
  55. key:
  56. description: |-
  57. A key in the referenced Secret.
  58. Some instances of this field may be defaulted, in others it may be required.
  59. maxLength: 253
  60. minLength: 1
  61. pattern: ^[-._a-zA-Z0-9]+$
  62. type: string
  63. name:
  64. description: The name of the Secret resource being referred
  65. to.
  66. maxLength: 253
  67. minLength: 1
  68. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  69. type: string
  70. namespace:
  71. description: |-
  72. The namespace of the Secret resource being referred to.
  73. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  74. maxLength: 63
  75. minLength: 1
  76. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  77. type: string
  78. type: object
  79. type: object
  80. workloadIdentity:
  81. properties:
  82. clusterLocation:
  83. type: string
  84. clusterName:
  85. type: string
  86. clusterProjectID:
  87. type: string
  88. serviceAccountRef:
  89. description: A reference to a ServiceAccount resource.
  90. properties:
  91. audiences:
  92. description: |-
  93. Audience specifies the `aud` claim for the service account token
  94. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  95. then this audiences will be appended to the list
  96. items:
  97. type: string
  98. type: array
  99. name:
  100. description: The name of the ServiceAccount resource being
  101. referred to.
  102. maxLength: 253
  103. minLength: 1
  104. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  105. type: string
  106. namespace:
  107. description: |-
  108. Namespace of the resource being referred to.
  109. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  110. maxLength: 63
  111. minLength: 1
  112. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  113. type: string
  114. required:
  115. - name
  116. type: object
  117. required:
  118. - clusterLocation
  119. - clusterName
  120. - serviceAccountRef
  121. type: object
  122. type: object
  123. projectID:
  124. description: ProjectID defines which project to use to authenticate
  125. with
  126. type: string
  127. required:
  128. - auth
  129. - projectID
  130. type: object
  131. type: object
  132. served: true
  133. storage: true
  134. subresources:
  135. status: {}