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
xu yang
9daaab2983
wwctl should return non-zero exit code on wwctl kernel sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-10-28 15:54:41 -06: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
2ba9efa57c
created kernel.FindKernel reduces code complexity
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-04-19 16:12:22 -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
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
67e526d726
added test and reafctorred kernel.Build
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Jonathon Anderson
0b3e862bea
Remove trailing newline from wwlog
...
I noticed that some wwlog calls included a trailing newline, but others
did not. I tested both in isolation and discovered that the behavior was
consistent regardless of whether a trailing newline was included. I
further confirmed in code that wwlog appends a trailing newline
automatically if it is not present; so a trailing newline is unnecessary
in individual calls.
This commit removes trailing newlines from all calls to make them
consistent. It also replaces two calls to wwlog.Printf. (see #534 )
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-09-15 12:38:03 -06:00
Jonathon Anderson
22910958b5
Replace all instances of wwlog.Printf
...
wwlog provides named loggers for each level, which requires
less code and is clearer than wwlog.Printf. The code has
included a mix of both, but this commit consolidates existing
code on the per-level functions.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-09-11 08:00:23 -06:00
jcsiadal
bfde70cf8a
Error free lint
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-04-04 17:01:11 +00:00
Gregory Kurtzer
1203186194
Support kernel overrides from the host or other containers
2022-02-17 07:37:04 +00:00
Gregory Kurtzer
104bc7527d
Restored deleted kernel components for overrides
2022-02-17 06:21:40 +00:00
Gregory Kurtzer
5a0c13225e
Utilize containerized kernel and remove kernel Support
2022-02-15 06:49:24 +00:00
Christian Goll
4eabb957bb
added option for automatic kernel detection
2022-02-03 11:12:59 +01:00
jcsiadal
0b93d6c277
Update help
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2021-11-08 11:36:21 -08:00
Christian Goll
7c6c96fc4f
kernel import must not have absolute path
2021-10-14 11:52:14 +02:00
Gregory M. Kurtzer
604dd2026f
Merge pull request #149 from mslacken/bash-dynamic-nouns
...
Bash-completion dynamic nouns
2021-09-30 23:56:22 -07:00
Gregory M. Kurtzer
411e51f272
Merge pull request #139 from mslacken/kernel-tag
...
handling kernels by name
2021-09-29 20:47:42 -07:00
Christian Goll
edf1329246
added basic error handling for flag nouns
2021-09-28 12:14:46 +02:00
Christian Goll
b3743657b2
dynamic nouns for 'wwwctl kernel'
2021-09-28 10:01:54 +02:00
Christian Goll
09976889cc
using upercase 'c' for container as in set
2021-09-22 15:05:50 +02:00
Christian Goll
5e25fd94d4
fixed hadning fo args
2021-09-22 14:54:54 +02:00
Christian Goll
341bdc2019
fixed linting errors
2021-09-20 13:06:43 +02:00
Christian Goll
dfd6ce3735
handling k ernels by nme
...
version is also stored, kernel name defaults to its version
2021-09-20 12:22:36 +02:00
Gregory Kurtzer
f9b9c3a8c1
Linting fixes
2021-09-08 20:37:58 -07:00
Gregory M. Kurtzer
5fa6105630
Merge pull request #116 from mslacken/kernel-container
...
Added container option for kernel import
2021-09-08 16:10:14 -07:00
Christian Goll
3093ef526a
Added container option for kernel import
2021-09-08 17:50:44 +02:00
WestleyR
4edc16953e
Fix linting issues
2021-09-07 20:48:51 -07:00
Gregory Kurtzer
c88e062a62
Match kernel list output header for node count
2021-08-20 19:39:02 -07:00
Yong Qin
a3e94473cb
Added "kernel delete" command.
2021-04-07 15:23:37 -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
88dbec7ed9
Automatically reload daemon configuration file when configuration file is changed.
2021-02-12 23:00:03 -08:00
Gregory Kurtzer
30c6b64413
Support importing a kernel from a chroot directory
2021-02-04 18:06:46 -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
62a1abaab3
Cleanups and minor fixups
2020-12-13 22:45:08 -08:00
Gregory Kurtzer
5c995f9d0f
Added Init to datastructure, fixups to container interface, and --setdefault to kernel and container build
2020-12-06 22:29:25 -08:00
Gregory Kurtzer
0095b55624
Updates around VNFS restructure and kernel restructure. More coming.
2020-12-05 16:43:30 -08:00
Gregory Kurtzer
6cbaa29fbd
Fixes for new API
2020-12-03 17:28:28 -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
43ad7e570c
API updates and fixes to CLI
2020-12-01 23:34:24 -08:00
Gregory Kurtzer
1a332e42a3
Updates to kernel cli for NodeDB
2020-11-26 19:19:16 -08:00
Gregory Kurtzer
a4d2e3a0c8
This is a work in progress, some of which will be reverted like overlay handling.
2020-11-25 23:58:38 -08:00
Gregory Kurtzer
e5e23b5868
Changed backend node API to account for default and overrides for UI
2020-11-23 23:11:20 -08:00
Gregory Kurtzer
221e71b384
A bunch of changes including reworking the assets -> node API
2020-11-20 17:59:06 -08:00
Gregory Kurtzer
e9132cf6f7
Basic functionality of wwctl vnfs build worked out
2020-11-18 22:46:23 -08:00
Gregory Kurtzer
724e1de14c
Setup kernel support
2020-11-18 21:52:03 -08:00
Gregory Kurtzer
85603ee947
Lots of changes including: wwctl overlay list and framework for other commands
2020-11-16 21:37:55 -08:00