Commit Graph

1281 Commits

Author SHA1 Message Date
Christian Goll
20fa9d2e2a fix regression on container import 2022-08-11 16:38:43 +02:00
Christian Goll
8c2d40881d use reflect on overlays 2022-08-10 17:09:10 +02:00
Christian Goll
41d12888ab reflections for unmarshal 2022-08-10 14:16:48 +02:00
Christian Goll
d819eef792 tags for ipmi and kernel 2022-08-04 20:07:24 +02:00
Christian Goll
ba46e34a4d merging profile update 2022-08-03 14:49:50 +02:00
Christian Goll
ed5b2bbf35 using tag instead of key 2022-08-03 13:44:12 +02:00
Christian Goll
96731a4b87 node list imporvement 2022-08-03 11:47:25 +02:00
Christian Goll
b548d8583d reflection on constructor 2022-08-03 11:28:15 +02:00
Christian Goll
925a5a2155 Fix node set 2022-07-26 12:01:13 +02:00
Christian Goll
d252b974bf Fix Nodeadd with ipaddr count 2022-07-21 08:41:36 +02:00
Christian Goll
99e9316011 restore old node list 2022-07-20 12:13:19 +02:00
Christian Goll
e23f794166 simplified node list command 2022-07-19 17:21:27 +02:00
Christian Goll
1dd519a7e6 clean up and linting fix 2022-07-18 15:04:38 +02:00
Christian Goll
26fff30897 node add with all options now 2022-07-18 14:42:00 +02:00
Christian Goll
e6ef30ed53 porfile add has now all otions of set 2022-07-15 11:10:12 +02:00
Christian Goll
510f6a60a9 added excludellist to CreateFlags 2022-07-14 10:40:46 +02:00
Christian Goll
e0c62a81a4 testing profile set 2022-07-14 10:35:27 +02:00
Christian Goll
d10b4c352f new apinode namespace in wwapid 2022-07-13 16:05:16 +02:00
Christian Goll
14b86a5e8e added profile set over API 2022-07-13 15:56:04 +02:00
Christian Goll
f0eb3f8504 fixed embeded init for linitng 2022-07-13 14:43:02 +02:00
Christian Goll
59141a6dac change network hadnling 2022-07-13 11:52:24 +02:00
Christian Goll
c8d70e23ad rebased on new API 2022-07-11 16:34:08 +02:00
Christian Goll
29573e26ad added more values 2022-07-07 11:39:02 +02:00
Christian Goll
a37fa71de0 add explicit set of netname 2022-07-07 11:38:19 +02:00
Christian Goll
8902f08c87 added hangling of map[string]*struct 2022-07-07 11:37:18 +02:00
Christian Goll
84d3b72f63 added more abstrac setter for nested structs 2022-07-07 11:29:58 +02:00
Christian Goll
f5b6287486 Explicit setter func at complie time 2022-07-07 11:29:19 +02:00
Christian Goll
bd2543d484 relection test for comment 2022-07-07 11:28:27 +02:00
Christian Goll
9796e61678 Merge pull request #469 from mslacken/fix-468
fix nil map for networks
2022-07-06 21:38:55 +02:00
Christian Goll
7878712b8a Merge pull request #471 from MatthewHink/mhink-development-wwapi-rebase
Initial cut of wwapi.
2022-07-06 21:37:37 +02:00
MatthewHink
d8cd6049ac Initial cut of wwapi.
We need an API for Warewulf in order to automate around it. The initial version of the API will look a lot like wwctl. wwctl will call the API so that we do not need to maintain separate code paths. In this preview wwctl calls the API via direct function call, but we can change that to a gprc or REST call to a Warewulf server in the future.

This commit contains:
wwapid WareWulf API Daemon. A grpc server with mTLS auth.
wwapic WareWulf API Client. A grpc client with mTLS auth. It's just a sample that reads the version from the server.
wwapird WareWulf API Rest Daemon. A http REST reverse proxy to wwapid.
There are also sample insecure and secure curls to test with.

Implemented Functionality:
wwctl node add
wwctl node delete
wwctl node list
wwctl node set
wwctl node status
wwctl container build
wwctl container delete
wwctl container import
wwctl container list
wwctl container show

Some notes on the files:

    Logic that was in wwctl has moved to warewulf/internal/pkg/api. wwctl just calls the API. wwctl functionality is unchanged.
    Everything under the /google directory is copied google proto code to stand up wwapird. It's a bit strange to copy in the code, but that is currently how it's done.
    Everything in warewulf/internal/pkg/api/routes/wwapiv1 is generated code.

There are some loose ends here, such as no service installers. I just ran off the command line for development.
The Makefile could use improvement. I'm building by make clean setup proto all build wwapid wwapic wwapird ; echo $?
I copied the configs from warewulf/etc to /usr/local/etc/warewulf manually.
2022-06-24 08:39:30 -07:00
Christian Goll
a13a00a03d fix nil map for networks 2022-06-24 17:20:47 +02:00
Christian Goll
d976e7fc31 Merge pull request #467 from mslacken/single-Overlay
enable overlay rendering
2022-06-24 09:50:14 +02:00
Christian Goll
5034413361 Merge pull request #466 from mslacken/ssh-bash-completion
bash completion for ssh command
2022-06-24 09:48:46 +02:00
Christian Goll
67eb5dca76 Merge pull request #465 from mslacken/type
add type to network configs
2022-06-24 09:48:37 +02:00
Christian Goll
2edbd37bcd Merge pull request #464 from mslacken/bool-fmt
add brackets for PrintB if its default
2022-06-24 09:48:27 +02:00
Christian Goll
0b5a39272f Merge pull request #463 from hpcng/main
Main
2022-06-24 09:42:04 +02:00
Christian Goll
f4a4d40170 Merge pull request #462 from e73kiel/patch-1
Update CHANGELOG.md
2022-06-24 09:40:50 +02:00
e73kiel
2bb6662c00 Update CHANGELOG.md 2022-06-24 09:36:04 +02:00
Christian Goll
3ced0e2836 add brackets for PrintB if its default 2022-06-23 12:35:19 +02:00
Christian Goll
d99717f288 Merge pull request #455 from mslacken/suse-mock
Add suse builds mock build
2022-06-23 10:36:35 +02:00
Christian Goll
1c850335ac add type to network configs 2022-06-22 14:45:56 +02:00
Christian Goll
cc6b75a4f6 bash completion for ssh command 2022-06-22 12:17:04 +02:00
Christian Goll
a79503eddd Added right mock build 2022-06-20 14:46:00 +02:00
Christian Goll
e0afbced13 Add suse builds mock build 2022-06-20 14:35:35 +02:00
Gregory Kurtzer
235c23c516 Bump makefile to version 4.3.0 2022-06-15 14:15:07 -07:00
Gregory M. Kurtzer
af86122a6e Merge pull request #453 from elguero/main
Adjust release build artifacts upload to handle pre-releases
2022-06-14 22:29:25 -07:00
Gregory M. Kurtzer
19065b3cc5 Merge pull request #450 from mslacken/fix-set-profile
Fix wwct node set profile for single profile
2022-06-14 22:28:29 -07:00
Michael L. Young
3f86dcc3a5 Adjust release build artifacts upload to handle pre-releases
Update the upload-artifacts and download-artifacts version

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-06-12 08:19:14 -04:00
Christian Goll
8cd4b0aa02 Fix wwct node set profile for single profile 2022-06-10 13:39:05 +02:00