generators.external-secrets.io_gcraccesstokens.yaml 5.7 KB

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