Commit Graph

55 Commits

Author SHA1 Message Date
Mikhail Mazurskiy 3514065221
Simplify: remove unneeded meta.Accessor() usage 2021-05-28 15:03:09 +10:00
Sean Sullivan 42e330d4d8 Move inventory operations into tasks 2021-05-26 17:47:00 -07:00
Morten Torkildsen ae80e561e2 Improve the event hierarchy 2021-05-18 14:58:41 -07:00
Morten Torkildsen 12cc429a3f Fix flaky applier test 2021-05-14 13:24:40 -07:00
Morten Torkildsen b1f9a18381 Improve the Applier tests 2021-01-20 21:34:51 -08:00
Jingfang Liu a6bb8c2150 ingore the failed resources in wait task 2020-12-15 09:28:11 -08:00
Jingfang Liu 5aad5ee380 add test cases for applier 2020-12-10 14:36:58 -08:00
Jingfang Liu 0ff98dc3f7 change apply to continue on error 2020-11-20 10:49:49 -08:00
Jingfang Liu 3224d5f259 splti the provider interface 2020-11-16 08:30:49 -08:00
Jingfang Liu cb0443cccc add InventoryInfo() function to the provider interface 2020-11-11 15:07:49 -08:00
Jingfang Liu 7915dc5de7 change the apply API to InventoryInfo 2020-11-11 15:07:46 -08:00
Jingfang Liu 4983152e59 split inventory and resources in the apply interface 2020-11-04 15:00:52 -08:00
Morten Torkildsen 507d11f31e Use Unstructured instead of Info 2020-10-20 15:38:13 -07:00
Kubernetes Prow Robot 5748e7c5ca
Merge pull request #253 from mortent/ImproveEventSystem
Clean up the event hierarchy
2020-10-18 14:08:13 -07:00
Sean Sullivan 42c7f06068 Simplifies NewProvider removing an unnecessary param 2020-10-16 02:40:08 -07:00
Morten Torkildsen c0031a934a Remove IOStreams from the Applier 2020-10-15 17:07:11 -07:00
Morten Torkildsen b379899088 Clean up the event hierarchy 2020-10-15 16:10:48 -07:00
Morten Torkildsen a6c5f50abc Move ApplyOptions into ApplyTask 2020-10-14 17:33:49 -07:00
Sean Sullivan 2de4d86359 Applies inventory namespace first if necessary 2020-09-11 16:11:50 -07:00
Sean Sullivan 06594c1bca New factory wraps kubectl factory and inventory client 2020-08-31 11:49:18 -07:00
Morten Torkildsen 9135af4218 Improve error handling 2020-08-16 20:10:17 -07:00
Morten Torkildsen 8174825d31 Allow resources in multiple namespaces 2020-08-06 19:10:51 -07:00
Sean R. Sullivan c9e7d329da Updates prune algorithm to use one inventory object 2020-07-29 18:33:49 -07:00
Sean R. Sullivan 0062a265b2 Creates InventoryClient to refactor prune 2020-06-15 13:25:05 -07:00
Kubernetes Prow Robot aaa5c94bf9
Merge pull request #188 from mortent/SimplifyInfoHelper
Simplify the InfoHelper and ApplyTask
2020-06-14 23:51:56 -07:00
Sean R. Sullivan 0e01dd4817 Initial move of Inventory to its own package 2020-06-11 17:42:34 -07:00
Morten Torkildsen ae77d32ad6 Simplify the InfoHelper and ApplyTask 2020-06-10 22:22:06 -07:00
Morten Torkildsen 2381432e70 Separate reading manifests into Info objects from the apply logic 2020-06-08 16:59:03 -07:00
Kubernetes Prow Robot b17c21e148
Merge pull request #178 from mortent/CRDAndCRPreview
Support preview when resource set contains both CRD and CR
2020-06-05 15:03:46 -07:00
Sean R. Sullivan ad6f42477d First pass at implementing inventory polymorphism for Load() 2020-06-05 00:36:17 -07:00
Kubernetes Prow Robot 31b261c29f
Merge pull request #173 from mortent/AllowSettingCustomPoller
Make Poller property on Applier public to allow Custom poller implementation
2020-05-29 10:17:15 -07:00
Morten Torkildsen 639a191b22 Support preview when resource set contains both CRD and CR 2020-05-27 19:43:08 -07:00
Morten Torkildsen 0058932245 Reduce the number of flags for apply and improve the naming 2020-05-20 09:27:29 -07:00
Morten Torkildsen b598bfd8bd Make Poller property on Applier public to allow Custom poller implementation 2020-05-18 21:23:46 -07:00
Morten Torkildsen 0d7f2b323d Handle CRDs and CRs in the same set of resources 2020-05-12 13:20:53 -07:00
Morten Torkildsen 85631c267c Support wait for prune in the applier 2020-05-06 17:28:10 -07:00
Sean R. Sullivan c318f41867 Rename grouping to inventory in applier 2020-04-30 16:24:59 -07:00
Sean R. Sullivan 2353080c50 Grouping object to inventory object cleanup 2020-04-29 13:06:10 -07:00
Morten Torkildsen 5eb94594c3 Remove DryRun and NoPrune fields on Applier and PruneOptions 2020-04-28 20:55:43 -07:00
Sean R. Sullivan 101d4be738 Moves GroupingLabel/Hash to InventoryLabel/Hash in common 2020-04-27 19:19:16 -07:00
Sean R. Sullivan 7ac47303e0 Moves some grouping names to inventory 2020-04-27 15:20:42 -07:00
Morten Torkildsen a2a4ed6d12 Remove wait flags from the preview command 2020-04-22 17:03:03 -07:00
Morten Torkildsen 6ed0163aa0 Remove aggregator from polling engine 2020-04-16 15:18:52 -07:00
Morten Torkildsen 0d8186ce96 Only send status events if we are waiting for reconcile 2020-04-15 13:51:17 -07:00
Morten Torkildsen 7d06fad676 Add init event to Applier 2020-03-26 10:24:09 -07:00
Morten Torkildsen a8a3e0d034 Implement the applier as a queue of tasks 2020-03-23 14:47:40 -07:00
Morten Torkildsen 01abccc2f0 Update sorting of resources in Applier 2020-03-16 11:43:03 -07:00
Sean Sullivan 1f61230c2d Accomodates cluster-scoped resources when validating namespace 2020-03-10 14:05:11 -07:00
Morten Torkildsen 4209c55b8f Refactor the apply command to use the polling package rather than the wait package 2020-03-09 09:33:12 -07:00
Sean Sullivan 0962c25f7f Ensures all applied objects are in the same namespace 2020-03-05 09:58:53 -08:00