Agent can now poll osupgrade resources from cluster
This commit is contained in:
@@ -35,7 +35,7 @@ func NewCmdAgent(flags *genericclioptions.ConfigFlags) *cobra.Command {
|
||||
rendered := templates.DefaultMonoKSConfig(vals)
|
||||
cfg = &rendered
|
||||
|
||||
klog.InfoS("starting init", "node", cfg.Spec.NodeName, "envFile", envFile)
|
||||
klog.InfoS("starting agent", "node", cfg.Spec.NodeName, "envFile", envFile)
|
||||
|
||||
clients, err := kube.NewClients(flags)
|
||||
if err != nil {
|
||||
|
||||
@@ -14,7 +14,7 @@ func NewCmdVersion() *cobra.Command {
|
||||
Short: "Print the version information",
|
||||
RunE: func(cmd *cobra.Command, _ []string) error {
|
||||
|
||||
_, err := fmt.Fprintln(cmd.OutOrStdout(), buildInfo.Version)
|
||||
_, err := fmt.Fprintln(cmd.OutOrStdout(), fmt.Sprintf("%s %s(%s)", buildInfo.Version, buildInfo.GitRevision, buildInfo.Timestamp))
|
||||
return err
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user