Commit Graph

27 Commits

Author SHA1 Message Date
dependabot[bot]
a5d02f193e Bump github.com/spf13/cobra from 1.1.1 to 1.6.1
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.1.1 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.1.1...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-22 09:04:26 +00: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
83d0ce88f5 added go-systemd to go.sum 2022-01-26 11:31:26 +01:00
Gregory Kurtzer
5083e929f0 Add asset tag and uuid support to wwclient 2022-01-24 00:44:07 +00:00
Gregory Kurtzer
fdbca2e07d Add color to wwctl node status output and time based filter 2021-12-31 03:24:09 +00:00
Gregory Kurtzer
525ac1184e Simplified version of node status monitoring with CLI 2021-12-30 23:26:45 +00:00
Yoshiaki SENDA
a6b432062a support structs with default values (#1)
* support struct with default values #183
* omit space
2021-11-08 17:33:31 -05:00
WestleyR
4edc16953e Fix linting issues 2021-09-07 20:48:51 -07:00
Gregory Kurtzer
eac54ad88a Working on vendor module fixes for go 2021-08-22 21:54:46 -07:00
Gregory Kurtzer
ad6dec792b Readding Yong's addition of graphdriver/copy 2021-04-23 21:49:25 -07:00
Gregory Kurtzer
3ce16be7a9 Update godeps 2021-04-23 19:39:19 -07:00
Yong Qin
0346d98d46 Fixed the bug with importing container/vnfs from a directory. 2021-04-07 11:25:57 -07:00
Gregory Kurtzer
d00ea3ba00 Index node database for daemon to make lookups always instantaneous 2021-02-12 22:58:22 -08:00
Gregory Kurtzer
a5a3e404cf Cleaned go.* files 2020-12-15 21:29:50 -08:00
Gregory Kurtzer
f1706a4a0e Daemon updates, backgrounding, and CLI integration 2020-12-12 23:50:38 -08:00
Gregory Kurtzer
84bf9fbb43 profile and node commands and DB all working as expected now 2020-12-03 13:49:49 -08:00
Gregory Kurtzer
bc2bee9cf0 Fix for network calculation for DHCP 2020-12-01 15:19:58 -08:00
Shannon V. Davidson
6ada88e07d Merge branch 'main' of github.com:ctrl-cmd/warewulf into main 2020-12-01 13:49:28 -06:00
Shannon V. Davidson
f542666bf1 added BMC/IPMI configure overlay script 2020-12-01 13:43:58 -06:00
Gregory Kurtzer
9b87bbc6bd Go file updates when playing with colorization 2020-11-27 16:40:08 -08:00
Gregory Kurtzer
5181940952 Working through node and group configuration via CLI 2020-11-21 21:51:14 -08:00
Ian Kaneshiro
fff79227d8 Support pulling from docker daemon 2020-11-11 10:25:39 -08:00
Gregory Kurtzer
0c369270ef Beginning to break out wwbuild into wwctl with proper Go structure and Cobra 2020-11-09 20:42:12 -08:00
Ian Kaneshiro
8aec707f42 Use github.com/containers/image/v5 2020-11-06 17:08:32 -08:00
Ian Kaneshiro
70c73a84c3 Add VNFS image cache of oci registry based images 2020-11-06 16:34:36 -08:00
Gregory Kurtzer
3d1964f933 More updates including #WW... declarations in overlay configs 2020-11-03 23:42:47 -08:00
Gregory Kurtzer
c168aa9418 Initial commit of Warewulf v4 POC 2020-10-27 19:24:38 -04:00