Christian Goll
a0efd7fe08
Added --partwipe flag for set
2026-01-21 10:38:47 +01:00
Christian Goll
68758e3e45
use comments of variables for help
2025-12-09 22:52:44 -07:00
Jonathon Anderson
59f187bf5e
Convert disk booleans from wwbool to *bool
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-09-05 14:16:03 +02:00
Christian Goll
5e40c66381
test for disk vars set to false
2025-09-05 14:15:53 +02:00
Christian Goll
e72368cd26
fix wwctl profile set for disk/fs/part
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-05-27 13:56:04 -06:00
Jonathon Anderson
4005afac4c
Add a new OpenAPI v3 REST API to warewulfd at /api
...
Co-authored-by: jason yang <jasonyangshadow@gmail.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-03 07:12:03 -06:00
Jonathon Anderson
09488db3f6
Fix processing of UNDEF and UNSET during wwctl <node|profile> set. #1837
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 18:16:14 -06:00
Jonathon Anderson
9a3e48fa37
Explicitly enforce the number or arguments accepted by some wwctl subcommands. #1717
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:06:07 -06:00
Jonathon Anderson
d968b02153
Fix image completion
...
- Fixes #1734
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 10:23:56 -07:00
Jonathon Anderson
f71483035b
Updated overlay flags
...
New flags: `wwctl <node|profile> <add|set> [--runtime-overlays|--system-overlays]`.
Previous flags retained hidden for backwards-compatibility.
- Closes : #1495
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 19:17:08 -07:00
Jonathon Anderson
3b963ee5a6
Simplify node, profile, and image completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:38:27 -07:00
Jonathon Anderson
760b6e5217
wwctl <node|profile> overlay list completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:13:53 -07:00
Jonathon Anderson
3fbc2fc75c
wwctl profile args and completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:13:53 -07:00
Jonathon Anderson
b05e384560
Refactor to completions.Profiles
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-05 19:09:04 -07:00
Christian Goll
60872bd42e
Add completion for profile list
...
- Closes : #1696
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-02-05 19:08:58 -07:00
Jonathon Anderson
4f83885c5b
Show each overlay only once #1675
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-01 13:40:12 +01: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
45a690ca4e
Rename "container" to "image"
...
- Updated `wwctl upgrade` to handle updates
- Maintained `.Container` and `.ContainerName` in tstruct
- Added `ContainerName()` methods to node and profile objects
- Added `--container`, `-C` aliases to wwctl commands (`<node|profile> <add|set>`)
- Added `wwctl container` alias
- Added support for `container_exit.sh` if `image_exit.sh` is not found
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 05:54:19 -07:00
Jonathon Anderson
eff1edd038
Fixing tests in review of #1568
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-17 01:27:15 -07:00
Christian Goll
07c77a63d5
use list of resources in profiles/nodes
...
access the resource not at node or profile level but
in the templates as global variable
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-01-16 23:00:37 -07:00
Christian Goll
5ff27061a3
added remote resources
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-01-16 23:00:37 -07:00
Jonathon Anderson
a18913924d
Benchmarking for wwctl overlay build
...
- Benchmarks overlay build in an environment with 1000 nodes
- Updates testenv to support both benchmarks and tests
To execute:
```
go test github.com/warewulf/warewulf/internal/app/wwctl/overlay/build -bench Benchmark_Overlay_Build
```
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 12:34:23 -07:00
Jonathon Anderson
83af6021c0
Recast Profiles as a Profile field and support recursion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:10:05 -07:00
Jonathon Anderson
deaf9c99d7
Remove DEBUG logging in test suite
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:10:02 -07:00
Jonathon Anderson
a80ba8ee01
Configure nodes.conf path dynamically from config
...
Removes the use of init() to initialize the variable.
- Closes : #1596
- See also: #1569
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 11:04:43 -07:00
Jonathon Anderson
a844379bc5
Merge --kerneloverride into --kernelversion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:28 +01:00
Jonathon Anderson
8f21d54243
Refactor kernel support
...
- Remove kernel imports and kmods images
- Repurpose KernelOverride as container path
- Support Kernel.Version as version prefix for kernel selection
- Compare initramfs by version
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:22 +01:00
Jonathon Anderson
a7325b6ffa
Remove WW_INTERNAL
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:54 -07:00
Jonathon Anderson
0665d5dc88
Refactor node
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:47 -07:00
Jonathon Anderson
9c3b52b27f
Restore skipped tests
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-08 07:12:35 -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
a8554b0af5
Replace olekukonko/tablewriter with cheynewallace/tabby
...
- Closes #1497
- Closes #1498
This library is simpler and doesn't produce extraneous whitespace around
the output.
A local helper function restores "--" for empty output.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 22:44:50 -07:00
Jonathon Anderson
a3ede90093
Use "default" netname during add, set
...
- Closes #1499
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 22:40:58 -07:00
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
30ac144044
Restored profile list tests and resolved exposed bugs
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 23:58:37 -04:00
Jonathon Anderson
df37018f79
Fix wwctl node edit
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 23:00:52 -04: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
5bd4fd4712
use yaml/v3 and don't export Nodes
...
introduced wwbool and don't export
Nodes and NodeConfs. This requires new
explict Yaml (un)marshaling as the standard
marshaller won't touch these fields
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
Jonathon Anderson
e99e8c3dbb
Update use of wwlog.Info to specify a format string
...
Since wwlog.Info() expect a format string, accidental inclusion of a
format string in the payload causes an error.
See also #1382 , #1363
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-25 13:49:11 -06:00
xu yang
aa8282ad10
Fix excessive line spacing issue when listing nodes
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-25 13:49:08 -06: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
Xu Yang
16183e603c
add multiple formats support
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-03-19 01:48:08 -06:00
Yong Qin
0aca225ef7
Fixed a bug with profile list when kernelargs are set with 'var=val'
...
format. This also removed the unnecessary '--' for the source profile
since it's never used.
2024-03-11 11:04:21 +01: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
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