Stefan Prodan
f812f045c6
Set module name to `github.com/fluxcd/cli-utils`
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-11-20 08:45:35 +02:00
Morten Torkildsen
5240fc4cdb
Use builder for creating the destroyer
2022-08-03 12:19:19 +00:00
Karl Isenberg
4e94795493
chore: refactor inventory pkg to avoid stuttering
2022-02-15 14:48:39 -08:00
Karl Isenberg
26b16473c7
chore: reduce stuttering in cmd pkg
2022-02-15 14:30:10 -08:00
Mikhail Mazurskiy
2c815d2843
feat!: applier configuration options
...
BREAKING CHANGE: NewApplierBuilder() is the new way to construct an Applier
BREAKING CHANGE: apply.Options renamed into apply.ApplierOptions
2022-01-29 10:04:03 +11:00
Morten Torkildsen
1b68c32813
fix: Remove preview/dry-run type from events output
2022-01-07 14:55:21 -08:00
Morten Torkildsen
9caaf2a225
Validate the value of the output flag
2021-12-09 19:35:19 +01:00
Sean Sullivan
944b7a7d63
Exports Applier StatusPoller field
2021-11-02 11:53:52 -07:00
Sean Sullivan
1034bbe898
Removed unused command PreProcess function
2021-11-01 18:21:11 -07:00
Kubernetes Prow Robot
b66eaeee95
Merge pull request #457 from seans3/inv-info-wrapper
...
Removes inventory from manifestloader
2021-10-30 04:25:17 -07:00
Sean Sullivan
0419797013
Moves printers from cmd to pkg
2021-10-29 12:22:49 -07:00
Sean Sullivan
0ac281cdd4
Removes inventory from manifestloader
2021-10-29 08:55:31 -07:00
Karl Isenberg
ee6c5a7fe4
Return error & send error event on cancel/timeout
2021-10-19 11:07:14 -07:00
Karl Isenberg
066fd77de9
Add timeout flag to apply, destroy, & status cmds
2021-10-15 17:42:05 -07:00
Karl Isenberg
31679a650f
Add global destroyer timeout
...
- Destroyer context added, with cancel test.
- Fix Applier cancel test not using specified timeouts.
- Added a few logs to help with debugging test failures
2021-10-12 17:41:57 -07:00
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