external-secrets.io_clusterexternalsecrets.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. type: string
  172. deletionPolicy:
  173. default: None
  174. description: DeletionPolicy defines rules on how to delete
  175. the resulting Secret Defaults to 'None'
  176. type: string
  177. immutable:
  178. description: Immutable defines if the final secret will be
  179. immutable
  180. type: boolean
  181. name:
  182. description: Name defines the name of the Secret resource
  183. to be managed This field is immutable Defaults to the .metadata.name
  184. of the ExternalSecret resource
  185. type: string
  186. template:
  187. description: Template defines a blueprint for the created
  188. Secret resource.
  189. properties:
  190. data:
  191. additionalProperties:
  192. type: string
  193. type: object
  194. engineVersion:
  195. default: v2
  196. type: string
  197. metadata:
  198. description: ExternalSecretTemplateMetadata defines metadata
  199. fields for the Secret blueprint.
  200. properties:
  201. annotations:
  202. additionalProperties:
  203. type: string
  204. type: object
  205. labels:
  206. additionalProperties:
  207. type: string
  208. type: object
  209. type: object
  210. templateFrom:
  211. items:
  212. maxProperties: 1
  213. minProperties: 1
  214. properties:
  215. configMap:
  216. properties:
  217. items:
  218. items:
  219. properties:
  220. key:
  221. type: string
  222. required:
  223. - key
  224. type: object
  225. type: array
  226. name:
  227. type: string
  228. required:
  229. - items
  230. - name
  231. type: object
  232. secret:
  233. properties:
  234. items:
  235. items:
  236. properties:
  237. key:
  238. type: string
  239. required:
  240. - key
  241. type: object
  242. type: array
  243. name:
  244. type: string
  245. required:
  246. - items
  247. - name
  248. type: object
  249. type: object
  250. type: array
  251. type:
  252. type: string
  253. type: object
  254. type: object
  255. required:
  256. - secretStoreRef
  257. - target
  258. type: object
  259. namespaceSelector:
  260. description: The labels to select by to find the Namespaces to create
  261. the ExternalSecrets in.
  262. properties:
  263. matchExpressions:
  264. description: matchExpressions is a list of label selector requirements.
  265. The requirements are ANDed.
  266. items:
  267. description: A label selector requirement is a selector that
  268. contains values, a key, and an operator that relates the key
  269. and values.
  270. properties:
  271. key:
  272. description: key is the label key that the selector applies
  273. to.
  274. type: string
  275. operator:
  276. description: operator represents a key's relationship to
  277. a set of values. Valid operators are In, NotIn, Exists
  278. and DoesNotExist.
  279. type: string
  280. values:
  281. description: values is an array of string values. If the
  282. operator is In or NotIn, the values array must be non-empty.
  283. If the operator is Exists or DoesNotExist, the values
  284. array must be empty. This array is replaced during a strategic
  285. merge patch.
  286. items:
  287. type: string
  288. type: array
  289. required:
  290. - key
  291. - operator
  292. type: object
  293. type: array
  294. matchLabels:
  295. additionalProperties:
  296. type: string
  297. description: matchLabels is a map of {key,value} pairs. A single
  298. {key,value} in the matchLabels map is equivalent to an element
  299. of matchExpressions, whose key field is "key", the operator
  300. is "In", and the values array contains only "value". The requirements
  301. are ANDed.
  302. type: object
  303. type: object
  304. refreshTime:
  305. description: The time in which the controller should reconcile it's
  306. objects and recheck namespaces for labels.
  307. type: string
  308. required:
  309. - externalSecretSpec
  310. - namespaceSelector
  311. type: object
  312. status:
  313. description: ClusterExternalSecretStatus defines the observed state of
  314. ClusterExternalSecret.
  315. properties:
  316. conditions:
  317. items:
  318. properties:
  319. message:
  320. type: string
  321. status:
  322. type: string
  323. type:
  324. type: string
  325. required:
  326. - status
  327. - type
  328. type: object
  329. type: array
  330. failedNamespaces:
  331. description: Failed namespaces are the namespaces that failed to apply
  332. an ExternalSecret
  333. items:
  334. description: ClusterExternalSecretNamespaceFailure represents a
  335. failed namespace deployment and it's reason.
  336. properties:
  337. namespace:
  338. description: Namespace is the namespace that failed when trying
  339. to apply an ExternalSecret
  340. type: string
  341. reason:
  342. description: Reason is why the ExternalSecret failed to apply
  343. to the namespace
  344. type: string
  345. required:
  346. - namespace
  347. type: object
  348. type: array
  349. provisionedNamespaces:
  350. description: ProvisionedNamespaces are the namespaces where the ClusterExternalSecret
  351. has secrets
  352. items:
  353. type: string
  354. type: array
  355. type: object
  356. type: object
  357. served: true
  358. storage: true
  359. subresources:
  360. status: {}
  361. status:
  362. acceptedNames:
  363. kind: ""
  364. plural: ""
  365. conditions: []
  366. storedVersions: []