From 47590720ce93e303f5790b48563d9c96a19ed9ff Mon Sep 17 00:00:00 2001 From: Maciej Kwiek Date: Thu, 18 Jan 2018 14:29:56 +0100 Subject: [PATCH] Move net mode log after it is known in create Signed-off-by: Maciej Kwiek --- cmd/kops/create_cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kops/create_cluster.go b/cmd/kops/create_cluster.go index 1acf6a5b0c..262d19ea65 100644 --- a/cmd/kops/create_cluster.go +++ b/cmd/kops/create_cluster.go @@ -419,8 +419,6 @@ func RunCreateCluster(f *util.Factory, out io.Writer, c *CreateClusterOptions) e } cluster.Spec.ConfigBase = configBase.Path() - glog.V(4).Infof("networking mode=%s => %s", c.Networking, fi.DebugAsJsonString(cluster.Spec.Networking)) - // In future we could change the default if the flag is not specified, e.g. in 1.7 maybe the default is RBAC? cluster.Spec.Authorization = &api.AuthorizationSpec{} if strings.EqualFold(c.Authorization, AuthorizationFlagAlwaysAllow) { @@ -854,6 +852,8 @@ func RunCreateCluster(f *util.Factory, out io.Writer, c *CreateClusterOptions) e return fmt.Errorf("unknown networking mode %q", c.Networking) } + glog.V(4).Infof("networking mode=%s => %s", c.Networking, fi.DebugAsJsonString(cluster.Spec.Networking)) + if c.NetworkCIDR != "" { cluster.Spec.NetworkCIDR = c.NetworkCIDR }