-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpk redpanda config set: improve setting arrays
Recent rpk improvements now initialize index 0 of a slice if the key we are setting is deeply inside the slice. e.g., foo.bar.baz would initialize bar[0] to set baz. However, it was not possible to set foo.bar[1]. This change fixes that. We also allow setting one past the end of an array to extend it: if foo.bar[0] exists, then foo.bar[1].baz adds to the array. Old rpk never had the ability to set an array key to a single value that was not wrapped in brackets. For example, `foo.bar = "baz"` would not work if bar was an array. Now, we use / initialize element 0 and set that. Fixes #2958 Fixes #5498 Fixes #5264
- Loading branch information
Showing
4 changed files
with
267 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.