chore: some improvements in bladectl sub-command handling, error logging, and CI (#51)

chore(ci): update Go setup action to v5 and simplify caching configuration for improved performance
chore(release): update Go setup action to v5 and simplify caching configuration for improved performance
fix(.gitignore): add .idea directory to ignore list to prevent IDE files from being tracked
feat(goreleaser): add versioning information to builds for better traceability
feat(agent): expose version, commit, and date information in logs for better tracking
feat(bladectl): implement command structure for managing compute-blade features
fix(bladectl): improve error handling in identify command for better user feedback
chore(go.mod): update dependencies to latest versions for improved stability and features
This commit is contained in:
Cedric Kienzler
2025-05-03 11:13:37 +02:00
committed by GitHub
parent c5ff21d522
commit ec6229ad86
13 changed files with 162 additions and 116 deletions

View File

@@ -22,6 +22,12 @@ import (
"google.golang.org/grpc"
)
var (
Version string
Commit string
Date string
)
func main() {
var wg sync.WaitGroup
@@ -84,7 +90,7 @@ func main() {
}
}()
log.FromContext(ctx).Info("Bootstrapping compute-blade-agent", zap.String("version", viper.GetString("version")))
log.FromContext(ctx).Info("Bootstrapping compute-blade-agent", zap.String("version", Version), zap.String("commit", Commit), zap.String("date", Date))
computebladeAgent, err := agent.NewComputeBladeAgent(ctx, cbAgentConfig)
if err != nil {
log.FromContext(ctx).Error("Failed to create agent", zap.Error(err))