Add trailing newline to stats response
This was just an annoyance when working with the API from a terminal. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -117,17 +117,7 @@ func runRootCommand(ctx context.Context, s *provider.Store, c Opts) error {
|
||||
|
||||
return nil
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
nodeutil.WithClient(clientSet),
|
||||
setAuth(c.NodeName, apiConfig),
|
||||
nodeutil.WithTLSConfig(
|
||||
nodeutil.WithKeyPairFromPath(apiConfig.CertPath, apiConfig.KeyPath),
|
||||
maybeCA(apiConfig.CACertPath),
|
||||
),
|
||||
nodeutil.AttachProviderRoutes(mux),
|
||||
=======
|
||||
nodeutil.WithBootstrapFromRestConfig(),
|
||||
>>>>>>> 1eab7362 (Update mock CLI to use bootstrapper)
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -48,6 +48,7 @@ func HandlePodStatsSummary(h PodStatsSummaryHandlerFunc) http.HandlerFunc {
|
||||
if _, err := w.Write(b); err != nil {
|
||||
return errors.Wrap(err, "could not write to client")
|
||||
}
|
||||
_, _ = w.Write([]byte("\n"))
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ func (n *Node) Run(ctx context.Context) (retErr error) {
|
||||
}
|
||||
|
||||
if n.caController != nil {
|
||||
go n.caController.Run(1, ctx.Done())
|
||||
go n.caController.Run(ctx, 1)
|
||||
}
|
||||
|
||||
cancelHTTP, err := n.runHTTP(ctx)
|
||||
@@ -217,7 +217,7 @@ func (n *Node) Err() error {
|
||||
// NodeOpt is used as functional options when configuring a new node in NewNodeFromClient
|
||||
type NodeOpt func(c *NodeConfig) error
|
||||
|
||||
type caController interface{ Run(int, <-chan struct{}) }
|
||||
type caController interface{ Run(context.Context, int) }
|
||||
|
||||
// NodeConfig is used to hold configuration items for a Node.
|
||||
// It gets used in conjection with NodeOpt in NewNodeFromClient
|
||||
|
||||
Reference in New Issue
Block a user