some really final log output after creating/deleting nodes
This commit is contained in:
parent
6223601cdf
commit
cc544a273e
@ -55,6 +55,7 @@ func NewCmdNodeCreate() *cobra.Command {
|
||||
log.Errorf("Failed to add nodes to cluster '%s'", cluster.Name)
|
||||
log.Fatalln(err)
|
||||
}
|
||||
log.Infof("Successfully created %d node(s)!", len(nodes))
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,7 @@ func NewCmdNodeDelete() *cobra.Command {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
}
|
||||
log.Infof("Successfully deleted %d node(s)!", len(nodes))
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@ -207,6 +207,7 @@ func NodeAddToCluster(ctx context.Context, runtime runtimes.Runtime, node *k3d.N
|
||||
|
||||
// if it's a server node, then update the loadbalancer configuration
|
||||
if node.Role == k3d.ServerRole {
|
||||
log.Infoln("Updating loadbalancer config to include new server node(s)")
|
||||
if err := UpdateLoadbalancerConfig(ctx, runtime, cluster); err != nil {
|
||||
if !errors.Is(err, LBConfigErrHostNotFound) {
|
||||
return fmt.Errorf("error updating loadbalancer: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user