external-secrets.io_externalsecrets.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. dataAll:
  106. description: DataAll is used to fetch all properties from a specific
  107. Provider Backend 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. key:
  113. description: Key is the key used in the Provider, mandatory
  114. type: string
  115. property:
  116. description: Used to select a specific property of the Provider
  117. value (if a map), if supported
  118. type: string
  119. version:
  120. description: Used to select a specific version of the Provider
  121. value, if supported
  122. type: string
  123. required:
  124. - key
  125. type: object
  126. type: array
  127. refreshInterval:
  128. default: 1h
  129. description: RefreshInterval is the amount of time before the values
  130. are read again from the SecretStore provider Valid time units are
  131. "ns", "us" (or "µs"), "ms", "s", "m", "h" May be set to zero to
  132. fetch and create it once. Defaults to 1h.
  133. type: string
  134. secretStoreRef:
  135. description: SecretStoreRef defines which SecretStore to fetch the
  136. ExternalSecret data.
  137. properties:
  138. kind:
  139. description: Kind of the SecretStore resource (SecretStore or
  140. ClusterSecretStore) Defaults to `SecretStore`
  141. type: string
  142. name:
  143. description: Name of the SecretStore resource
  144. type: string
  145. required:
  146. - name
  147. type: object
  148. target:
  149. description: ExternalSecretTarget defines the Kubernetes Secret to
  150. be created There can be only one target per ExternalSecret.
  151. properties:
  152. creationPolicy:
  153. default: Owner
  154. description: CreationPolicy defines rules on how to create the
  155. resulting Secret Defaults to 'Owner'
  156. type: string
  157. immutable:
  158. description: Immutable defines if the final secret will be immutable
  159. type: boolean
  160. name:
  161. description: Name defines the name of the Secret resource to be
  162. managed This field is immutable Defaults to the .metadata.name
  163. of the ExternalSecret resource
  164. type: string
  165. template:
  166. description: Template defines a blueprint for the created Secret
  167. resource.
  168. properties:
  169. data:
  170. additionalProperties:
  171. type: string
  172. type: object
  173. metadata:
  174. description: ExternalSecretTemplateMetadata defines metadata
  175. fields for the Secret blueprint.
  176. properties:
  177. annotations:
  178. additionalProperties:
  179. type: string
  180. type: object
  181. labels:
  182. additionalProperties:
  183. type: string
  184. type: object
  185. type: object
  186. templateFrom:
  187. items:
  188. maxProperties: 1
  189. minProperties: 1
  190. properties:
  191. configMap:
  192. properties:
  193. items:
  194. items:
  195. properties:
  196. key:
  197. type: string
  198. required:
  199. - key
  200. type: object
  201. type: array
  202. name:
  203. type: string
  204. required:
  205. - items
  206. - name
  207. type: object
  208. secret:
  209. properties:
  210. items:
  211. items:
  212. properties:
  213. key:
  214. type: string
  215. required:
  216. - key
  217. type: object
  218. type: array
  219. name:
  220. type: string
  221. required:
  222. - items
  223. - name
  224. type: object
  225. type: object
  226. type: array
  227. type:
  228. type: string
  229. type: object
  230. type: object
  231. required:
  232. - secretStoreRef
  233. - target
  234. type: object
  235. status:
  236. properties:
  237. conditions:
  238. items:
  239. properties:
  240. lastTransitionTime:
  241. format: date-time
  242. type: string
  243. message:
  244. type: string
  245. reason:
  246. type: string
  247. status:
  248. type: string
  249. type:
  250. type: string
  251. required:
  252. - status
  253. - type
  254. type: object
  255. type: array
  256. refreshTime:
  257. description: refreshTime is the time and date the external secret
  258. was fetched and the target secret updated
  259. format: date-time
  260. nullable: true
  261. type: string
  262. syncedResourceVersion:
  263. description: SyncedResourceVersion keeps track of the last synced
  264. version
  265. type: string
  266. type: object
  267. type: object
  268. served: true
  269. storage: true
  270. subresources:
  271. status: {}
  272. status:
  273. acceptedNames:
  274. kind: ""
  275. plural: ""
  276. conditions: []
  277. storedVersions: []