mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-16 15:35:42 +02:00
fix: correct package name from computeblade-agent to compute-blade-agent (#47)
* fix: correct package name from computeblade-agent to compute-blade-agent * fix: update autoinstall script to use correct GitHub repository format and improve error handling --------- Co-authored-by: Matthias Duve <morzan1001@mail.runforest.run>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Default configuration for the computeblade-agent
|
||||
# Default configuration for the compute-blade-agent
|
||||
|
||||
log:
|
||||
mode: production # production, development
|
||||
@@ -6,7 +6,7 @@ log:
|
||||
# Listen configuration
|
||||
listen:
|
||||
metrics: ":9666"
|
||||
grpc: /tmp/computeblade-agent.sock
|
||||
grpc: /tmp/compute-blade-agent.sock
|
||||
|
||||
# Hardware abstraction layer configuration
|
||||
hal:
|
||||
|
||||
@@ -34,7 +34,7 @@ func main() {
|
||||
viper.AutomaticEnv()
|
||||
viper.SetConfigName("config")
|
||||
viper.SetConfigType("yaml")
|
||||
viper.AddConfigPath("/etc/computeblade-agent")
|
||||
viper.AddConfigPath("/etc/compute-blade-agent")
|
||||
|
||||
// Load potential file configs
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
@@ -52,7 +52,7 @@ func main() {
|
||||
panic(fmt.Errorf("invalid log.mode: %s", logMode))
|
||||
}
|
||||
|
||||
zapLogger := baseLogger.With(zap.String("app", "computeblade-agent"))
|
||||
zapLogger := baseLogger.With(zap.String("app", "compute-blade-agent"))
|
||||
defer func() {
|
||||
_ = zapLogger.Sync()
|
||||
}()
|
||||
@@ -84,7 +84,7 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
log.FromContext(ctx).Info("Bootstrapping computeblade-agent", zap.String("version", viper.GetString("version")))
|
||||
log.FromContext(ctx).Info("Bootstrapping compute-blade-agent", zap.String("version", viper.GetString("version")))
|
||||
computebladeAgent, err := agent.NewComputeBladeAgent(ctx, cbAgentConfig)
|
||||
if err != nil {
|
||||
log.FromContext(ctx).Error("Failed to create agent", zap.Error(err))
|
||||
|
||||
@@ -40,7 +40,7 @@ func runIdentity(cmd *cobra.Command, _ []string) error {
|
||||
event = bladeapiv1alpha1.Event_IDENTIFY_CONFIRM
|
||||
}
|
||||
|
||||
// Emit the event to the computeblade-agent
|
||||
// Emit the event to the compute-blade-agent
|
||||
_, err = client.EmitEvent(ctx, &bladeapiv1alpha1.EmitEventRequest{Event: event})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -29,7 +29,7 @@ var (
|
||||
|
||||
func init() {
|
||||
rootCmd.PersistentFlags().
|
||||
StringVar(&grpcAddr, "addr", "unix:///tmp/computeblade-agent.sock", "address of the computeblade-agent gRPC server")
|
||||
StringVar(&grpcAddr, "addr", "unix:///tmp/compute-blade-agent.sock", "address of the compute-blade-agent gRPC server")
|
||||
rootCmd.PersistentFlags().DurationVar(&timeout, "timeout", time.Minute, "timeout for gRPC requests")
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ func clientFromContext(ctx context.Context) bladeapiv1alpha1.BladeAgentServiceCl
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "bladectl",
|
||||
Short: "bladectl interacts with the computeblade-agent and allows you to manage hardware-features of your compute blade(s)",
|
||||
Short: "bladectl interacts with the compute-blade-agent and allows you to manage hardware-features of your compute blade(s)",
|
||||
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
|
||||
origCtx := cmd.Context()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user