external-secrets.io_externalsecrets.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.8.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. extract:
  63. description: Used to select a specific version and property
  64. from the secret
  65. properties:
  66. key:
  67. description: Key is the key used in the Provider
  68. type: string
  69. property:
  70. description: Used to select a specific property of the
  71. Provider value (if a map), if supported
  72. type: string
  73. version:
  74. description: Used to select a specific version of the
  75. Provider value, if supported
  76. type: string
  77. type: object
  78. find:
  79. description: Used to find secrets based on tags or regular
  80. expressions
  81. properties:
  82. name:
  83. description: Key is the key used in the Provider
  84. properties:
  85. regexp:
  86. description: Used to select multiple secrets based
  87. on a regular expression of the name
  88. type: string
  89. type: object
  90. tags:
  91. additionalProperties:
  92. type: string
  93. description: Used to select a specific version of the
  94. Provider value, if supported
  95. type: object
  96. type: object
  97. type: object
  98. secretKey:
  99. type: string
  100. required:
  101. - remoteRef
  102. - secretKey
  103. type: object
  104. type: array
  105. dataFrom:
  106. description: DataFrom is used to fetch all properties from a specific
  107. Provider data If multiple entries are specified, the Secret keys
  108. are merged in the specified order
  109. items:
  110. description: ExternalSecretDataRemoteRef defines Provider data location.
  111. properties:
  112. extract:
  113. description: Used to select a specific version and property
  114. from the secret
  115. properties:
  116. key:
  117. description: Key is the key used in the Provider
  118. type: string
  119. property:
  120. description: Used to select a specific property of the Provider
  121. value (if a map), if supported
  122. type: string
  123. version:
  124. description: Used to select a specific version of the Provider
  125. value, if supported
  126. type: string
  127. type: object
  128. find:
  129. description: Used to find secrets based on tags or regular expressions
  130. properties:
  131. name:
  132. description: Key is the key used in the Provider
  133. properties:
  134. regexp:
  135. description: Used to select multiple secrets based on
  136. a regular expression of the name
  137. type: string
  138. type: object
  139. tags:
  140. additionalProperties:
  141. type: string
  142. description: Used to select a specific version of the Provider
  143. value, if supported
  144. type: object
  145. type: object
  146. type: object
  147. type: array
  148. refreshInterval:
  149. default: 1h
  150. description: RefreshInterval is the amount of time before the values
  151. are read again from the SecretStore provider Valid time units are
  152. "ns", "us" (or "µs"), "ms", "s", "m", "h" May be set to zero to
  153. fetch and create it once. Defaults to 1h.
  154. type: string
  155. secretStoreRef:
  156. description: SecretStoreRef defines which SecretStore to fetch the
  157. ExternalSecret data.
  158. properties:
  159. kind:
  160. description: Kind of the SecretStore resource (SecretStore or
  161. ClusterSecretStore) Defaults to `SecretStore`
  162. type: string
  163. name:
  164. description: Name of the SecretStore resource
  165. type: string
  166. required:
  167. - name
  168. type: object
  169. target:
  170. description: ExternalSecretTarget defines the Kubernetes Secret to
  171. be created There can be only one target per ExternalSecret.
  172. properties:
  173. creationPolicy:
  174. default: Owner
  175. description: CreationPolicy defines rules on how to create the
  176. resulting Secret Defaults to 'Owner'
  177. type: string
  178. immutable:
  179. description: Immutable defines if the final secret will be immutable
  180. type: boolean
  181. name:
  182. description: Name defines the name of the Secret resource to be
  183. managed This field is immutable Defaults to the .metadata.name
  184. of the ExternalSecret resource
  185. type: string
  186. template:
  187. description: Template defines a blueprint for the created Secret
  188. resource.
  189. properties:
  190. data:
  191. additionalProperties:
  192. type: string
  193. type: object
  194. metadata:
  195. description: ExternalSecretTemplateMetadata defines metadata
  196. fields for the Secret blueprint.
  197. properties:
  198. annotations:
  199. additionalProperties:
  200. type: string
  201. type: object
  202. labels:
  203. additionalProperties:
  204. type: string
  205. type: object
  206. type: object
  207. templateFrom:
  208. items:
  209. maxProperties: 1
  210. minProperties: 1
  211. properties:
  212. configMap:
  213. properties:
  214. items:
  215. items:
  216. properties:
  217. key:
  218. type: string
  219. required:
  220. - key
  221. type: object
  222. type: array
  223. name:
  224. type: string
  225. required:
  226. - items
  227. - name
  228. type: object
  229. secret:
  230. properties:
  231. items:
  232. items:
  233. properties:
  234. key:
  235. type: string
  236. required:
  237. - key
  238. type: object
  239. type: array
  240. name:
  241. type: string
  242. required:
  243. - items
  244. - name
  245. type: object
  246. type: object
  247. type: array
  248. type:
  249. type: string
  250. type: object
  251. type: object
  252. required:
  253. - secretStoreRef
  254. - target
  255. type: object
  256. status:
  257. properties:
  258. conditions:
  259. items:
  260. properties:
  261. lastTransitionTime:
  262. format: date-time
  263. type: string
  264. message:
  265. type: string
  266. reason:
  267. type: string
  268. status:
  269. type: string
  270. type:
  271. type: string
  272. required:
  273. - status
  274. - type
  275. type: object
  276. type: array
  277. refreshTime:
  278. description: refreshTime is the time and date the external secret
  279. was fetched and the target secret updated
  280. format: date-time
  281. nullable: true
  282. type: string
  283. syncedResourceVersion:
  284. description: SyncedResourceVersion keeps track of the last synced
  285. version
  286. type: string
  287. type: object
  288. type: object
  289. served: true
  290. storage: true
  291. subresources:
  292. status: {}
  293. status:
  294. acceptedNames:
  295. kind: ""
  296. plural: ""
  297. conditions: []
  298. storedVersions: []