Commit Graph

55 Commits

Author SHA1 Message Date
Haiyan Meng cb132d9e84 Add a new flag value `force-adopt` to the `--inventory-policy` flag
`force-adopt` allows the current inventory take ownership of any objects.
2021-09-23 11:31:47 -07:00
Sean Sullivan d2f83f464a Changes Print interface to add PrintStatus boolean 2021-07-01 17:36:25 -07:00
Mikhail Mazurskiy c1c7c9ef9c
Remove Provider interface 2021-06-30 15:21:03 +10:00
Mikhail Mazurskiy 4eb7dc1f6f
Remove Initialize() on Destroyer and PruneOptions 2021-06-18 14:58:49 +10:00
Mikhail Mazurskiy 8dc334f344
Remove Applier.Initialize() 2021-06-16 08:53:30 +10: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
Kubernetes Prow Robot b9ff655ee7
Merge pull request #296 from phanimarupaka/RemoveRequiredCheckersCheck
Remove required setters check
2020-12-14 10:23:28 -08:00
Phani Teja Marupaka 10b77d7451 Remove required setters check 2020-12-14 17:56:37 +05:30
Jingfang Liu 5184286403 enable InventoryPolicy in applier 2020-12-08 13:22:08 -08:00
jregan ea8ac6b0f3 Pin to kyaml v0.10.3 2020-12-07 15:50:39 -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
Kubernetes Prow Robot 79dde05e8f
Merge pull request #271 from seans3/destroy-preview-init
Moves destroyer Initialize() to immediately before Run()
2020-11-04 11:50:52 -08:00
Sean Sullivan a22d0d3e1f Moves destroyer Initialize() to immediately before Run() 2020-11-02 19:49:22 -08:00
Sean Sullivan 0c52068e33 Adds more server-side flags to preview command 2020-11-01 01:04:34 -07: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
Kubernetes Prow Robot 43b52152dd
Merge pull request #257 from seans3/server-side-apply
Implements server-side apply
2020-10-26 10:33:02 -07:00
Morten Torkildsen 24b7916df8 Change inventory package to use Unstructured instead of Info 2020-10-24 15:14:30 -07:00
Sean Sullivan 99285377ba Implements server-side apply 2020-10-23 22:55:06 -07:00
Morten Torkildsen 321f0a0101 Change PruneOptions and Destroyer to use Unstructured instead of Info 2020-10-22 21:33:23 -07:00
Morten Torkildsen 507d11f31e Use Unstructured instead of Info 2020-10-20 15:38: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 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
Kubernetes Prow Robot 5c8375e82a
Merge pull request #225 from mortent/HandleNamespaceFlag
Handle the --namespace flag
2020-09-10 15:10:15 -07:00
Morten Torkildsen b6a28607b7 Support json printer for apply 2020-09-08 14:45:00 -07:00
Morten Torkildsen e43565ef80 Handle the --namespace flag 2020-09-03 19:39:15 -07:00
Sean Sullivan 06594c1bca New factory wraps kubectl factory and inventory client 2020-08-31 11:49:18 -07:00
Sean Sullivan 7a8f5c1b50 Preview command refactored to use PreviewRunner 2020-08-17 14:14:12 -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
Phani Teja Marupaka d4dbb597c0 Fail Apply/Preview for Required Setters 2020-07-06 17:04:24 -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 e6589e564c
Merge pull request #143 from seans3/stdin-argument
Add StdIn as an acceptable argument for apply, preview, destroy, and diff commands
2020-04-29 11:30:25 -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
Morten Torkildsen 5eb94594c3 Remove DryRun and NoPrune fields on Applier and PruneOptions 2020-04-28 20:55:43 -07:00
Morten Torkildsen a2a4ed6d12 Remove wait flags from the preview command 2020-04-22 17:03:03 -07:00
Morten Torkildsen 0d8186ce96 Only send status events if we are waiting for reconcile 2020-04-15 13:51:17 -07:00
Sean R. Sullivan f4e91669f6 Removes duplicate import; cleans up comment 2020-04-14 23:36:02 -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