Commit Graph

21 Commits

Author SHA1 Message Date
Jingfang Liu 6bd4b565e8 Capture the apply status for individual resources after each apply.
If the inventory object supports status field, it is updated
after setting the inventory list at then of one apply process.

BREAKING CHANGE: Update the inventory client and inventory interfaces
to pass the apply/reconcile status.
2022-02-16 12:02:02 -08:00
Karl Isenberg 4e94795493 chore: refactor inventory pkg to avoid stuttering 2022-02-15 14:48:39 -08:00
Jingfang Liu 774f24b5e0 Use discovery client to check if inventory objects has subresource
status

Use the function `DiscoveryClient.ServerResourcesForGroupVersion`
to list all the resources in a group. Then check if the subresource
status is contained in the list.
2022-02-15 09:15:29 -08:00
Jingfang Liu 6e3bb7a9ad Revert "capture the apply/reconcile status in the inventory object"
This reverts commit edee25bd85.
2022-02-02 13:03:19 -08:00
Jingfang Liu edee25bd85 capture the apply/reconcile status in the inventory object
Capture the apply status for individual resources after each apply.
If the inventory object supports status field, it is updated
after setting the inventory list at then of one apply process.

BREAKING CHANGE: Update the inventory client and inventory interfaces
to pass the apply/reconcile status.
2022-02-02 09:54:59 -08:00
Morten Torkildsen 8325b7f6c4 fix: Use the dynamic client in the InventoryClient 2022-01-24 19:35:45 -08:00
Morten Torkildsen 2fa891e701 fix: Remove support for multiple inventory objects with the same inventory id 2022-01-22 16:28:10 -08:00
Mikhail Mazurskiy 200d6ec9c4
Consistently use InfoHelper to get rest client 2021-11-05 14:10:14 +11:00
Karl Isenberg d83ce93efd Add ObjMetadataSet to encapsulate set functions
- Refactor usages of []ObjMetadata to use ObjMetadataSet
- Move Union, Diff, Contains, Hash, Remove, and Equal into
  ObjMetadataSet
- Add ToStringMap and FromStringMap for inventory serialization
2021-10-06 14:25:12 -07:00
Morten Torkildsen dacbf97143 Avoid dryRun as state in inventory client 2021-07-14 17:34:18 -07:00
Morten Torkildsen ac40271741 Make sure inventories are consistenly looked up based on either name or label 2021-03-28 17:48:21 -07:00
Jingfang Liu 048e8867d6 add apply/preview/destroy flag: inventory-policy 2021-01-20 15:03:35 -08:00
Sean Sullivan fd39030f05 inventory client replace skipped in dry-run 2020-11-16 19:10:03 -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
Morten Torkildsen 24b7916df8 Change inventory package to use Unstructured instead of Info 2020-10-24 15:14:30 -07:00
Sean Sullivan 06594c1bca New factory wraps kubectl factory and inventory client 2020-08-31 11:49:18 -07:00
Sean Sullivan 8e98780962 Fixes bug in destroy command 2020-08-12 13:44:00 -07:00
Sean Sullivan a4e3b45135 Inventory client uses factory function 2020-08-06 22:25:28 -07:00
Phani Teja Marupaka 73e5d60407 Server side preview 2020-08-04 18:01:46 -07:00
Sean R. Sullivan c9e7d329da Updates prune algorithm to use one inventory object 2020-07-29 18:33:49 -07:00