Commit Graph

36 Commits

Author SHA1 Message Date
Mikhail Mazurskiy c1c7c9ef9c
Remove Provider interface 2021-06-30 15:21:03 +10:00
Sean Sullivan 383c0042fb destroyer calculates emit status events 2021-06-28 16:56:32 -07:00
Mikhail Mazurskiy 4eb7dc1f6f
Remove Initialize() on Destroyer and PruneOptions 2021-06-18 14:58:49 +10:00
Sean Sullivan af417c6fab Refactor destroyer to use tasks 2021-06-09 15:40:32 -07:00
Morten Torkildsen 3b301af893 Provide the DryRunStrategy through the destroyer options 2021-05-19 16:28:19 -07:00
Phani Teja Marupaka 6c0f7261e8 Decouple manifest reader from cli 2021-04-05 14:06:04 -07:00
Jingfang Liu 4efc889f59 move inventory-policy flags and values to package level constants 2021-01-27 11:08:48 -08:00
Jingfang Liu 4e1ecc74ba Add preprocess function for apply/preview/destroy commands 2021-01-21 13:36:55 -08:00
Jingfang Liu 048e8867d6 add apply/preview/destroy flag: inventory-policy 2021-01-20 15:03:35 -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
Sean Sullivan a22d0d3e1f Moves destroyer Initialize() to immediately before Run() 2020-11-02 19:49:22 -08:00
Fredrik Sommar 7a1f6afce9
Add output flag to destroy and preview commands
This mimics the setup for apply; adding an option for providing the
output format of the destroy and preview commands.
2020-10-29 14:05:00 +01:00
Morten Torkildsen 3ac57786f6 Update the ManifestReader interface and implementations to use Unstructured 2020-10-26 12:13:44 -07:00
Morten Torkildsen 24b7916df8 Change inventory package to use Unstructured instead of Info 2020-10-24 15:14:30 -07:00
Morten Torkildsen 321f0a0101 Change PruneOptions and Destroyer to use Unstructured instead of Info 2020-10-22 21:33:23 -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 a6c5f50abc Move ApplyOptions into ApplyTask 2020-10-14 17:33:49 -07:00
Sean Sullivan d805e95bf6 Provider can now return error for ManifestReader creation 2020-09-25 10:49:42 -07:00
Sean Sullivan 62bb7972ad Move ManifestReader creation into Provider 2020-09-22 10:36:53 -07:00
Morten Torkildsen b6a28607b7 Support json printer for apply 2020-09-08 14:45:00 -07:00
Sean Sullivan 06594c1bca New factory wraps kubectl factory and inventory client 2020-08-31 11:49:18 -07:00
Sean Sullivan 1f8525137e Destroy command refactored to use DestroyRunner 2020-08-17 17:18:48 -07:00
Morten Torkildsen 9135af4218 Improve error handling 2020-08-16 20:10:17 -07:00
Phani Teja Marupaka 73e5d60407 Server side preview 2020-08-04 18:01:46 -07:00
Sean R. Sullivan 681ceda41d Add StdIn as an acceptable argument for apply, preview, destroy, and diff commands 2020-04-29 10:49:49 -07:00
jregan f7324fa5f3 apply, preview and destroy take exactly one dir arg 2020-03-04 15:21:07 -08:00
Phani Teja Marupaka c5b0e2f3f5 Add preview suffix 2020-03-04 11:33:11 -08:00
Morten Torkildsen 62912c3ea6 Remove arg count check from destroy command 2020-02-24 21:35:00 -08:00
Sean Sullivan d86b8b25d1 Fixes destroy command crash when dry-run flag not defined 2020-02-21 12:30:00 -08:00
Sean Sullivan da9ee4c2f9 Hides server-side and record flags. More comments 2020-02-20 14:00:20 -08:00
Phani Teja Marupaka eabc8d89b0 Remove -k -f flags destroyer and update tests 2020-02-13 14:44:39 -08:00
Sean Sullivan 2f315b0640 First attempt at hiding unused flags for commands 2020-02-13 10:24:54 -08:00
Phani Teja Marupaka 64986cc929 Destroy command 2020-02-05 16:23:11 -08:00