Commit Graph

54 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 8dc334f344
Remove Applier.Initialize() 2021-06-16 08:53:30 +10:00
Sean Sullivan af417c6fab Refactor destroyer to use tasks 2021-06-09 15:40:32 -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
Morten Torkildsen 3ac57786f6 Update the ManifestReader interface and implementations to use Unstructured 2020-10-26 12:13:44 -07:00
Sean Sullivan 99285377ba Implements server-side apply 2020-10-23 22:55:06 -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
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
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
Kubernetes Prow Robot f18d7c260f
Merge pull request #181 from mortent/ManifestReader
Separate reading manifests into Info objects from the apply logic
2020-06-09 01:17:19 -07:00
Morten Torkildsen 2381432e70 Separate reading manifests into Info objects from the apply logic 2020-06-08 16:59:03 -07:00
Sean R. Sullivan 322135f7e9 Expors cobra command 2020-06-08 15:00:32 -07:00
Sean R. Sullivan 86d4dd3efc Export Applier within the ApplyRunner 2020-06-05 13:41:54 -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 55ace21d79 Add flags for waiting for pruned resources to be deleted 2020-05-12 21:43:26 -07:00
Morten Torkildsen 59c9f7582a Allow users to specify deletion propagation for prune 2020-05-03 15:41:37 -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
Morten Torkildsen 5d77ffdf63 Add support for supporting multiple print formats for apply 2020-04-12 15:47:57 -07:00
Morten Torkildsen a8a3e0d034 Implement the applier as a queue of tasks 2020-03-23 14:47:40 -07:00
Morten Torkildsen 7b21beac3a New structure for the apply cmd 2020-03-08 14:59:41 -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
Sean Sullivan da9ee4c2f9 Hides server-side and record flags. More comments 2020-02-20 14:00:20 -08:00
Sean Sullivan 2f315b0640 First attempt at hiding unused flags for commands 2020-02-13 10:24:54 -08:00