Christian Goll
366113bf65
Merge branch 'RefactorFlags' into development
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:24:47 +01:00
Christian Goll
12e462afa1
added parsing tests
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:54 +01:00
Christian Goll
e27ee11f16
fixed wrong converter for bools
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:54 +01:00
Christian Goll
96644be621
allow UNSET for IP addresses
...
added more tests for GetFrom
allow UNSET and handle empty hwaddr
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:38 +01:00
Christian Goll
b0602133ec
use netParseIP and ParseMAC
...
check also MAC addresses and common formating
Signed-off-by: Christian Goll <cgoll@suse.de >
reformat ipaddr for test coverage
fixed processing of default values
updated transformer tests
correct behavior for tags
add tests for tags
new tests for primary network
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:07 +01:00
Christian Goll
c14dd3c6d1
check the yaml direclty after unmarshalling
2023-03-23 11:15:50 +01:00
Christian Goll
13bc378a6b
Refactor the CreateFlags command
...
* added the additional type flag, which can be bool,IP
* UNDEF is recognized for the bool flag
* 0.0.0.0 must be used as UNDEF for IP flag
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:15:50 +01:00
Christian Goll
09d14039b0
added Changelog
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:15:44 +01:00
Christian Goll
70361425ff
generate man pages via sub command
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:11:01 +01:00
Christian Goll
2410a8194c
wwctl node add without global variables
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:11:01 +01:00
Christian Goll
4750f96cc6
main_tests are not working as expected
...
The global values which store the flags are not regenerated during test
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:11:01 +01:00
Christian Goll
b00a619746
moved location of defaults.conf
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:10:58 +01:00
Christian Goll
c1e2100322
added a test for wwctl node add
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:10:29 +01:00
Christian Goll
4a8384dbf3
added Changelog
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:10:21 +01:00
Christian Goll
290c6449dd
removed getters as configs must exportable
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
c708154924
added new build in vars to rest of binaries
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
e117464f50
paths need to be visibale for marshalling
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
4deae97bc8
make the configuration to be based in warewulf.conf
...
defaults will be se by the Makefile
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
f2eff0f7b8
added wwctl genconfig warewulfconf print
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
6b510865fe
added warewulfconf as command line parameter
...
the environment variable WAREWULFCONF is also recognized
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
29a6d39a24
added make_defaults to wwctl genconfig defaults
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
1a19cfda63
moved print_defaults to wwctl genconfig defaults
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:20 +01:00
Christian Goll
fa78d582eb
generate reference documentation
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:19 +01:00
Christian Goll
ee7bc75bd7
generate man pages via sub command
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:19 +01:00
Christian Goll
3526c2bd5f
added wwctl genconf used to generate completions
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:09:19 +01:00
jason yang
522c3478fb
use tablewriter to format the output
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-03-23 02:44:59 +00:00
Christian Goll
8f76b81596
Merge branch 'development' into genconf
2023-03-22 12:06:58 +01:00
jason yang
84bfccba43
add support for resolving absolute path automatically
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-03-22 04:18:50 +00:00
Jonathon Anderson
6073354d24
Update documentation to reference ghcr rather than DockerHub
...
Warewulf sample node images are now built automatically with GitHub CI/CD,
targeting ghcr.io. This updates the documentation to reference that location
rather than DockerHub.
Addresses #732
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-03-20 16:09:05 -06:00
Yang Xu
854240075a
Merge branch 'development' into issue/661
2023-03-17 18:06:18 +09:00
jason yang
8dc0168412
changing a profile always adds an empty default interface
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-03-17 09:01:51 +00:00
Christian Goll
d34e496d42
wwctl node add without global variables
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-08 12:33:05 +01:00
Christian Goll
d3af143a5b
main_tests are not working as expected
...
The global values which store the flags are not regenerated during test
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-07 17:01:57 +01:00
Christian Goll
07d39c2e49
moved location of defaults.conf
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-07 11:49:09 +01:00
Christian Goll
3367b67b9f
added a test for wwctl node add
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-07 09:05:29 +01:00
Christian Goll
a422a1617c
added Changelog
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-06 15:53:32 +01:00
Christian Goll
ce43dfa0b7
removed getters as configs must exportable
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-06 10:20:00 +01:00
Christian Goll
b55473e1e4
added new build in vars to rest of binaries
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 16:21:44 +01:00
Christian Goll
ca088d123d
paths need to be visibale for marshalling
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 16:12:53 +01:00
Christian Goll
377702a179
make the configuration to be based in warewulf.conf
...
defaults will be se by the Makefile
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 16:02:41 +01:00
Christian Goll
32b4bb74cc
added wwctl genconfig warewulfconf print
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 14:07:26 +01:00
Christian Goll
78978ad233
added warewulfconf as command line parameter
...
the environment variable WAREWULFCONF is also recognized
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 11:18:49 +01:00
Christian Goll
bb894df100
added make_defaults to wwctl genconfig defaults
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-02 19:44:48 +01:00
Christian Goll
61960b6c8c
moved print_defaults to wwctl genconfig defaults
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-02 15:23:46 +01:00
Christian Goll
786ccdb1e1
generate reference documentation
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-02 13:52:06 +01:00
Christian Goll
94866656a4
generate man pages via sub command
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-02 11:10:20 +01:00
Christian Goll
ab2139a1fd
added wwctl genconf used to generate completions
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-01 16:42:58 +01:00
Jonathon Anderson
88feb1a876
Testing for the batch package
...
* Remove Min function (unused)
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-02-24 22:47:12 -07:00
Christian Goll
2c9a241643
Merge pull request #683 from hpcng/overlayEdit
...
make output less scary for new files
2023-02-24 15:15:46 +01:00
Christian Goll
b9810f2c3a
Merge pull request #682 from hpcng/RefactorPrimary
...
set the primary network in NodeInfo not in NetDev
2023-02-24 15:15:24 +01:00