external-secrets.io_externalsecrets.yaml 22 KB

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