xu yang
139b9880a0
Return non-zero exit code on profile sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-10-28 16:04:25 -06:00
Jonathon Anderson
d91d273ac7
Use ProfileConf rather than NodeConf for profile commands
...
This removes node-only attributes, like a profile list, from profile commands.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 15:39:59 -04:00
Christian Goll
342236b9b9
updated test for yaml/v3
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:54 -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
Christian Goll
ac6cd69ca6
fix test to run without NodeInfo
...
Also removed --fullall from node list and profile list
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:47 -04:00
Christian Goll
457c7c16b1
wwctl commands without NodeInfo
...
mostly remove Get and calls for the id
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 13:35:42 -04:00
Christian Goll
17a5aaefee
added more aliases for wwctl commands
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-03-20 21:11:14 -06:00
Christian Goll
1fca0057d3
updated WW_INTERNAL to 45 for 4.5.x release
...
Internal version update is necessary as new structures were added,
most obviously the disk, partitions and file system structures.
Old configurations will work as expected.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-16 20:12:51 -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
Jonathon Anderson
62018eedf0
Fix a failing unit test after a rebase
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:05:24 -06:00
Jonathon Anderson
e693ca9cd4
Merge remote-tracking branch 'jason/issue/658' into development
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-16 18:43:59 -06:00
jason yang
d73a6f269c
fix the code
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-04-12 12:04:53 +00:00
jason yang
7500688f82
merge the latest development
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-04-12 10:29:35 +00:00
jason yang
0faada6aae
refactor the profile add
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-04-12 10:27:44 +00:00
Christian Goll
0f2fcb326f
Merge pull request #670 from mslacken/FixProfileAdd
...
correct behavior of profile add to yes flag
2023-04-12 08:58:10 +02: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
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
0042edf994
correct behavior of profile add to yes flag
2023-02-01 10:56:51 +01:00
Christian Goll
9539e20a4e
add -y flag to wwctl profile add
...
close #610
Signed-off-by: Christian Goll <cgoll@suse.de >
2022-12-22 14:54:42 +01:00
Christian Goll
255ff61dc8
adding netname option back
2022-08-31 17:05:28 +02:00
Christian Goll
b485ea999f
removed optionStrMap in favor of NodeConf
...
openStrMap is a map[string]string which is sent arround. This is now
done by using a unmarshalled NodeConf instead.
2022-08-18 19:22:55 +02:00
Christian Goll
d252b974bf
Fix Nodeadd with ipaddr count
2022-07-21 08:41:36 +02:00
Christian Goll
1dd519a7e6
clean up and linting fix
2022-07-18 15:04:38 +02:00
Christian Goll
e6ef30ed53
porfile add has now all otions of set
2022-07-15 11:10:12 +02:00
jcsiadal
0b93d6c277
Update help
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2021-11-08 11:36:21 -08:00
jcsiadal
de2c882ba1
Replace HTML in help
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2021-10-28 17:48:16 -07:00
WestleyR
4edc16953e
Fix linting issues
2021-09-07 20:48:51 -07:00
Gregory Kurtzer
9d1a3bacfe
profile add doesn't take configuration flags (#57 )
2021-04-25 13:24:51 -07:00
Ian Kaneshiro
846b45524c
Tidy up
...
- Ran goimports to format code and imports
- Removed unused module from go.mod
- Added .editorconfig to keep formatting standard across contributors
2021-02-16 11:54:12 -08:00
Gregory Kurtzer
72b1d8c9d8
UI Updates with a few minor fixups scattered here and there
2021-01-14 20:23:42 -08:00
Gregory Kurtzer
eaf6bb1196
This is a work in progress API shift as the data structure has changed and I'm cleaning the interface.
2020-12-03 07:34:26 -08:00
Gregory Kurtzer
41dd2e3a59
Added basic profile handling CLI
2020-11-27 16:37:56 -08:00