Move net mode log after it is known in create

Signed-off-by: Maciej Kwiek <maciej@covalent.io>
This commit is contained in:
Maciej Kwiek 2018-01-18 14:29:56 +01:00
parent 478ea444cf
commit 47590720ce
1 changed files with 2 additions and 2 deletions

View File

@ -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
}