Remove remaining gRPC references with additional tests

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2026-03-21 21:42:16 -06:00
parent 4cc6d03f2f
commit c2cfe513d7
21 changed files with 339 additions and 4332 deletions

View File

@@ -3,24 +3,12 @@ package version
import (
"fmt"
"github.com/warewulf/warewulf/internal/pkg/api/routes/wwapiv1"
warewulfconf "github.com/warewulf/warewulf/internal/pkg/config"
)
/*
Return the version of wwctl
*/
func GetVersion() string {
func Version() string {
return fmt.Sprintf("%s-%s", warewulfconf.Version, warewulfconf.Release)
}
/*
Returns the version of the api via grpc
*/
func Version() (versionResponse *wwapiv1.VersionResponse) {
versionResponse = &wwapiv1.VersionResponse{}
versionResponse.ApiPrefix = "rc1"
versionResponse.ApiVersion = "1"
versionResponse.WarewulfVersion = GetVersion()
return
}