external-secrets.io_clusterexternalsecrets.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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: clusterexternalsecrets.external-secrets.io
  8. spec:
  9. group: external-secrets.io
  10. names:
  11. categories:
  12. - externalsecrets
  13. kind: ClusterExternalSecret
  14. listKind: ClusterExternalSecretList
  15. plural: clusterexternalsecrets
  16. shortNames:
  17. - ces
  18. singular: clusterexternalsecret
  19. scope: Cluster
  20. versions:
  21. - name: v1beta1
  22. schema:
  23. openAPIV3Schema:
  24. description: ClusterExternalSecret is the Schema for the clusterexternalsecrets
  25. API.
  26. properties:
  27. apiVersion:
  28. description: 'APIVersion defines the versioned schema of this representation
  29. of an object. Servers should convert recognized schemas to the latest
  30. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  31. type: string
  32. kind:
  33. description: 'Kind is a string value representing the REST resource this
  34. object represents. Servers may infer this from the endpoint the client
  35. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  36. type: string
  37. metadata:
  38. type: object
  39. spec:
  40. description: ClusterExternalSecretSpec defines the desired state of ClusterExternalSecret.
  41. properties:
  42. externalSecretName:
  43. description: The name of the external secrets to be created defaults
  44. to the name of the ClusterExternalSecret
  45. type: string
  46. externalSecretSpec:
  47. description: The spec for the ExternalSecrets to be created
  48. properties:
  49. data:
  50. description: Data defines the connection between the Kubernetes
  51. Secret keys and the Provider data
  52. items:
  53. description: ExternalSecretData defines the connection between
  54. the Kubernetes Secret key (spec.data.<key>) and the Provider
  55. data.
  56. properties:
  57. remoteRef:
  58. description: ExternalSecretDataRemoteRef defines Provider
  59. data location.
  60. properties:
  61. conversionStrategy:
  62. default: Default
  63. description: Used to define a conversion Strategy
  64. type: string
  65. key:
  66. description: Key is the key used in the Provider, mandatory
  67. type: string
  68. property:
  69. description: Used to select a specific property of the
  70. Provider value (if a map), if supported
  71. type: string
  72. version:
  73. description: Used to select a specific version of the
  74. Provider value, if supported
  75. type: string
  76. required:
  77. - key
  78. type: object
  79. secretKey:
  80. type: string
  81. required:
  82. - remoteRef
  83. - secretKey
  84. type: object
  85. type: array
  86. dataFrom:
  87. description: DataFrom is used to fetch all properties from a specific
  88. Provider data If multiple entries are specified, the Secret
  89. keys are merged in the specified order
  90. items:
  91. maxProperties: 1
  92. minProperties: 1
  93. properties:
  94. extract:
  95. description: Used to extract multiple key/value pairs from
  96. one secret
  97. properties:
  98. conversionStrategy:
  99. default: Default
  100. description: Used to define a conversion Strategy
  101. type: string
  102. key:
  103. description: Key is the key used in the Provider, mandatory
  104. type: string
  105. property:
  106. description: Used to select a specific property of the
  107. Provider value (if a map), if supported
  108. type: string
  109. version:
  110. description: Used to select a specific version of the
  111. Provider value, if supported
  112. type: string
  113. required:
  114. - key
  115. type: object
  116. find:
  117. description: Used to find secrets based on tags or regular
  118. expressions
  119. properties:
  120. conversionStrategy:
  121. default: Default
  122. description: Used to define a conversion Strategy
  123. type: string
  124. name:
  125. description: Finds secrets based on the name.
  126. properties:
  127. regexp:
  128. description: Finds secrets base
  129. type: string
  130. type: object
  131. path:
  132. description: A root path to start the find operations.
  133. type: string
  134. tags:
  135. additionalProperties:
  136. type: string
  137. description: Find secrets based on tags.
  138. type: object
  139. type: object
  140. type: object
  141. type: array
  142. refreshInterval:
  143. default: 1h
  144. description: RefreshInterval is the amount of time before the
  145. values are read again from the SecretStore provider Valid time
  146. units are "ns", "us" (or "µs"), "ms", "s", "m", "h" May be set
  147. to zero to fetch and create it once. Defaults to 1h.
  148. type: string
  149. secretStoreRef:
  150. description: SecretStoreRef defines which SecretStore to fetch
  151. the ExternalSecret data.
  152. properties:
  153. kind:
  154. description: Kind of the SecretStore resource (SecretStore
  155. or ClusterSecretStore) Defaults to `SecretStore`
  156. type: string
  157. name:
  158. description: Name of the SecretStore resource
  159. type: string
  160. required:
  161. - name
  162. type: object
  163. target:
  164. description: ExternalSecretTarget defines the Kubernetes Secret
  165. to be created There can be only one target per ExternalSecret.
  166. properties:
  167. creationPolicy:
  168. default: Owner
  169. description: CreationPolicy defines rules on how to create
  170. the resulting Secret Defaults to 'Owner'
  171. enum:
  172. - Owner
  173. - Orphan
  174. - Merge
  175. - None
  176. type: string
  177. deletionPolicy:
  178. default: Retain
  179. description: DeletionPolicy defines rules on how to delete
  180. the resulting Secret Defaults to 'Retain'
  181. enum:
  182. - Delete
  183. - Merge
  184. - Retain
  185. type: string
  186. immutable:
  187. description: Immutable defines if the final secret will be
  188. immutable
  189. type: boolean
  190. name:
  191. description: Name defines the name of the Secret resource
  192. to be managed This field is immutable Defaults to the .metadata.name
  193. of the ExternalSecret resource
  194. type: string
  195. template:
  196. description: Template defines a blueprint for the created
  197. Secret resource.
  198. properties:
  199. data:
  200. additionalProperties:
  201. type: string
  202. type: object
  203. engineVersion:
  204. default: v2
  205. type: string
  206. metadata:
  207. description: ExternalSecretTemplateMetadata defines metadata
  208. fields for the Secret blueprint.
  209. properties:
  210. annotations:
  211. additionalProperties:
  212. type: string
  213. type: object
  214. labels:
  215. additionalProperties:
  216. type: string
  217. type: object
  218. type: object
  219. templateFrom:
  220. items:
  221. maxProperties: 1
  222. minProperties: 1
  223. properties:
  224. configMap:
  225. properties:
  226. items:
  227. items:
  228. properties:
  229. key:
  230. type: string
  231. required:
  232. - key
  233. type: object
  234. type: array
  235. name:
  236. type: string
  237. required:
  238. - items
  239. - name
  240. type: object
  241. secret:
  242. properties:
  243. items:
  244. items:
  245. properties:
  246. key:
  247. type: string
  248. required:
  249. - key
  250. type: object
  251. type: array
  252. name:
  253. type: string
  254. required:
  255. - items
  256. - name
  257. type: object
  258. type: object
  259. type: array
  260. type:
  261. type: string
  262. type: object
  263. type: object
  264. required:
  265. - secretStoreRef
  266. type: object
  267. namespaceSelector:
  268. description: The labels to select by to find the Namespaces to create
  269. the ExternalSecrets in.
  270. properties:
  271. matchExpressions:
  272. description: matchExpressions is a list of label selector requirements.
  273. The requirements are ANDed.
  274. items:
  275. description: A label selector requirement is a selector that
  276. contains values, a key, and an operator that relates the key
  277. and values.
  278. properties:
  279. key:
  280. description: key is the label key that the selector applies
  281. to.
  282. type: string
  283. operator:
  284. description: operator represents a key's relationship to
  285. a set of values. Valid operators are In, NotIn, Exists
  286. and DoesNotExist.
  287. type: string
  288. values:
  289. description: values is an array of string values. If the
  290. operator is In or NotIn, the values array must be non-empty.
  291. If the operator is Exists or DoesNotExist, the values
  292. array must be empty. This array is replaced during a strategic
  293. merge patch.
  294. items:
  295. type: string
  296. type: array
  297. required:
  298. - key
  299. - operator
  300. type: object
  301. type: array
  302. matchLabels:
  303. additionalProperties:
  304. type: string
  305. description: matchLabels is a map of {key,value} pairs. A single
  306. {key,value} in the matchLabels map is equivalent to an element
  307. of matchExpressions, whose key field is "key", the operator
  308. is "In", and the values array contains only "value". The requirements
  309. are ANDed.
  310. type: object
  311. type: object
  312. refreshTime:
  313. description: The time in which the controller should reconcile it's
  314. objects and recheck namespaces for labels.
  315. type: string
  316. required:
  317. - externalSecretSpec
  318. - namespaceSelector
  319. type: object
  320. status:
  321. description: ClusterExternalSecretStatus defines the observed state of
  322. ClusterExternalSecret.
  323. properties:
  324. conditions:
  325. items:
  326. properties:
  327. message:
  328. type: string
  329. status:
  330. type: string
  331. type:
  332. type: string
  333. required:
  334. - status
  335. - type
  336. type: object
  337. type: array
  338. failedNamespaces:
  339. description: Failed namespaces are the namespaces that failed to apply
  340. an ExternalSecret
  341. items:
  342. description: ClusterExternalSecretNamespaceFailure represents a
  343. failed namespace deployment and it's reason.
  344. properties:
  345. namespace:
  346. description: Namespace is the namespace that failed when trying
  347. to apply an ExternalSecret
  348. type: string
  349. reason:
  350. description: Reason is why the ExternalSecret failed to apply
  351. to the namespace
  352. type: string
  353. required:
  354. - namespace
  355. type: object
  356. type: array
  357. provisionedNamespaces:
  358. description: ProvisionedNamespaces are the namespaces where the ClusterExternalSecret
  359. has secrets
  360. items:
  361. type: string
  362. type: array
  363. type: object
  364. type: object
  365. served: true
  366. storage: true
  367. subresources:
  368. status: {}
  369. status:
  370. acceptedNames:
  371. kind: ""
  372. plural: ""
  373. conditions: []
  374. storedVersions: []