Derek Nola
8988439e52
[Release-1.26] E2E and Dep Backports - June ( #7693 )
...
* Bump docker go.mod (#7681 )
* Shortcircuit commands with version or help flags (#7683 )
* Fix for longhorn integration test
* Add Rotation certification Check (#7097 )
* Add Certification Test to Validate Cluster
* Fix to stop/start for k3s certificate rotation
* E2E: Use sudo for all RunCmdOnNode
* Remove unnecessary daemonset addition/deletion
Signed-off-by: Derek Nola <derek.nola@suse.com >
Signed-off-by: est-suse <esteban.esquivel@suse.com >
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
Co-authored-by: Esteban Esquivel Alvarado <esteban.alvarado@suse.com >
Co-authored-by: est-suse <esteban.esquivel@suse.com >
Co-authored-by: Brad Davidson <brad.davidson@rancher.com >
2023-06-08 15:05:30 -07:00
Derek Nola
5ddb3ccaff
[Release-1.26] CLI + Config Enhancement ( #7403 )
...
* Handle multiple arguments with StringSlice flags (#7380 )
* Cleanup server setup with util function
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Enable FindString to search dotD config files (#7323 )
* Address multiple arg cases
Signed-off-by: Derek Nola <derek.nola@suse.com >
2023-05-02 15:09:35 -07:00
Derek Nola
06d81cb936
Replace deprecated ioutil package ( #6230 )
...
* Replace ioutil package
* check integration test null pointer
* Remove rotate retries
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-10-07 17:36:57 -07:00
Luther Monson
9a849b1bb7
[master] changing package to k3s-io ( #4846 )
...
* changing package to k3s-io
Signed-off-by: Luther Monson <luther.monson@gmail.com >
Co-authored-by: Derek Nola <derek.nola@suse.com >
2022-03-02 15:47:27 -08:00
Derek Nola
ef263bd2b0
Improved regex for double equals arguments ( #4505 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-16 11:16:13 -08:00
Derek Nola
535a919635
Removed value from warning about skipping flags ( #4491 )
...
* Enabled skipping of unkown flags from config in parser
* Added new unit test, expanded existing
* Add warning back in, without value
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-15 13:17:10 -07:00
Derek Nola
4b57951fb0
Fix to allow etcd-snapshot to use config file with flags that are only used with k3s server. ( #4464 )
...
* Enabled skipping of unknown flags from config in parser
* Added new unit test, expanded existing
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-11 16:01:23 -08:00
Derek Nola
7bd65047c3
Match to last After keyword for parser ( #4383 )
...
* Made parser able to skip over subcommands
* Edge case coverage, reworked regex with groups
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-08 10:54:48 -08:00
Darren Shepherd
8f1a20c0d3
Add ability to append to slice during config file merge
...
If key ends in "+" the value of the key is appended to previous
values found. If values are string instead of a slice they are
automatically converted to a slice of one string.
Signed-off-by: Darren Shepherd <darren@rancher.com >
2021-04-27 15:59:03 -07:00
Darren Shepherd
a0a1071aa5
Support .d directory for k3s config file ( #3162 )
...
Configuration will be loaded from config.yaml and then config.yaml.d/*.(yaml|yml) in
alphanumeric order. The merging is done by just taking the last value of
a key found, so LIFO for keys. Slices are not merged but replaced.
Signed-off-by: Darren Shepherd <darren@rancher.com >
2021-04-15 11:29:24 -07:00
Chris Kim
332fd73d46
Add support for both config-file and data-dir at a global level in the self-extracting wrapper for K3s ( #2594 )
...
* Add support for both config-file and data-dir at a global level in the self-extracting wrapper for K3s
Signed-off-by: Chris Kim <oats87g@gmail.com >
2020-12-16 09:27:57 -08:00
Darren Shepherd
289ba8df6a
All arguments should be of the form --k=v so that bool flags will work
...
Previously a bool flag would be rendered as --flag false for `flag: false`
which is invalid and results in the opposite of what you'd expect.
Signed-off-by: Darren Shepherd <darren@rancher.com >
2020-09-03 16:25:35 -07:00
Darren Shepherd
21d21ddd4d
Add config file support independent of CLI framework
...
Signed-off-by: Darren Shepherd <darren@rancher.com >
2020-08-29 21:44:13 -07:00