feat(bladectl): add server version information to output (#100)

add server version information to output
ensure the blade-name is always set

---------

Co-authored-by: Cedric Kienzler <cedric@specht-labs.de>
This commit is contained in:
Cedric Kienzler
2025-06-07 00:14:29 +02:00
committed by GitHub
parent 4acfa27158
commit 062e36e33a
13 changed files with 326 additions and 128 deletions

View File

@@ -1,6 +1,8 @@
package agent
import (
"time"
"github.com/compute-blade-community/compute-blade-agent/pkg/fancontroller"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
@@ -51,3 +53,10 @@ type ComputeBladeAgentConfig struct {
ComputeBladeHalOpts hal.ComputeBladeHalOpts `mapstructure:"hal"`
}
// ComputeBladeAgentInfo represents metadata information about a compute blade agent, including version, commit, and build time.
type ComputeBladeAgentInfo struct {
Version string
Commit string
BuildTime time.Time
}