external-secrets.io_externalsecrets.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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: true
  254. subresources:
  255. status: {}
  256. status:
  257. acceptedNames:
  258. kind: ""
  259. plural: ""
  260. conditions: []
  261. storedVersions: []