Christian Goll
68758e3e45
use comments of variables for help
2025-12-09 22:52:44 -07:00
Jonathon Anderson
08a8eb430c
wwctl node args and completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:13:40 -07:00
Jonathon Anderson
73a8ef8e0e
Refactor wwctl <node|profile> edit and fix bugs
...
`wwctl node edit` appears to not be working properly since MergeNode. This
refactor, partly towards #918 , resolves the issues with `node edit` and updates
`profile edit` to match.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 13:02:18 -07:00
Jonathon Anderson
0665d5dc88
Refactor node
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:47 -07:00
Christian Goll
0dd0317740
replaced errors.Wrap with fmt.Errorf
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-07 22:57:29 -07:00
Jonathon Anderson
df37018f79
Fix wwctl node edit
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 23:00:52 -04:00
Christian Goll
4c8a07f1dc
changes for yaml/v3 for wwctl commands
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:54 -04:00
xu yang
3f120f2c4b
Return non-zero exit code on node sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-26 06:15:02 +00:00
xu yang
cd0ef5c4a8
fix the issue when node edit deletes node when warewulfd is not running
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-01-30 17:10:52 -07:00
xu yang
7746854732
Fix error when editing node
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-01-30 17:10:52 -07:00
Jonathon Anderson
a1832ad8c1
Complete transfer of Warewulf from HPCng
...
Warewulf is now being maintained in its own GitHub organization at
github.com/warewulf
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-26 21:35:04 -07:00
Christian Goll
45539a0d1f
Recursive handling for command line flags
...
Every struct in a NodeConf with `lopt:"foo" set is now added as a
command-line flag with the RecursiveCreateFlags call. For maps a struct
with the key UNDEF is added so that it can be parsed out.
As the flags for the command-line need variables which hold the values,
for every map an element map[UNDEF] is added. When now calling the
internal add, these map element can be filtered out and replace by the
given name. (e.g., --netname)
* rewrote node/profile add for recursive functions
* rewrote node/profile set for recursive functions
* rewrote node/profile list for recursive functions
Signed-off-by: Christian Goll <cgoll@suse.com >
2023-08-21 16:19:13 -06:00
jason yang
956e1b3569
squah commits
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-05-15 10:27:52 +00:00
Christian Goll
5f5724c8a9
Merge branch 'development' into RefactorFlags
2023-04-11 14:17:13 +02:00
Christian Goll
b4acf0fdf2
added hash check for node edit
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-24 19:47:22 +01:00
Christian Goll
c14dd3c6d1
check the yaml direclty after unmarshalling
2023-03-23 11:15:50 +01:00
mslacken
ab0ee87629
updated linter and fixed deprecated stuff
2022-10-14 17:40:16 +02:00
Christian Goll
a4fbe428e2
only show options with lopt
2022-09-23 14:47:17 +02:00
Christian Goll
3cc9e12e69
add yaml strings as comment
2022-09-19 15:23:33 +02:00
Christian Goll
7c453066fa
add short check if config can be written
2022-09-19 11:09:36 +02:00
Christian Goll
54dd8b3d2f
linter fixes as some errors may not really occur
2022-09-16 17:02:17 +02:00
Christian Goll
7087f3e4a1
add edit command for direct edit of node entries
2022-09-16 16:51:07 +02:00