From 832c75eb9ba7682432f9957cdf1264c8a2bdbd90 Mon Sep 17 00:00:00 2001 From: SataQiu <1527062125@qq.com> Date: Mon, 16 Mar 2020 12:01:13 +0800 Subject: [PATCH 1/2] clusterctl: log which value clusterctl mover is setting when pausing --- cmd/clusterctl/client/cluster/mover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/clusterctl/client/cluster/mover.go b/cmd/clusterctl/client/cluster/mover.go index d5bff891d30e..b7b63279693f 100644 --- a/cmd/clusterctl/client/cluster/mover.go +++ b/cmd/clusterctl/client/cluster/mover.go @@ -286,7 +286,7 @@ func setClusterPause(proxy Proxy, clusters []*node, value bool) error { patch := client.RawPatch(types.MergePatchType, []byte(fmt.Sprintf("{\"spec\":{\"paused\":%t}}", value))) for _, cluster := range clusters { - log.V(5).Info("Set Cluster.Spec.Paused", "Cluster", cluster.identity.Name, "Namespace", cluster.identity.Namespace) + log.V(5).Info("Set Cluster.Spec.Paused", value, "Cluster", cluster.identity.Name, "Namespace", cluster.identity.Namespace) cFrom, err := proxy.NewClient() if err != nil { From 95e7d7d9cfbb7d995f7c03e561c4ba2aacb013c2 Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Mon, 16 Mar 2020 08:55:12 -0700 Subject: [PATCH 2/2] clusterctl: log which value clusterctl mover is setting when pausing (add key) Co-Authored-By: Joel Speed --- cmd/clusterctl/client/cluster/mover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/clusterctl/client/cluster/mover.go b/cmd/clusterctl/client/cluster/mover.go index b7b63279693f..2fd6082b11d1 100644 --- a/cmd/clusterctl/client/cluster/mover.go +++ b/cmd/clusterctl/client/cluster/mover.go @@ -286,7 +286,7 @@ func setClusterPause(proxy Proxy, clusters []*node, value bool) error { patch := client.RawPatch(types.MergePatchType, []byte(fmt.Sprintf("{\"spec\":{\"paused\":%t}}", value))) for _, cluster := range clusters { - log.V(5).Info("Set Cluster.Spec.Paused", value, "Cluster", cluster.identity.Name, "Namespace", cluster.identity.Namespace) + log.V(5).Info("Set Cluster.Spec.Paused", "Paused", value, "Cluster", cluster.identity.Name, "Namespace", cluster.identity.Namespace) cFrom, err := proxy.NewClient() if err != nil {