external-secrets.io_externalsecrets.yaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  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. properties:
  324. extract:
  325. description: Used to extract multiple key/value pairs from one
  326. secret
  327. properties:
  328. key:
  329. description: Key is the key used in the Provider, mandatory
  330. type: string
  331. property:
  332. description: Used to select a specific property of the Provider
  333. value (if a map), if supported
  334. type: string
  335. version:
  336. description: Used to select a specific version of the Provider
  337. value, if supported
  338. type: string
  339. required:
  340. - key
  341. type: object
  342. find:
  343. description: Used to find secrets based on tags or regular expressions
  344. properties:
  345. name:
  346. description: Finds secrets based on the name.
  347. properties:
  348. regexp:
  349. description: Finds secrets base
  350. type: string
  351. type: object
  352. tags:
  353. additionalProperties:
  354. type: string
  355. description: Find secrets based on tags.
  356. type: object
  357. type: object
  358. type: object
  359. type: array
  360. refreshInterval:
  361. default: 1h
  362. description: RefreshInterval is the amount of time before the values
  363. are read again from the SecretStore provider Valid time units are
  364. "ns", "us" (or "µs"), "ms", "s", "m", "h" May be set to zero to
  365. fetch and create it once. Defaults to 1h.
  366. type: string
  367. secretStoreRef:
  368. description: SecretStoreRef defines which SecretStore to fetch the
  369. ExternalSecret data.
  370. properties:
  371. kind:
  372. description: Kind of the SecretStore resource (SecretStore or
  373. ClusterSecretStore) Defaults to `SecretStore`
  374. type: string
  375. name:
  376. description: Name of the SecretStore resource
  377. type: string
  378. required:
  379. - name
  380. type: object
  381. target:
  382. description: ExternalSecretTarget defines the Kubernetes Secret to
  383. be created There can be only one target per ExternalSecret.
  384. properties:
  385. creationPolicy:
  386. default: Owner
  387. description: CreationPolicy defines rules on how to create the
  388. resulting Secret Defaults to 'Owner'
  389. type: string
  390. deletionPolicy:
  391. default: None
  392. description: DeletionPolicy defines rules on how to delete the
  393. resulting Secret Defaults to 'None'
  394. type: string
  395. immutable:
  396. description: Immutable defines if the final secret will be immutable
  397. type: boolean
  398. name:
  399. description: Name defines the name of the Secret resource to be
  400. managed This field is immutable Defaults to the .metadata.name
  401. of the ExternalSecret resource
  402. type: string
  403. template:
  404. description: Template defines a blueprint for the created Secret
  405. resource.
  406. properties:
  407. data:
  408. additionalProperties:
  409. type: string
  410. type: object
  411. engineVersion:
  412. default: v2
  413. type: string
  414. metadata:
  415. description: ExternalSecretTemplateMetadata defines metadata
  416. fields for the Secret blueprint.
  417. properties:
  418. annotations:
  419. additionalProperties:
  420. type: string
  421. type: object
  422. labels:
  423. additionalProperties:
  424. type: string
  425. type: object
  426. type: object
  427. templateFrom:
  428. items:
  429. maxProperties: 1
  430. minProperties: 1
  431. properties:
  432. configMap:
  433. properties:
  434. items:
  435. items:
  436. properties:
  437. key:
  438. type: string
  439. required:
  440. - key
  441. type: object
  442. type: array
  443. name:
  444. type: string
  445. required:
  446. - items
  447. - name
  448. type: object
  449. secret:
  450. properties:
  451. items:
  452. items:
  453. properties:
  454. key:
  455. type: string
  456. required:
  457. - key
  458. type: object
  459. type: array
  460. name:
  461. type: string
  462. required:
  463. - items
  464. - name
  465. type: object
  466. type: object
  467. type: array
  468. type:
  469. type: string
  470. type: object
  471. type: object
  472. required:
  473. - secretStoreRef
  474. - target
  475. type: object
  476. status:
  477. properties:
  478. conditions:
  479. items:
  480. properties:
  481. lastTransitionTime:
  482. format: date-time
  483. type: string
  484. message:
  485. type: string
  486. reason:
  487. type: string
  488. status:
  489. type: string
  490. type:
  491. type: string
  492. required:
  493. - status
  494. - type
  495. type: object
  496. type: array
  497. refreshTime:
  498. description: refreshTime is the time and date the external secret
  499. was fetched and the target secret updated
  500. format: date-time
  501. nullable: true
  502. type: string
  503. syncedResourceVersion:
  504. description: SyncedResourceVersion keeps track of the last synced
  505. version
  506. type: string
  507. type: object
  508. type: object
  509. served: true
  510. storage: true
  511. subresources:
  512. status: {}
  513. status:
  514. acceptedNames:
  515. kind: ""
  516. plural: ""
  517. conditions: []
  518. storedVersions: []