external-secrets.io_externalsecrets.yaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  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. 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. engineVersion:
  152. default: v1
  153. description: EngineVersion specifies the template engine version
  154. that should be used to compile/execute the template specified
  155. in .data and .templateFrom[].
  156. type: string
  157. metadata:
  158. description: ExternalSecretTemplateMetadata defines metadata
  159. fields for the Secret blueprint.
  160. properties:
  161. annotations:
  162. additionalProperties:
  163. type: string
  164. type: object
  165. labels:
  166. additionalProperties:
  167. type: string
  168. type: object
  169. type: object
  170. templateFrom:
  171. items:
  172. maxProperties: 1
  173. minProperties: 1
  174. properties:
  175. configMap:
  176. properties:
  177. items:
  178. items:
  179. properties:
  180. key:
  181. type: string
  182. required:
  183. - key
  184. type: object
  185. type: array
  186. name:
  187. type: string
  188. required:
  189. - items
  190. - name
  191. type: object
  192. secret:
  193. properties:
  194. items:
  195. items:
  196. properties:
  197. key:
  198. type: string
  199. required:
  200. - key
  201. type: object
  202. type: array
  203. name:
  204. type: string
  205. required:
  206. - items
  207. - name
  208. type: object
  209. type: object
  210. type: array
  211. type:
  212. type: string
  213. type: object
  214. type: object
  215. required:
  216. - secretStoreRef
  217. - target
  218. type: object
  219. status:
  220. properties:
  221. conditions:
  222. items:
  223. properties:
  224. lastTransitionTime:
  225. format: date-time
  226. type: string
  227. message:
  228. type: string
  229. reason:
  230. type: string
  231. status:
  232. type: string
  233. type:
  234. type: string
  235. required:
  236. - status
  237. - type
  238. type: object
  239. type: array
  240. refreshTime:
  241. description: refreshTime is the time and date the external secret
  242. was fetched and the target secret updated
  243. format: date-time
  244. nullable: true
  245. type: string
  246. syncedResourceVersion:
  247. description: SyncedResourceVersion keeps track of the last synced
  248. version
  249. type: string
  250. type: object
  251. type: object
  252. served: true
  253. storage: false
  254. subresources:
  255. status: {}
  256. - additionalPrinterColumns:
  257. - jsonPath: .spec.secretStoreRef.name
  258. name: Store
  259. type: string
  260. - jsonPath: .spec.refreshInterval
  261. name: Refresh Interval
  262. type: string
  263. - jsonPath: .status.conditions[?(@.type=="Ready")].reason
  264. name: Status
  265. type: string
  266. name: v1beta1
  267. schema:
  268. openAPIV3Schema:
  269. description: ExternalSecret is the Schema for the external-secrets API.
  270. properties:
  271. apiVersion:
  272. description: 'APIVersion defines the versioned schema of this representation
  273. of an object. Servers should convert recognized schemas to the latest
  274. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  275. type: string
  276. kind:
  277. description: 'Kind is a string value representing the REST resource this
  278. object represents. Servers may infer this from the endpoint the client
  279. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  280. type: string
  281. metadata:
  282. type: object
  283. spec:
  284. description: ExternalSecretSpec defines the desired state of ExternalSecret.
  285. properties:
  286. data:
  287. description: Data defines the connection between the Kubernetes Secret
  288. keys and the Provider data
  289. items:
  290. description: ExternalSecretData defines the connection between the
  291. Kubernetes Secret key (spec.data.<key>) and the Provider data.
  292. properties:
  293. remoteRef:
  294. description: ExternalSecretDataRemoteRef defines Provider data
  295. location.
  296. properties:
  297. key:
  298. description: Key is the key used in the Provider, mandatory
  299. type: string
  300. property:
  301. description: Used to select a specific property of the Provider
  302. value (if a map), if supported
  303. type: string
  304. version:
  305. description: Used to select a specific version of the Provider
  306. value, if supported
  307. type: string
  308. required:
  309. - key
  310. type: object
  311. secretKey:
  312. type: string
  313. required:
  314. - remoteRef
  315. - secretKey
  316. type: object
  317. type: array
  318. dataFrom:
  319. description: DataFrom is used to fetch all properties from a specific
  320. Provider data If multiple entries are specified, the Secret keys
  321. are merged in the specified order
  322. items:
  323. maxProperties: 1
  324. minProperties: 1
  325. properties:
  326. extract:
  327. description: Used to extract multiple key/value pairs from one
  328. secret
  329. properties:
  330. key:
  331. description: Key is the key used in the Provider, mandatory
  332. type: string
  333. property:
  334. description: Used to select a specific property of the Provider
  335. value (if a map), if supported
  336. type: string
  337. version:
  338. description: Used to select a specific version of the Provider
  339. value, if supported
  340. type: string
  341. required:
  342. - key
  343. type: object
  344. find:
  345. description: Used to find secrets based on tags or regular expressions
  346. maxProperties: 1
  347. minProperties: 1
  348. properties:
  349. name:
  350. description: Finds secrets based on the name.
  351. properties:
  352. regexp:
  353. description: Finds secrets base
  354. type: string
  355. type: object
  356. tags:
  357. additionalProperties:
  358. type: string
  359. description: Find secrets based on tags.
  360. type: object
  361. type: object
  362. type: object
  363. type: array
  364. refreshInterval:
  365. default: 1h
  366. description: RefreshInterval is the amount of time before the values
  367. are read again from the SecretStore provider Valid time units are
  368. "ns", "us" (or "µs"), "ms", "s", "m", "h" May be set to zero to
  369. fetch and create it once. Defaults to 1h.
  370. type: string
  371. secretStoreRef:
  372. description: SecretStoreRef defines which SecretStore to fetch the
  373. ExternalSecret data.
  374. properties:
  375. kind:
  376. description: Kind of the SecretStore resource (SecretStore or
  377. ClusterSecretStore) Defaults to `SecretStore`
  378. type: string
  379. name:
  380. description: Name of the SecretStore resource
  381. type: string
  382. required:
  383. - name
  384. type: object
  385. target:
  386. description: ExternalSecretTarget defines the Kubernetes Secret to
  387. be created There can be only one target per ExternalSecret.
  388. properties:
  389. creationPolicy:
  390. default: Owner
  391. description: CreationPolicy defines rules on how to create the
  392. resulting Secret Defaults to 'Owner'
  393. type: string
  394. deletionPolicy:
  395. default: None
  396. description: DeletionPolicy defines rules on how to delete the
  397. resulting Secret Defaults to 'None'
  398. type: string
  399. immutable:
  400. description: Immutable defines if the final secret will be immutable
  401. type: boolean
  402. name:
  403. description: Name defines the name of the Secret resource to be
  404. managed This field is immutable Defaults to the .metadata.name
  405. of the ExternalSecret resource
  406. type: string
  407. template:
  408. description: Template defines a blueprint for the created Secret
  409. resource.
  410. properties:
  411. data:
  412. additionalProperties:
  413. type: string
  414. type: object
  415. engineVersion:
  416. default: v2
  417. type: string
  418. metadata:
  419. description: ExternalSecretTemplateMetadata defines metadata
  420. fields for the Secret blueprint.
  421. properties:
  422. annotations:
  423. additionalProperties:
  424. type: string
  425. type: object
  426. labels:
  427. additionalProperties:
  428. type: string
  429. type: object
  430. type: object
  431. templateFrom:
  432. items:
  433. maxProperties: 1
  434. minProperties: 1
  435. properties:
  436. configMap:
  437. properties:
  438. items:
  439. items:
  440. properties:
  441. key:
  442. type: string
  443. required:
  444. - key
  445. type: object
  446. type: array
  447. name:
  448. type: string
  449. required:
  450. - items
  451. - name
  452. type: object
  453. secret:
  454. properties:
  455. items:
  456. items:
  457. properties:
  458. key:
  459. type: string
  460. required:
  461. - key
  462. type: object
  463. type: array
  464. name:
  465. type: string
  466. required:
  467. - items
  468. - name
  469. type: object
  470. type: object
  471. type: array
  472. type:
  473. type: string
  474. type: object
  475. type: object
  476. required:
  477. - secretStoreRef
  478. - target
  479. type: object
  480. status:
  481. properties:
  482. conditions:
  483. items:
  484. properties:
  485. lastTransitionTime:
  486. format: date-time
  487. type: string
  488. message:
  489. type: string
  490. reason:
  491. type: string
  492. status:
  493. type: string
  494. type:
  495. type: string
  496. required:
  497. - status
  498. - type
  499. type: object
  500. type: array
  501. refreshTime:
  502. description: refreshTime is the time and date the external secret
  503. was fetched and the target secret updated
  504. format: date-time
  505. nullable: true
  506. type: string
  507. syncedResourceVersion:
  508. description: SyncedResourceVersion keeps track of the last synced
  509. version
  510. type: string
  511. type: object
  512. type: object
  513. served: true
  514. storage: true
  515. subresources:
  516. status: {}
  517. status:
  518. acceptedNames:
  519. kind: ""
  520. plural: ""
  521. conditions: []
  522. storedVersions: []