external-secrets.io_clusterexternalsecrets.yaml 84 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.19.0
  6. labels:
  7. external-secrets.io/component: controller
  8. name: clusterexternalsecrets.external-secrets.io
  9. spec:
  10. group: external-secrets.io
  11. names:
  12. categories:
  13. - external-secrets
  14. kind: ClusterExternalSecret
  15. listKind: ClusterExternalSecretList
  16. plural: clusterexternalsecrets
  17. shortNames:
  18. - ces
  19. singular: clusterexternalsecret
  20. scope: Cluster
  21. versions:
  22. - additionalPrinterColumns:
  23. - jsonPath: .spec.externalSecretSpec.secretStoreRef.name
  24. name: Store
  25. type: string
  26. - jsonPath: .spec.refreshTime
  27. name: Refresh Interval
  28. type: string
  29. - jsonPath: .status.conditions[?(@.type=="Ready")].status
  30. name: Ready
  31. type: string
  32. name: v1
  33. schema:
  34. openAPIV3Schema:
  35. description: ClusterExternalSecret is the Schema for the clusterexternalsecrets
  36. API.
  37. properties:
  38. apiVersion:
  39. description: |-
  40. APIVersion defines the versioned schema of this representation of an object.
  41. Servers should convert recognized schemas to the latest internal value, and
  42. may reject unrecognized values.
  43. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  44. type: string
  45. kind:
  46. description: |-
  47. Kind is a string value representing the REST resource this object represents.
  48. Servers may infer this from the endpoint the client submits requests to.
  49. Cannot be updated.
  50. In CamelCase.
  51. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  52. type: string
  53. metadata:
  54. type: object
  55. spec:
  56. description: ClusterExternalSecretSpec defines the desired state of ClusterExternalSecret.
  57. properties:
  58. externalSecretMetadata:
  59. description: The metadata of the external secrets to be created
  60. properties:
  61. annotations:
  62. additionalProperties:
  63. type: string
  64. type: object
  65. labels:
  66. additionalProperties:
  67. type: string
  68. type: object
  69. type: object
  70. externalSecretName:
  71. description: |-
  72. The name of the external secrets to be created.
  73. Defaults to the name of the ClusterExternalSecret
  74. maxLength: 253
  75. minLength: 1
  76. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  77. type: string
  78. externalSecretSpec:
  79. description: The spec for the ExternalSecrets to be created
  80. properties:
  81. data:
  82. description: Data defines the connection between the Kubernetes
  83. Secret keys and the Provider data
  84. items:
  85. description: ExternalSecretData defines the connection between
  86. the Kubernetes Secret key (spec.data.<key>) and the Provider
  87. data.
  88. properties:
  89. remoteRef:
  90. description: |-
  91. RemoteRef points to the remote secret and defines
  92. which secret (version/property/..) to fetch.
  93. properties:
  94. conversionStrategy:
  95. default: Default
  96. description: Used to define a conversion Strategy
  97. enum:
  98. - Default
  99. - Unicode
  100. type: string
  101. decodingStrategy:
  102. default: None
  103. description: Used to define a decoding Strategy
  104. enum:
  105. - Auto
  106. - Base64
  107. - Base64URL
  108. - None
  109. type: string
  110. key:
  111. description: Key is the key used in the Provider, mandatory
  112. type: string
  113. metadataPolicy:
  114. default: None
  115. description: Policy for fetching tags/labels from provider
  116. secrets, possible options are Fetch, None. Defaults
  117. to None
  118. enum:
  119. - None
  120. - Fetch
  121. type: string
  122. property:
  123. description: Used to select a specific property of the
  124. Provider value (if a map), if supported
  125. type: string
  126. version:
  127. description: Used to select a specific version of the
  128. Provider value, if supported
  129. type: string
  130. required:
  131. - key
  132. type: object
  133. secretKey:
  134. description: The key in the Kubernetes Secret to store the
  135. value.
  136. maxLength: 253
  137. minLength: 1
  138. pattern: ^[-._a-zA-Z0-9]+$
  139. type: string
  140. sourceRef:
  141. description: |-
  142. SourceRef allows you to override the source
  143. from which the value will be pulled.
  144. maxProperties: 1
  145. minProperties: 1
  146. properties:
  147. generatorRef:
  148. description: |-
  149. GeneratorRef points to a generator custom resource.
  150. Deprecated: The generatorRef is not implemented in .data[].
  151. this will be removed with v1.
  152. properties:
  153. apiVersion:
  154. default: generators.external-secrets.io/v1alpha1
  155. description: Specify the apiVersion of the generator
  156. resource
  157. type: string
  158. kind:
  159. description: Specify the Kind of the generator resource
  160. enum:
  161. - ACRAccessToken
  162. - ClusterGenerator
  163. - CloudsmithAccessToken
  164. - ECRAuthorizationToken
  165. - Fake
  166. - GCRAccessToken
  167. - GithubAccessToken
  168. - QuayAccessToken
  169. - Password
  170. - SSHKey
  171. - STSSessionToken
  172. - UUID
  173. - VaultDynamicSecret
  174. - Webhook
  175. - Grafana
  176. - MFA
  177. type: string
  178. name:
  179. description: Specify the name of the generator resource
  180. maxLength: 253
  181. minLength: 1
  182. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  183. type: string
  184. required:
  185. - kind
  186. - name
  187. type: object
  188. storeRef:
  189. description: SecretStoreRef defines which SecretStore
  190. to fetch the ExternalSecret data.
  191. properties:
  192. kind:
  193. description: |-
  194. Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
  195. Defaults to `SecretStore`
  196. enum:
  197. - SecretStore
  198. - ClusterSecretStore
  199. type: string
  200. name:
  201. description: Name of the SecretStore resource
  202. maxLength: 253
  203. minLength: 1
  204. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  205. type: string
  206. type: object
  207. type: object
  208. required:
  209. - remoteRef
  210. - secretKey
  211. type: object
  212. type: array
  213. dataFrom:
  214. description: |-
  215. DataFrom is used to fetch all properties from a specific Provider data
  216. If multiple entries are specified, the Secret keys are merged in the specified order
  217. items:
  218. description: |-
  219. ExternalSecretDataFromRemoteRef defines the connection between the Kubernetes Secret keys and the Provider data
  220. when using DataFrom to fetch multiple values from a Provider.
  221. properties:
  222. extract:
  223. description: |-
  224. Used to extract multiple key/value pairs from one secret
  225. Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef.
  226. properties:
  227. conversionStrategy:
  228. default: Default
  229. description: Used to define a conversion Strategy
  230. enum:
  231. - Default
  232. - Unicode
  233. type: string
  234. decodingStrategy:
  235. default: None
  236. description: Used to define a decoding Strategy
  237. enum:
  238. - Auto
  239. - Base64
  240. - Base64URL
  241. - None
  242. type: string
  243. key:
  244. description: Key is the key used in the Provider, mandatory
  245. type: string
  246. metadataPolicy:
  247. default: None
  248. description: Policy for fetching tags/labels from provider
  249. secrets, possible options are Fetch, None. Defaults
  250. to None
  251. enum:
  252. - None
  253. - Fetch
  254. type: string
  255. property:
  256. description: Used to select a specific property of the
  257. Provider value (if a map), if supported
  258. type: string
  259. version:
  260. description: Used to select a specific version of the
  261. Provider value, if supported
  262. type: string
  263. required:
  264. - key
  265. type: object
  266. find:
  267. description: |-
  268. Used to find secrets based on tags or regular expressions
  269. Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef.
  270. properties:
  271. conversionStrategy:
  272. default: Default
  273. description: Used to define a conversion Strategy
  274. enum:
  275. - Default
  276. - Unicode
  277. type: string
  278. decodingStrategy:
  279. default: None
  280. description: Used to define a decoding Strategy
  281. enum:
  282. - Auto
  283. - Base64
  284. - Base64URL
  285. - None
  286. type: string
  287. name:
  288. description: Finds secrets based on the name.
  289. properties:
  290. regexp:
  291. description: Finds secrets base
  292. type: string
  293. type: object
  294. path:
  295. description: A root path to start the find operations.
  296. type: string
  297. tags:
  298. additionalProperties:
  299. type: string
  300. description: Find secrets based on tags.
  301. type: object
  302. type: object
  303. rewrite:
  304. description: |-
  305. Used to rewrite secret Keys after getting them from the secret Provider
  306. Multiple Rewrite operations can be provided. They are applied in a layered order (first to last)
  307. items:
  308. description: ExternalSecretRewrite defines how to rewrite
  309. secret data values before they are written to the Secret.
  310. maxProperties: 1
  311. minProperties: 1
  312. properties:
  313. merge:
  314. description: |-
  315. Used to merge key/values in one single Secret
  316. The resulting key will contain all values from the specified secrets
  317. properties:
  318. conflictPolicy:
  319. default: Error
  320. description: Used to define the policy to use
  321. in conflict resolution.
  322. enum:
  323. - Ignore
  324. - Error
  325. type: string
  326. into:
  327. default: ""
  328. description: |-
  329. Used to define the target key of the merge operation.
  330. Required if strategy is JSON. Ignored otherwise.
  331. type: string
  332. priority:
  333. description: Used to define key priority in conflict
  334. resolution.
  335. items:
  336. type: string
  337. type: array
  338. priorityPolicy:
  339. default: Strict
  340. description: Used to define the policy when a
  341. key in the priority list does not exist in the
  342. input.
  343. enum:
  344. - IgnoreNotFound
  345. - Strict
  346. type: string
  347. strategy:
  348. default: Extract
  349. description: Used to define the strategy to use
  350. in the merge operation.
  351. enum:
  352. - Extract
  353. - JSON
  354. type: string
  355. type: object
  356. regexp:
  357. description: |-
  358. Used to rewrite with regular expressions.
  359. The resulting key will be the output of a regexp.ReplaceAll operation.
  360. properties:
  361. source:
  362. description: Used to define the regular expression
  363. of a re.Compiler.
  364. type: string
  365. target:
  366. description: Used to define the target pattern
  367. of a ReplaceAll operation.
  368. type: string
  369. required:
  370. - source
  371. - target
  372. type: object
  373. transform:
  374. description: |-
  375. Used to apply string transformation on the secrets.
  376. The resulting key will be the output of the template applied by the operation.
  377. properties:
  378. template:
  379. description: |-
  380. Used to define the template to apply on the secret name.
  381. `.value ` will specify the secret name in the template.
  382. type: string
  383. required:
  384. - template
  385. type: object
  386. type: object
  387. type: array
  388. sourceRef:
  389. description: |-
  390. SourceRef points to a store or generator
  391. which contains secret values ready to use.
  392. Use this in combination with Extract or Find pull values out of
  393. a specific SecretStore.
  394. When sourceRef points to a generator Extract or Find is not supported.
  395. The generator returns a static map of values
  396. maxProperties: 1
  397. minProperties: 1
  398. properties:
  399. generatorRef:
  400. description: GeneratorRef points to a generator custom
  401. resource.
  402. properties:
  403. apiVersion:
  404. default: generators.external-secrets.io/v1alpha1
  405. description: Specify the apiVersion of the generator
  406. resource
  407. type: string
  408. kind:
  409. description: Specify the Kind of the generator resource
  410. enum:
  411. - ACRAccessToken
  412. - ClusterGenerator
  413. - CloudsmithAccessToken
  414. - ECRAuthorizationToken
  415. - Fake
  416. - GCRAccessToken
  417. - GithubAccessToken
  418. - QuayAccessToken
  419. - Password
  420. - SSHKey
  421. - STSSessionToken
  422. - UUID
  423. - VaultDynamicSecret
  424. - Webhook
  425. - Grafana
  426. - MFA
  427. type: string
  428. name:
  429. description: Specify the name of the generator resource
  430. maxLength: 253
  431. minLength: 1
  432. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  433. type: string
  434. required:
  435. - kind
  436. - name
  437. type: object
  438. storeRef:
  439. description: SecretStoreRef defines which SecretStore
  440. to fetch the ExternalSecret data.
  441. properties:
  442. kind:
  443. description: |-
  444. Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
  445. Defaults to `SecretStore`
  446. enum:
  447. - SecretStore
  448. - ClusterSecretStore
  449. type: string
  450. name:
  451. description: Name of the SecretStore resource
  452. maxLength: 253
  453. minLength: 1
  454. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  455. type: string
  456. type: object
  457. type: object
  458. type: object
  459. type: array
  460. refreshInterval:
  461. default: 1h0m0s
  462. description: |-
  463. RefreshInterval is the amount of time before the values are read again from the SecretStore provider,
  464. specified as Golang Duration strings.
  465. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"
  466. Example values: "1h0m0s", "2h30m0s", "10m0s"
  467. May be set to "0s" to fetch and create it once. Defaults to 1h0m0s.
  468. type: string
  469. refreshPolicy:
  470. description: |-
  471. RefreshPolicy determines how the ExternalSecret should be refreshed:
  472. - CreatedOnce: Creates the Secret only if it does not exist and does not update it thereafter
  473. - Periodic: Synchronizes the Secret from the external source at regular intervals specified by refreshInterval.
  474. No periodic updates occur if refreshInterval is 0.
  475. - OnChange: Only synchronizes the Secret when the ExternalSecret's metadata or specification changes
  476. enum:
  477. - CreatedOnce
  478. - Periodic
  479. - OnChange
  480. type: string
  481. secretStoreRef:
  482. description: SecretStoreRef defines which SecretStore to fetch
  483. the ExternalSecret data.
  484. properties:
  485. kind:
  486. description: |-
  487. Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
  488. Defaults to `SecretStore`
  489. enum:
  490. - SecretStore
  491. - ClusterSecretStore
  492. type: string
  493. name:
  494. description: Name of the SecretStore resource
  495. maxLength: 253
  496. minLength: 1
  497. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  498. type: string
  499. type: object
  500. target:
  501. default:
  502. creationPolicy: Owner
  503. deletionPolicy: Retain
  504. description: |-
  505. ExternalSecretTarget defines the Kubernetes Secret to be created,
  506. there can be only one target per ExternalSecret.
  507. properties:
  508. creationPolicy:
  509. default: Owner
  510. description: |-
  511. CreationPolicy defines rules on how to create the resulting Secret.
  512. Defaults to "Owner"
  513. enum:
  514. - Owner
  515. - Orphan
  516. - Merge
  517. - None
  518. type: string
  519. deletionPolicy:
  520. default: Retain
  521. description: |-
  522. DeletionPolicy defines rules on how to delete the resulting Secret.
  523. Defaults to "Retain"
  524. enum:
  525. - Delete
  526. - Merge
  527. - Retain
  528. type: string
  529. immutable:
  530. description: Immutable defines if the final secret will be
  531. immutable
  532. type: boolean
  533. manifest:
  534. description: |-
  535. Manifest defines a custom Kubernetes resource to create instead of a Secret.
  536. When specified, ExternalSecret will create the resource type defined here
  537. (e.g., ConfigMap, Custom Resource) instead of a Secret.
  538. Warning: Using Generic target. Make sure access policies and encryption are properly configured.
  539. properties:
  540. apiVersion:
  541. description: APIVersion of the target resource (e.g.,
  542. "v1" for ConfigMap, "argoproj.io/v1alpha1" for ArgoCD
  543. Application)
  544. minLength: 1
  545. type: string
  546. kind:
  547. description: Kind of the target resource (e.g., "ConfigMap",
  548. "Application")
  549. minLength: 1
  550. type: string
  551. required:
  552. - apiVersion
  553. - kind
  554. type: object
  555. name:
  556. description: |-
  557. The name of the Secret resource to be managed.
  558. Defaults to the .metadata.name of the ExternalSecret resource
  559. maxLength: 253
  560. minLength: 1
  561. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  562. type: string
  563. template:
  564. description: Template defines a blueprint for the created
  565. Secret resource.
  566. properties:
  567. data:
  568. additionalProperties:
  569. type: string
  570. type: object
  571. engineVersion:
  572. default: v2
  573. description: |-
  574. EngineVersion specifies the template engine version
  575. that should be used to compile/execute the
  576. template specified in .data and .templateFrom[].
  577. enum:
  578. - v2
  579. type: string
  580. mergePolicy:
  581. default: Replace
  582. description: TemplateMergePolicy defines how the rendered
  583. template should be merged with the existing Secret data.
  584. enum:
  585. - Replace
  586. - Merge
  587. type: string
  588. metadata:
  589. description: ExternalSecretTemplateMetadata defines metadata
  590. fields for the Secret blueprint.
  591. properties:
  592. annotations:
  593. additionalProperties:
  594. type: string
  595. type: object
  596. finalizers:
  597. items:
  598. type: string
  599. type: array
  600. labels:
  601. additionalProperties:
  602. type: string
  603. type: object
  604. type: object
  605. templateFrom:
  606. items:
  607. description: |-
  608. TemplateFrom specifies a source for templates.
  609. Each item in the list can either reference a ConfigMap or a Secret resource.
  610. properties:
  611. configMap:
  612. description: TemplateRef specifies a reference to
  613. either a ConfigMap or a Secret resource.
  614. properties:
  615. items:
  616. description: A list of keys in the ConfigMap/Secret
  617. to use as templates for Secret data
  618. items:
  619. description: TemplateRefItem specifies a key
  620. in the ConfigMap/Secret to use as a template
  621. for Secret data.
  622. properties:
  623. key:
  624. description: A key in the ConfigMap/Secret
  625. maxLength: 253
  626. minLength: 1
  627. pattern: ^[-._a-zA-Z0-9]+$
  628. type: string
  629. templateAs:
  630. default: Values
  631. description: TemplateScope specifies how
  632. the template keys should be interpreted.
  633. enum:
  634. - Values
  635. - KeysAndValues
  636. type: string
  637. required:
  638. - key
  639. type: object
  640. type: array
  641. name:
  642. description: The name of the ConfigMap/Secret
  643. resource
  644. maxLength: 253
  645. minLength: 1
  646. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  647. type: string
  648. required:
  649. - items
  650. - name
  651. type: object
  652. literal:
  653. type: string
  654. secret:
  655. description: TemplateRef specifies a reference to
  656. either a ConfigMap or a Secret resource.
  657. properties:
  658. items:
  659. description: A list of keys in the ConfigMap/Secret
  660. to use as templates for Secret data
  661. items:
  662. description: TemplateRefItem specifies a key
  663. in the ConfigMap/Secret to use as a template
  664. for Secret data.
  665. properties:
  666. key:
  667. description: A key in the ConfigMap/Secret
  668. maxLength: 253
  669. minLength: 1
  670. pattern: ^[-._a-zA-Z0-9]+$
  671. type: string
  672. templateAs:
  673. default: Values
  674. description: TemplateScope specifies how
  675. the template keys should be interpreted.
  676. enum:
  677. - Values
  678. - KeysAndValues
  679. type: string
  680. required:
  681. - key
  682. type: object
  683. type: array
  684. name:
  685. description: The name of the ConfigMap/Secret
  686. resource
  687. maxLength: 253
  688. minLength: 1
  689. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  690. type: string
  691. required:
  692. - items
  693. - name
  694. type: object
  695. target:
  696. default: Data
  697. description: |-
  698. Target specifies where to place the template result.
  699. For Secret resources, common values are: "Data", "Annotations", "Labels".
  700. For custom resources (when spec.target.manifest is set), this supports
  701. nested paths like "spec.database.config" or "data".
  702. type: string
  703. type: object
  704. type: array
  705. type:
  706. type: string
  707. type: object
  708. type: object
  709. type: object
  710. namespaceSelector:
  711. description: |-
  712. The labels to select by to find the Namespaces to create the ExternalSecrets in.
  713. Deprecated: Use NamespaceSelectors instead.
  714. properties:
  715. matchExpressions:
  716. description: matchExpressions is a list of label selector requirements.
  717. The requirements are ANDed.
  718. items:
  719. description: |-
  720. A label selector requirement is a selector that contains values, a key, and an operator that
  721. relates the key and values.
  722. properties:
  723. key:
  724. description: key is the label key that the selector applies
  725. to.
  726. type: string
  727. operator:
  728. description: |-
  729. operator represents a key's relationship to a set of values.
  730. Valid operators are In, NotIn, Exists and DoesNotExist.
  731. type: string
  732. values:
  733. description: |-
  734. values is an array of string values. If the operator is In or NotIn,
  735. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  736. the values array must be empty. This array is replaced during a strategic
  737. merge patch.
  738. items:
  739. type: string
  740. type: array
  741. x-kubernetes-list-type: atomic
  742. required:
  743. - key
  744. - operator
  745. type: object
  746. type: array
  747. x-kubernetes-list-type: atomic
  748. matchLabels:
  749. additionalProperties:
  750. type: string
  751. description: |-
  752. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  753. map is equivalent to an element of matchExpressions, whose key field is "key", the
  754. operator is "In", and the values array contains only "value". The requirements are ANDed.
  755. type: object
  756. type: object
  757. x-kubernetes-map-type: atomic
  758. namespaceSelectors:
  759. description: A list of labels to select by to find the Namespaces
  760. to create the ExternalSecrets in. The selectors are ORed.
  761. items:
  762. description: |-
  763. A label selector is a label query over a set of resources. The result of matchLabels and
  764. matchExpressions are ANDed. An empty label selector matches all objects. A null
  765. label selector matches no objects.
  766. properties:
  767. matchExpressions:
  768. description: matchExpressions is a list of label selector requirements.
  769. The requirements are ANDed.
  770. items:
  771. description: |-
  772. A label selector requirement is a selector that contains values, a key, and an operator that
  773. relates the key and values.
  774. properties:
  775. key:
  776. description: key is the label key that the selector applies
  777. to.
  778. type: string
  779. operator:
  780. description: |-
  781. operator represents a key's relationship to a set of values.
  782. Valid operators are In, NotIn, Exists and DoesNotExist.
  783. type: string
  784. values:
  785. description: |-
  786. values is an array of string values. If the operator is In or NotIn,
  787. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  788. the values array must be empty. This array is replaced during a strategic
  789. merge patch.
  790. items:
  791. type: string
  792. type: array
  793. x-kubernetes-list-type: atomic
  794. required:
  795. - key
  796. - operator
  797. type: object
  798. type: array
  799. x-kubernetes-list-type: atomic
  800. matchLabels:
  801. additionalProperties:
  802. type: string
  803. description: |-
  804. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  805. map is equivalent to an element of matchExpressions, whose key field is "key", the
  806. operator is "In", and the values array contains only "value". The requirements are ANDed.
  807. type: object
  808. type: object
  809. x-kubernetes-map-type: atomic
  810. type: array
  811. namespaces:
  812. description: |-
  813. Choose namespaces by name. This field is ORed with anything that NamespaceSelectors ends up choosing.
  814. Deprecated: Use NamespaceSelectors instead.
  815. items:
  816. maxLength: 63
  817. minLength: 1
  818. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  819. type: string
  820. type: array
  821. refreshTime:
  822. description: The time in which the controller should reconcile its
  823. objects and recheck namespaces for labels.
  824. type: string
  825. required:
  826. - externalSecretSpec
  827. type: object
  828. status:
  829. description: ClusterExternalSecretStatus defines the observed state of
  830. ClusterExternalSecret.
  831. properties:
  832. conditions:
  833. items:
  834. description: ClusterExternalSecretStatusCondition defines the observed
  835. state of a ClusterExternalSecret resource.
  836. properties:
  837. message:
  838. type: string
  839. status:
  840. type: string
  841. type:
  842. description: ClusterExternalSecretConditionType defines a value
  843. type for ClusterExternalSecret conditions.
  844. type: string
  845. required:
  846. - status
  847. - type
  848. type: object
  849. type: array
  850. externalSecretName:
  851. description: ExternalSecretName is the name of the ExternalSecrets
  852. created by the ClusterExternalSecret
  853. type: string
  854. failedNamespaces:
  855. description: Failed namespaces are the namespaces that failed to apply
  856. an ExternalSecret
  857. items:
  858. description: ClusterExternalSecretNamespaceFailure represents a
  859. failed namespace deployment and it's reason.
  860. properties:
  861. namespace:
  862. description: Namespace is the namespace that failed when trying
  863. to apply an ExternalSecret
  864. type: string
  865. reason:
  866. description: Reason is why the ExternalSecret failed to apply
  867. to the namespace
  868. type: string
  869. required:
  870. - namespace
  871. type: object
  872. type: array
  873. provisionedNamespaces:
  874. description: ProvisionedNamespaces are the namespaces where the ClusterExternalSecret
  875. has secrets
  876. items:
  877. type: string
  878. type: array
  879. type: object
  880. type: object
  881. served: true
  882. storage: true
  883. subresources:
  884. status: {}
  885. - additionalPrinterColumns:
  886. - jsonPath: .spec.externalSecretSpec.secretStoreRef.name
  887. name: Store
  888. type: string
  889. - jsonPath: .spec.refreshTime
  890. name: Refresh Interval
  891. type: string
  892. - jsonPath: .status.conditions[?(@.type=="Ready")].status
  893. name: Ready
  894. type: string
  895. deprecated: true
  896. name: v1beta1
  897. schema:
  898. openAPIV3Schema:
  899. description: ClusterExternalSecret is the schema for the clusterexternalsecrets
  900. API.
  901. properties:
  902. apiVersion:
  903. description: |-
  904. APIVersion defines the versioned schema of this representation of an object.
  905. Servers should convert recognized schemas to the latest internal value, and
  906. may reject unrecognized values.
  907. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  908. type: string
  909. kind:
  910. description: |-
  911. Kind is a string value representing the REST resource this object represents.
  912. Servers may infer this from the endpoint the client submits requests to.
  913. Cannot be updated.
  914. In CamelCase.
  915. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  916. type: string
  917. metadata:
  918. type: object
  919. spec:
  920. description: ClusterExternalSecretSpec defines the desired state of ClusterExternalSecret.
  921. properties:
  922. externalSecretMetadata:
  923. description: The metadata of the external secrets to be created
  924. properties:
  925. annotations:
  926. additionalProperties:
  927. type: string
  928. type: object
  929. labels:
  930. additionalProperties:
  931. type: string
  932. type: object
  933. type: object
  934. externalSecretName:
  935. description: |-
  936. The name of the external secrets to be created.
  937. Defaults to the name of the ClusterExternalSecret
  938. maxLength: 253
  939. minLength: 1
  940. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  941. type: string
  942. externalSecretSpec:
  943. description: The spec for the ExternalSecrets to be created
  944. properties:
  945. data:
  946. description: Data defines the connection between the Kubernetes
  947. Secret keys and the Provider data
  948. items:
  949. description: ExternalSecretData defines the connection between
  950. the Kubernetes Secret key (spec.data.<key>) and the Provider
  951. data.
  952. properties:
  953. remoteRef:
  954. description: |-
  955. RemoteRef points to the remote secret and defines
  956. which secret (version/property/..) to fetch.
  957. properties:
  958. conversionStrategy:
  959. default: Default
  960. description: Used to define a conversion Strategy
  961. enum:
  962. - Default
  963. - Unicode
  964. type: string
  965. decodingStrategy:
  966. default: None
  967. description: Used to define a decoding Strategy
  968. enum:
  969. - Auto
  970. - Base64
  971. - Base64URL
  972. - None
  973. type: string
  974. key:
  975. description: Key is the key used in the Provider, mandatory
  976. type: string
  977. metadataPolicy:
  978. default: None
  979. description: Policy for fetching tags/labels from provider
  980. secrets, possible options are Fetch, None. Defaults
  981. to None
  982. enum:
  983. - None
  984. - Fetch
  985. type: string
  986. property:
  987. description: Used to select a specific property of the
  988. Provider value (if a map), if supported
  989. type: string
  990. version:
  991. description: Used to select a specific version of the
  992. Provider value, if supported
  993. type: string
  994. required:
  995. - key
  996. type: object
  997. secretKey:
  998. description: The key in the Kubernetes Secret to store the
  999. value.
  1000. maxLength: 253
  1001. minLength: 1
  1002. pattern: ^[-._a-zA-Z0-9]+$
  1003. type: string
  1004. sourceRef:
  1005. description: |-
  1006. SourceRef allows you to override the source
  1007. from which the value will be pulled.
  1008. maxProperties: 1
  1009. minProperties: 1
  1010. properties:
  1011. generatorRef:
  1012. description: |-
  1013. GeneratorRef points to a generator custom resource.
  1014. Deprecated: The generatorRef is not implemented in .data[].
  1015. this will be removed with v1.
  1016. properties:
  1017. apiVersion:
  1018. default: generators.external-secrets.io/v1alpha1
  1019. description: Specify the apiVersion of the generator
  1020. resource
  1021. type: string
  1022. kind:
  1023. description: Specify the Kind of the generator resource
  1024. enum:
  1025. - ACRAccessToken
  1026. - ClusterGenerator
  1027. - ECRAuthorizationToken
  1028. - Fake
  1029. - GCRAccessToken
  1030. - GithubAccessToken
  1031. - QuayAccessToken
  1032. - Password
  1033. - SSHKey
  1034. - STSSessionToken
  1035. - UUID
  1036. - VaultDynamicSecret
  1037. - Webhook
  1038. - Grafana
  1039. type: string
  1040. name:
  1041. description: Specify the name of the generator resource
  1042. maxLength: 253
  1043. minLength: 1
  1044. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1045. type: string
  1046. required:
  1047. - kind
  1048. - name
  1049. type: object
  1050. storeRef:
  1051. description: SecretStoreRef defines which SecretStore
  1052. to fetch the ExternalSecret data.
  1053. properties:
  1054. kind:
  1055. description: |-
  1056. Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
  1057. Defaults to `SecretStore`
  1058. enum:
  1059. - SecretStore
  1060. - ClusterSecretStore
  1061. type: string
  1062. name:
  1063. description: Name of the SecretStore resource
  1064. maxLength: 253
  1065. minLength: 1
  1066. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1067. type: string
  1068. type: object
  1069. type: object
  1070. required:
  1071. - remoteRef
  1072. - secretKey
  1073. type: object
  1074. type: array
  1075. dataFrom:
  1076. description: |-
  1077. DataFrom is used to fetch all properties from a specific Provider data
  1078. If multiple entries are specified, the Secret keys are merged in the specified order
  1079. items:
  1080. description: ExternalSecretDataFromRemoteRef defines a reference
  1081. to multiple secrets in the provider to be fetched using options.
  1082. properties:
  1083. extract:
  1084. description: |-
  1085. Used to extract multiple key/value pairs from one secret
  1086. Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef.
  1087. properties:
  1088. conversionStrategy:
  1089. default: Default
  1090. description: Used to define a conversion Strategy
  1091. enum:
  1092. - Default
  1093. - Unicode
  1094. type: string
  1095. decodingStrategy:
  1096. default: None
  1097. description: Used to define a decoding Strategy
  1098. enum:
  1099. - Auto
  1100. - Base64
  1101. - Base64URL
  1102. - None
  1103. type: string
  1104. key:
  1105. description: Key is the key used in the Provider, mandatory
  1106. type: string
  1107. metadataPolicy:
  1108. default: None
  1109. description: Policy for fetching tags/labels from provider
  1110. secrets, possible options are Fetch, None. Defaults
  1111. to None
  1112. enum:
  1113. - None
  1114. - Fetch
  1115. type: string
  1116. property:
  1117. description: Used to select a specific property of the
  1118. Provider value (if a map), if supported
  1119. type: string
  1120. version:
  1121. description: Used to select a specific version of the
  1122. Provider value, if supported
  1123. type: string
  1124. required:
  1125. - key
  1126. type: object
  1127. find:
  1128. description: |-
  1129. Used to find secrets based on tags or regular expressions
  1130. Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef.
  1131. properties:
  1132. conversionStrategy:
  1133. default: Default
  1134. description: Used to define a conversion Strategy
  1135. enum:
  1136. - Default
  1137. - Unicode
  1138. type: string
  1139. decodingStrategy:
  1140. default: None
  1141. description: Used to define a decoding Strategy
  1142. enum:
  1143. - Auto
  1144. - Base64
  1145. - Base64URL
  1146. - None
  1147. type: string
  1148. name:
  1149. description: Finds secrets based on the name.
  1150. properties:
  1151. regexp:
  1152. description: Finds secrets base
  1153. type: string
  1154. type: object
  1155. path:
  1156. description: A root path to start the find operations.
  1157. type: string
  1158. tags:
  1159. additionalProperties:
  1160. type: string
  1161. description: Find secrets based on tags.
  1162. type: object
  1163. type: object
  1164. rewrite:
  1165. description: |-
  1166. Used to rewrite secret Keys after getting them from the secret Provider
  1167. Multiple Rewrite operations can be provided. They are applied in a layered order (first to last)
  1168. items:
  1169. description: ExternalSecretRewrite defines rules on how
  1170. to rewrite secret keys.
  1171. maxProperties: 1
  1172. minProperties: 1
  1173. properties:
  1174. regexp:
  1175. description: |-
  1176. Used to rewrite with regular expressions.
  1177. The resulting key will be the output of a regexp.ReplaceAll operation.
  1178. properties:
  1179. source:
  1180. description: Used to define the regular expression
  1181. of a re.Compiler.
  1182. type: string
  1183. target:
  1184. description: Used to define the target pattern
  1185. of a ReplaceAll operation.
  1186. type: string
  1187. required:
  1188. - source
  1189. - target
  1190. type: object
  1191. transform:
  1192. description: |-
  1193. Used to apply string transformation on the secrets.
  1194. The resulting key will be the output of the template applied by the operation.
  1195. properties:
  1196. template:
  1197. description: |-
  1198. Used to define the template to apply on the secret name.
  1199. `.value ` will specify the secret name in the template.
  1200. type: string
  1201. required:
  1202. - template
  1203. type: object
  1204. type: object
  1205. type: array
  1206. sourceRef:
  1207. description: |-
  1208. SourceRef points to a store or generator
  1209. which contains secret values ready to use.
  1210. Use this in combination with Extract or Find pull values out of
  1211. a specific SecretStore.
  1212. When sourceRef points to a generator Extract or Find is not supported.
  1213. The generator returns a static map of values
  1214. maxProperties: 1
  1215. minProperties: 1
  1216. properties:
  1217. generatorRef:
  1218. description: GeneratorRef points to a generator custom
  1219. resource.
  1220. properties:
  1221. apiVersion:
  1222. default: generators.external-secrets.io/v1alpha1
  1223. description: Specify the apiVersion of the generator
  1224. resource
  1225. type: string
  1226. kind:
  1227. description: Specify the Kind of the generator resource
  1228. enum:
  1229. - ACRAccessToken
  1230. - ClusterGenerator
  1231. - ECRAuthorizationToken
  1232. - Fake
  1233. - GCRAccessToken
  1234. - GithubAccessToken
  1235. - QuayAccessToken
  1236. - Password
  1237. - SSHKey
  1238. - STSSessionToken
  1239. - UUID
  1240. - VaultDynamicSecret
  1241. - Webhook
  1242. - Grafana
  1243. type: string
  1244. name:
  1245. description: Specify the name of the generator resource
  1246. maxLength: 253
  1247. minLength: 1
  1248. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1249. type: string
  1250. required:
  1251. - kind
  1252. - name
  1253. type: object
  1254. storeRef:
  1255. description: SecretStoreRef defines which SecretStore
  1256. to fetch the ExternalSecret data.
  1257. properties:
  1258. kind:
  1259. description: |-
  1260. Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
  1261. Defaults to `SecretStore`
  1262. enum:
  1263. - SecretStore
  1264. - ClusterSecretStore
  1265. type: string
  1266. name:
  1267. description: Name of the SecretStore resource
  1268. maxLength: 253
  1269. minLength: 1
  1270. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1271. type: string
  1272. type: object
  1273. type: object
  1274. type: object
  1275. type: array
  1276. refreshInterval:
  1277. default: 1h0m0s
  1278. description: |-
  1279. RefreshInterval is the amount of time before the values are read again from the SecretStore provider,
  1280. specified as Golang Duration strings.
  1281. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"
  1282. Example values: "1h0m0s", "2h30m0s", "10m0s"
  1283. May be set to "0s" to fetch and create it once. Defaults to 1h0m0s.
  1284. type: string
  1285. refreshPolicy:
  1286. description: |-
  1287. RefreshPolicy determines how the ExternalSecret should be refreshed:
  1288. - CreatedOnce: Creates the Secret only if it does not exist and does not update it thereafter
  1289. - Periodic: Synchronizes the Secret from the external source at regular intervals specified by refreshInterval.
  1290. No periodic updates occur if refreshInterval is 0.
  1291. - OnChange: Only synchronizes the Secret when the ExternalSecret's metadata or specification changes
  1292. enum:
  1293. - CreatedOnce
  1294. - Periodic
  1295. - OnChange
  1296. type: string
  1297. secretStoreRef:
  1298. description: SecretStoreRef defines which SecretStore to fetch
  1299. the ExternalSecret data.
  1300. properties:
  1301. kind:
  1302. description: |-
  1303. Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
  1304. Defaults to `SecretStore`
  1305. enum:
  1306. - SecretStore
  1307. - ClusterSecretStore
  1308. type: string
  1309. name:
  1310. description: Name of the SecretStore resource
  1311. maxLength: 253
  1312. minLength: 1
  1313. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1314. type: string
  1315. type: object
  1316. target:
  1317. default:
  1318. creationPolicy: Owner
  1319. deletionPolicy: Retain
  1320. description: |-
  1321. ExternalSecretTarget defines the Kubernetes Secret to be created
  1322. There can be only one target per ExternalSecret.
  1323. properties:
  1324. creationPolicy:
  1325. default: Owner
  1326. description: |-
  1327. CreationPolicy defines rules on how to create the resulting Secret.
  1328. Defaults to "Owner"
  1329. enum:
  1330. - Owner
  1331. - Orphan
  1332. - Merge
  1333. - None
  1334. type: string
  1335. deletionPolicy:
  1336. default: Retain
  1337. description: |-
  1338. DeletionPolicy defines rules on how to delete the resulting Secret.
  1339. Defaults to "Retain"
  1340. enum:
  1341. - Delete
  1342. - Merge
  1343. - Retain
  1344. type: string
  1345. immutable:
  1346. description: Immutable defines if the final secret will be
  1347. immutable
  1348. type: boolean
  1349. name:
  1350. description: |-
  1351. The name of the Secret resource to be managed.
  1352. Defaults to the .metadata.name of the ExternalSecret resource
  1353. maxLength: 253
  1354. minLength: 1
  1355. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1356. type: string
  1357. template:
  1358. description: Template defines a blueprint for the created
  1359. Secret resource.
  1360. properties:
  1361. data:
  1362. additionalProperties:
  1363. type: string
  1364. type: object
  1365. engineVersion:
  1366. default: v2
  1367. description: |-
  1368. EngineVersion specifies the template engine version
  1369. that should be used to compile/execute the
  1370. template specified in .data and .templateFrom[].
  1371. enum:
  1372. - v2
  1373. type: string
  1374. mergePolicy:
  1375. default: Replace
  1376. description: TemplateMergePolicy defines how template
  1377. values should be merged when generating a secret.
  1378. enum:
  1379. - Replace
  1380. - Merge
  1381. type: string
  1382. metadata:
  1383. description: ExternalSecretTemplateMetadata defines metadata
  1384. fields for the Secret blueprint.
  1385. properties:
  1386. annotations:
  1387. additionalProperties:
  1388. type: string
  1389. type: object
  1390. labels:
  1391. additionalProperties:
  1392. type: string
  1393. type: object
  1394. type: object
  1395. templateFrom:
  1396. items:
  1397. description: TemplateFrom defines a source for template
  1398. data.
  1399. properties:
  1400. configMap:
  1401. description: TemplateRef defines a reference to
  1402. a template source in a ConfigMap or Secret.
  1403. properties:
  1404. items:
  1405. description: A list of keys in the ConfigMap/Secret
  1406. to use as templates for Secret data
  1407. items:
  1408. description: TemplateRefItem defines which
  1409. key in the referenced ConfigMap or Secret
  1410. to use as a template.
  1411. properties:
  1412. key:
  1413. description: A key in the ConfigMap/Secret
  1414. maxLength: 253
  1415. minLength: 1
  1416. pattern: ^[-._a-zA-Z0-9]+$
  1417. type: string
  1418. templateAs:
  1419. default: Values
  1420. description: TemplateScope defines the
  1421. scope of the template when processing
  1422. template data.
  1423. enum:
  1424. - Values
  1425. - KeysAndValues
  1426. type: string
  1427. required:
  1428. - key
  1429. type: object
  1430. type: array
  1431. name:
  1432. description: The name of the ConfigMap/Secret
  1433. resource
  1434. maxLength: 253
  1435. minLength: 1
  1436. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1437. type: string
  1438. required:
  1439. - items
  1440. - name
  1441. type: object
  1442. literal:
  1443. type: string
  1444. secret:
  1445. description: TemplateRef defines a reference to
  1446. a template source in a ConfigMap or Secret.
  1447. properties:
  1448. items:
  1449. description: A list of keys in the ConfigMap/Secret
  1450. to use as templates for Secret data
  1451. items:
  1452. description: TemplateRefItem defines which
  1453. key in the referenced ConfigMap or Secret
  1454. to use as a template.
  1455. properties:
  1456. key:
  1457. description: A key in the ConfigMap/Secret
  1458. maxLength: 253
  1459. minLength: 1
  1460. pattern: ^[-._a-zA-Z0-9]+$
  1461. type: string
  1462. templateAs:
  1463. default: Values
  1464. description: TemplateScope defines the
  1465. scope of the template when processing
  1466. template data.
  1467. enum:
  1468. - Values
  1469. - KeysAndValues
  1470. type: string
  1471. required:
  1472. - key
  1473. type: object
  1474. type: array
  1475. name:
  1476. description: The name of the ConfigMap/Secret
  1477. resource
  1478. maxLength: 253
  1479. minLength: 1
  1480. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1481. type: string
  1482. required:
  1483. - items
  1484. - name
  1485. type: object
  1486. target:
  1487. default: Data
  1488. description: TemplateTarget defines the target field
  1489. where the template result will be stored.
  1490. enum:
  1491. - Data
  1492. - Annotations
  1493. - Labels
  1494. type: string
  1495. type: object
  1496. type: array
  1497. type:
  1498. type: string
  1499. type: object
  1500. type: object
  1501. type: object
  1502. namespaceSelector:
  1503. description: The labels to select by to find the Namespaces to create
  1504. the ExternalSecrets in
  1505. properties:
  1506. matchExpressions:
  1507. description: matchExpressions is a list of label selector requirements.
  1508. The requirements are ANDed.
  1509. items:
  1510. description: |-
  1511. A label selector requirement is a selector that contains values, a key, and an operator that
  1512. relates the key and values.
  1513. properties:
  1514. key:
  1515. description: key is the label key that the selector applies
  1516. to.
  1517. type: string
  1518. operator:
  1519. description: |-
  1520. operator represents a key's relationship to a set of values.
  1521. Valid operators are In, NotIn, Exists and DoesNotExist.
  1522. type: string
  1523. values:
  1524. description: |-
  1525. values is an array of string values. If the operator is In or NotIn,
  1526. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  1527. the values array must be empty. This array is replaced during a strategic
  1528. merge patch.
  1529. items:
  1530. type: string
  1531. type: array
  1532. x-kubernetes-list-type: atomic
  1533. required:
  1534. - key
  1535. - operator
  1536. type: object
  1537. type: array
  1538. x-kubernetes-list-type: atomic
  1539. matchLabels:
  1540. additionalProperties:
  1541. type: string
  1542. description: |-
  1543. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  1544. map is equivalent to an element of matchExpressions, whose key field is "key", the
  1545. operator is "In", and the values array contains only "value". The requirements are ANDed.
  1546. type: object
  1547. type: object
  1548. x-kubernetes-map-type: atomic
  1549. namespaceSelectors:
  1550. description: A list of labels to select by to find the Namespaces
  1551. to create the ExternalSecrets in. The selectors are ORed.
  1552. items:
  1553. description: |-
  1554. A label selector is a label query over a set of resources. The result of matchLabels and
  1555. matchExpressions are ANDed. An empty label selector matches all objects. A null
  1556. label selector matches no objects.
  1557. properties:
  1558. matchExpressions:
  1559. description: matchExpressions is a list of label selector requirements.
  1560. The requirements are ANDed.
  1561. items:
  1562. description: |-
  1563. A label selector requirement is a selector that contains values, a key, and an operator that
  1564. relates the key and values.
  1565. properties:
  1566. key:
  1567. description: key is the label key that the selector applies
  1568. to.
  1569. type: string
  1570. operator:
  1571. description: |-
  1572. operator represents a key's relationship to a set of values.
  1573. Valid operators are In, NotIn, Exists and DoesNotExist.
  1574. type: string
  1575. values:
  1576. description: |-
  1577. values is an array of string values. If the operator is In or NotIn,
  1578. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  1579. the values array must be empty. This array is replaced during a strategic
  1580. merge patch.
  1581. items:
  1582. type: string
  1583. type: array
  1584. x-kubernetes-list-type: atomic
  1585. required:
  1586. - key
  1587. - operator
  1588. type: object
  1589. type: array
  1590. x-kubernetes-list-type: atomic
  1591. matchLabels:
  1592. additionalProperties:
  1593. type: string
  1594. description: |-
  1595. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  1596. map is equivalent to an element of matchExpressions, whose key field is "key", the
  1597. operator is "In", and the values array contains only "value". The requirements are ANDed.
  1598. type: object
  1599. type: object
  1600. x-kubernetes-map-type: atomic
  1601. type: array
  1602. namespaces:
  1603. description: |-
  1604. Choose namespaces by name. This field is ORed with anything that NamespaceSelectors ends up choosing.
  1605. Deprecated: Use NamespaceSelectors instead.
  1606. items:
  1607. maxLength: 63
  1608. minLength: 1
  1609. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1610. type: string
  1611. type: array
  1612. refreshTime:
  1613. description: The time in which the controller should reconcile its
  1614. objects and recheck namespaces for labels.
  1615. type: string
  1616. required:
  1617. - externalSecretSpec
  1618. type: object
  1619. status:
  1620. description: ClusterExternalSecretStatus defines the observed state of
  1621. ClusterExternalSecret.
  1622. properties:
  1623. conditions:
  1624. items:
  1625. description: ClusterExternalSecretStatusCondition indicates the
  1626. status of the ClusterExternalSecret.
  1627. properties:
  1628. message:
  1629. type: string
  1630. status:
  1631. type: string
  1632. type:
  1633. description: ClusterExternalSecretConditionType indicates the
  1634. condition of the ClusterExternalSecret.
  1635. type: string
  1636. required:
  1637. - status
  1638. - type
  1639. type: object
  1640. type: array
  1641. externalSecretName:
  1642. description: ExternalSecretName is the name of the ExternalSecrets
  1643. created by the ClusterExternalSecret
  1644. type: string
  1645. failedNamespaces:
  1646. description: Failed namespaces are the namespaces that failed to apply
  1647. an ExternalSecret
  1648. items:
  1649. description: ClusterExternalSecretNamespaceFailure represents a
  1650. failed namespace deployment and it's reason.
  1651. properties:
  1652. namespace:
  1653. description: Namespace is the namespace that failed when trying
  1654. to apply an ExternalSecret
  1655. type: string
  1656. reason:
  1657. description: Reason is why the ExternalSecret failed to apply
  1658. to the namespace
  1659. type: string
  1660. required:
  1661. - namespace
  1662. type: object
  1663. type: array
  1664. provisionedNamespaces:
  1665. description: ProvisionedNamespaces are the namespaces where the ClusterExternalSecret
  1666. has secrets
  1667. items:
  1668. type: string
  1669. type: array
  1670. type: object
  1671. type: object
  1672. served: false
  1673. storage: false
  1674. subresources:
  1675. status: {}