Andreas Skau
214848c75e
Add IPMI escape char functionality
2023-12-04 15:42:01 +01:00
Jonathon Anderson
42842aeee1
Format entire source code using make fmt
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-10-23 17:56:20 -06:00
Christian Goll
951dd13866
no error if images for containers don't exist
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2023-10-14 02:26:03 -06:00
Arnaud Lecomte
f2392f6e37
Updating documentation & API endpoint for container copy
2023-08-28 08:39:15 +02:00
Arnaud Lecomte
b56f024e6f
Core of image's duplication feature
2023-08-25 13:54:39 +02: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
Matthew Hink
2094533894
Build fixes for API
...
- Updated the linter from 1.50 to 1.53.2 because the previous version
was falling over (likely OOM).
- Updated protoc build command for newer version of protobuf.
The make command below should work now:
```shell
make clean setup proto all build wwapid wwapic wwapird ; echo $?
```
Signed-off-by: MatthewHink <matthew_hink@ciq.com >
2023-08-09 11:42:37 -06:00
Jonathon Anderson
7b2f278f94
Refactor and fix bugs in syncuids
...
Closes #840
* SyncUids can now return applicable errors even during showOnly, so
updated ContainerImport to ignore errors during showOnly.
* Fixed handling of file gids during SyncUids
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-08-08 11:25:09 -06:00
jason yang
40583b4713
fix kernelargs are not printing properly in node list output
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-05-25 01:21:49 +00:00
Jonathon Anderson
70292276e2
Rename BaseConf.New to BaseConf.Get
...
Since BaseConf.New could return a cached BaseConf, rather than always
constructing a new struct, I've renamed it to Get to more accurately
reflect its use. A new New() method is called by Get and always
initializes a new struct.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
c461e65a98
Rename pkg/warewulfconf to pkg/config
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06: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
5f5724c8a9
Merge branch 'development' into RefactorFlags
2023-04-11 14:17:13 +02:00
Christian Goll
48c08f3fd7
Merge pull request #719 from hpcng/hashConf
...
more secure edit command
2023-04-11 11:44:01 +02:00
jason yang
6f200d65a6
Merge branch 'development' into issue/690
2023-03-28 07:09:33 +00:00
Christian Goll
c476ba8ec4
hash checking for profile edit
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-24 19:47:22 +01: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
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
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
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
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
eae6d195b0
Merge pull request #676 from hpcng/RefactorProfileList
...
Refactor profile list
2023-02-24 15:14:22 +01:00
Christian Goll
063c05602d
Merge pull request #665 from mslacken/ContainerMnt
...
Container mnt
2023-02-24 15:13:12 +01:00
Christian Goll
aec1cb82ae
ipmi and kernel fields were missing in ouput
2023-02-16 12:18:04 +01:00
Jonathon Anderson
104f9197f3
Merge pull request #671 from hpcng/SortNetnames
...
sort netnames for node list
2023-02-02 20:56:45 -07:00
Jonathon Anderson
963793d96e
Merge pull request #669 from mslacken/FixContainerShow
...
container show will only show valid containers
2023-02-02 20:54:55 -07:00
Jonathon Anderson
e8e9c4f3bd
Merge branch 'development' into lint-update
2023-02-02 14:38:33 -07:00
Christian Goll
edce6b8140
refactored profile list command
2023-02-02 12:22:07 +01:00
Christian Goll
0a8638698d
sort netnames for node list
2023-02-01 11:10:51 +01:00
Christian Goll
b5725513b3
container show will only show valid containers
2023-02-01 09:30:27 +01:00
Christian Goll
f5b35f7ef8
do not copy resolv.conf, but mount it
2023-01-31 16:04:08 +01:00
Christian Goll
c7abc078bf
Merge pull request #585 from mslacken/fix-container-list
...
react on the error accordingly
2022-12-09 09:53:01 +01:00
Jonathon Anderson
78b857a3e4
Whitespace cleanup
...
Removes trailing whitespace from all source files.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-12-08 18:59:56 -07:00
Christian Goll
241425f525
react on the error accordingly
2022-12-07 15:10:18 +01:00
Christian Goll
fee0bb20b7
use tag instead of nettag
2022-10-18 10:10:21 +02:00
mslacken
ab0ee87629
updated linter and fixed deprecated stuff
2022-10-14 17:40:16 +02:00
Christian Goll
4fe584547b
Merge branch 'development' into wwlog-newlines
2022-10-13 14:46:03 +02:00
Christian Goll
fab7e09aeb
Merge branch 'development' into container-info2
2022-10-13 10:53:49 +02:00
Christian Goll
396f3238c1
added size of containers
2022-10-13 10:35:17 +02:00
Christian Goll
71bf385cb7
add modifictation and creation date
2022-10-13 10:33:54 +02:00
Christian Goll
33504354c2
Merge branch 'development' into node-edit
2022-10-13 09:59:38 +02:00
Christian Goll
c3416de3cb
fix for go1.16 and possible sigsev
2022-09-19 17:10:06 +02:00
Christian Goll
8e0fd64c7e
add profile edit (copy&paste) from node edit
2022-09-19 16:01:36 +02:00
Christian Goll
7c453066fa
add short check if config can be written
2022-09-19 11:09:36 +02:00
Jonathon Anderson
4661b02a3d
Move "not found" presentation to CLI
2022-09-16 21:56:39 +00:00
Jonathon Anderson
14b45e37c0
Fix output of wwctl container show
...
Commit d8cd6049 introduced erroneous output coming from an
inner function of container show, and (seemingly) erroneously
replaces valid kernel versions with "not found". This commit
fixes both of those issues, and moves the output to the outer
cli function.
2022-09-16 21:33:49 +00:00