external-secrets.io_externalsecrets.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.5.0
  6. creationTimestamp: null
  7. name: externalsecrets.external-secrets.io
  8. spec:
  9. group: external-secrets.io
  10. names:
  11. categories:
  12. - externalsecrets
  13. kind: ExternalSecret
  14. listKind: ExternalSecretList
  15. plural: externalsecrets
  16. shortNames:
  17. - es
  18. singular: externalsecret
  19. scope: Namespaced
  20. versions:
  21. - additionalPrinterColumns:
  22. - jsonPath: .spec.secretStoreRef.name
  23. name: Store
  24. type: string
  25. - jsonPath: .spec.refreshInterval
  26. name: Refresh Interval
  27. type: string
  28. - jsonPath: .status.conditions[?(@.type=="Ready")].reason
  29. name: Status
  30. type: string
  31. name: v1alpha1
  32. schema:
  33. openAPIV3Schema:
  34. description: ExternalSecret is the Schema for the external-secrets API.
  35. properties:
  36. apiVersion:
  37. description: 'APIVersion defines the versioned schema of this representation
  38. of an object. Servers should convert recognized schemas to the latest
  39. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  40. type: string
  41. kind:
  42. description: 'Kind is a string value representing the REST resource this
  43. object represents. Servers may infer this from the endpoint the client
  44. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  45. type: string
  46. metadata:
  47. type: object
  48. spec:
  49. description: ExternalSecretSpec defines the desired state of ExternalSecret.
  50. properties:
  51. data:
  52. description: Data defines the connection between the Kubernetes Secret
  53. keys and the Provider data
  54. items:
  55. description: ExternalSecretData defines the connection between the
  56. Kubernetes Secret key (spec.data.<key>) and the Provider data.
  57. properties:
  58. remoteRef:
  59. description: ExternalSecretDataRemoteRef defines Provider data
  60. location.
  61. properties:
  62. key:
  63. description: Key is the key used in the Provider, mandatory
  64. type: string
  65. property:
  66. description: Used to select a specific property of the Provider
  67. value (if a map), if supported
  68. type: string
  69. version:
  70. description: Used to select a specific version of the Provider
  71. value, if supported
  72. type: string
  73. required:
  74. - key
  75. type: object
  76. secretKey:
  77. type: string
  78. required:
  79. - remoteRef
  80. - secretKey
  81. type: object
  82. type: array
  83. dataFrom:
  84. description: DataFrom is used to fetch all properties from a specific
  85. Provider data If multiple entries are specified, the Secret keys
  86. are merged in the specified order
  87. items:
  88. description: ExternalSecretDataRemoteRef defines Provider data location.
  89. properties:
  90. key:
  91. description: Key is the key used in the Provider, mandatory
  92. type: string
  93. property:
  94. description: Used to select a specific property of the Provider
  95. value (if a map), if supported
  96. type: string
  97. version:
  98. description: Used to select a specific version of the Provider
  99. value, if supported
  100. type: string
  101. required:
  102. - key
  103. type: object
  104. type: array
  105. refreshInterval:
  106. default: 1h
  107. description: RefreshInterval is the amount of time before the values
  108. are read again from the SecretStore provider Valid time units are
  109. "ns", "us" (or "µs"), "ms", "s", "m", "h" May be set to zero to
  110. fetch and create it once. Defaults to 1h.
  111. type: string
  112. secretStoreRef:
  113. description: SecretStoreRef defines which SecretStore to fetch the
  114. ExternalSecret data.
  115. properties:
  116. kind:
  117. description: Kind of the SecretStore resource (SecretStore or
  118. ClusterSecretStore) Defaults to `SecretStore`
  119. type: string
  120. name:
  121. description: Name of the SecretStore resource
  122. type: string
  123. required:
  124. - name
  125. type: object
  126. target:
  127. description: ExternalSecretTarget defines the Kubernetes Secret to
  128. be created There can be only one target per ExternalSecret.
  129. properties:
  130. creationPolicy:
  131. default: Owner
  132. description: CreationPolicy defines rules on how to create the
  133. resulting Secret Defaults to 'Owner'
  134. type: string
  135. immutable:
  136. description: Immutable defines if the final secret will be immutable
  137. type: boolean
  138. name:
  139. description: Name defines the name of the Secret resource to be
  140. managed This field is immutable Defaults to the .metadata.name
  141. of the ExternalSecret resource
  142. type: string
  143. template:
  144. description: Template defines a blueprint for the created Secret
  145. resource.
  146. properties:
  147. data:
  148. additionalProperties:
  149. type: string
  150. type: object
  151. metadata:
  152. description: ExternalSecretTemplateMetadata defines metadata
  153. fields for the Secret blueprint.
  154. properties:
  155. annotations:
  156. additionalProperties:
  157. type: string
  158. type: object
  159. labels:
  160. additionalProperties:
  161. type: string
  162. type: object
  163. type: object
  164. templateFrom:
  165. items:
  166. maxProperties: 1
  167. minProperties: 1
  168. properties:
  169. configMap:
  170. properties:
  171. items:
  172. items:
  173. properties:
  174. key:
  175. type: string
  176. required:
  177. - key
  178. type: object
  179. type: array
  180. name:
  181. type: string
  182. required:
  183. - items
  184. - name
  185. type: object
  186. secret:
  187. properties:
  188. items:
  189. items:
  190. properties:
  191. key:
  192. type: string
  193. required:
  194. - key
  195. type: object
  196. type: array
  197. name:
  198. type: string
  199. required:
  200. - items
  201. - name
  202. type: object
  203. type: object
  204. type: array
  205. type:
  206. type: string
  207. type: object
  208. type: object
  209. required:
  210. - secretStoreRef
  211. - target
  212. type: object
  213. status:
  214. properties:
  215. conditions:
  216. items:
  217. properties:
  218. lastTransitionTime:
  219. format: date-time
  220. type: string
  221. message:
  222. type: string
  223. reason:
  224. type: string
  225. status:
  226. type: string
  227. type:
  228. type: string
  229. required:
  230. - status
  231. - type
  232. type: object
  233. type: array
  234. refreshTime:
  235. description: refreshTime is the time and date the external secret
  236. was fetched and the target secret updated
  237. format: date-time
  238. nullable: true
  239. type: string
  240. syncedResourceVersion:
  241. description: SyncedResourceVersion keeps track of the last synced
  242. version
  243. type: string
  244. type: object
  245. type: object
  246. served: true
  247. storage: true
  248. subresources:
  249. status: {}
  250. status:
  251. acceptedNames:
  252. kind: ""
  253. plural: ""
  254. conditions: []
  255. storedVersions: []