You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allocator: Fix Array parsing to slice parsing (#346)
Fixes a bug where the `--target` parameter was being ignored due to the
flag parsing using `GetStringSlice` when the flag decaration is `Array`.
The bug changes the type from an ArrayString to SliceString.
Additionally, fixes `--maintenance` call which is missing a region value.
Signed-off-by: Marc Lopez <marc5.12@outlook.com>
vacateAllocatorCmd.Flags().Bool("skip-tracking", false, "Skips tracking the vacate progress causing the command to return after the move operation has been executed. Not recommended.")
199
200
vacateAllocatorCmd.Flags().StringP("kind", "k", "", "Kind of workload to vacate (elasticsearch|kibana|apm|appsearch|enterprise_search)")
200
-
vacateAllocatorCmd.Flags().StringArrayP("resource-id", "r", nil, "Resource IDs to include in the vacate")
201
-
vacateAllocatorCmd.Flags().StringArrayP("target", "t", nil, "Target allocator(s) on which to place the vacated workload")
201
+
vacateAllocatorCmd.Flags().StringSliceP("resource-id", "r", nil, "Resource IDs to include in the vacate")
202
+
vacateAllocatorCmd.Flags().StringSliceP("target", "t", nil, "Target allocator(s) on which to place the vacated workload")
202
203
vacateAllocatorCmd.Flags().BoolP("maintenance", "m", false, "Whether to set the allocator(s) in maintenance before performing the vacate")
203
204
vacateAllocatorCmd.Flags().Uint("concurrency", 8, "Maximum number of concurrent moves to perform at any time")
204
205
vacateAllocatorCmd.Flags().String("allocator-down", "", "Disables the allocator health auto-discovery, setting the allocator-down to either [true|false]")
--move-only Keeps the resource in its current -possibly broken- state and just does the bare minimum to move the requested instances across to another allocator. [true|false] (default true)
64
64
--override-failsafe If false (the default) then the plan will fail out if it believes the requested sequence of operations can result in data loss - this flag will override some of these restraints. [true|false]
65
65
--poll-frequency duration Optional polling frequency to check for plan change updates (default 10s)
66
-
-r, --resource-id stringArray Resource IDs to include in the vacate
66
+
-r, --resource-id strings Resource IDs to include in the vacate
67
67
--skip-data-migration string Skips the data-migration operation on the specified resource IDs. ONLY available when the resource IDs are specified and --move-only is true. [true|false]
68
68
--skip-snapshot string Skips the snapshot operation on the specified resource IDs. ONLY available when the resource IDs are specified. [true|false]
69
69
--skip-tracking Skips tracking the vacate progress causing the command to return after the move operation has been executed. Not recommended.
70
-
-t, --target stringArray Target allocator(s) on which to place the vacated workload
70
+
-t, --target strings Target allocator(s) on which to place the vacated workload
--move-only Keeps the resource in its current -possibly broken- state and just does the bare minimum to move the requested instances across to another allocator. [true|false] (default true)
61
61
--override-failsafe If false (the default) then the plan will fail out if it believes the requested sequence of operations can result in data loss - this flag will override some of these restraints. [true|false]
62
62
--poll-frequency duration Optional polling frequency to check for plan change updates (default 10s)
63
-
-r, --resource-id stringArray Resource IDs to include in the vacate
63
+
-r, --resource-id strings Resource IDs to include in the vacate
64
64
--skip-data-migration string Skips the data-migration operation on the specified resource IDs. ONLY available when the resource IDs are specified and --move-only is true. [true|false]
65
65
--skip-snapshot string Skips the snapshot operation on the specified resource IDs. ONLY available when the resource IDs are specified. [true|false]
66
66
--skip-tracking Skips tracking the vacate progress causing the command to return after the move operation has been executed. Not recommended.
67
-
-t, --target stringArray Target allocator(s) on which to place the vacated workload
67
+
-t, --target strings Target allocator(s) on which to place the vacated workload
0 commit comments