mirror of https://github.com/kubernetes/kops.git
Logging cleanup
This commit is contained in:
parent
a3fa83ac34
commit
c3fd29a0e9
|
@ -204,7 +204,7 @@ func RunCreateCluster(f *util.Factory, cmd *cobra.Command, args []string, out io
|
||||||
return fmt.Errorf("unknown networking mode %q", c.Networking)
|
return fmt.Errorf("unknown networking mode %q", c.Networking)
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.Infof("networking selected %s, %s", c.Networking, cluster.Spec.Networking)
|
glog.V(4).Infof("networking mode=%s => %s", c.Networking, fi.DebugAsJsonString(cluster.Spec.Networking))
|
||||||
|
|
||||||
if c.Zones != "" {
|
if c.Zones != "" {
|
||||||
existingZones := make(map[string]*api.ClusterZoneSpec)
|
existingZones := make(map[string]*api.ClusterZoneSpec)
|
||||||
|
|
|
@ -50,6 +50,7 @@ func buildCloudupTags(cluster *api.Cluster) (sets.String, error) {
|
||||||
} else if networking.CNI != nil || networking.Weave != nil {
|
} else if networking.CNI != nil || networking.Weave != nil {
|
||||||
tags.Insert("_networking_cni")
|
tags.Insert("_networking_cni")
|
||||||
} else if networking.Kopeio != nil {
|
} else if networking.Kopeio != nil {
|
||||||
|
// TODO combine with the External
|
||||||
// Kopeio is based on kubenet / external
|
// Kopeio is based on kubenet / external
|
||||||
// TODO combine with External
|
// TODO combine with External
|
||||||
tags.Insert("_networking_kubenet", "_networking_external")
|
tags.Insert("_networking_kubenet", "_networking_external")
|
||||||
|
@ -123,7 +124,7 @@ func buildCloudupTags(cluster *api.Cluster) (sets.String, error) {
|
||||||
tags.Insert(versionTag)
|
tags.Insert(versionTag)
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.Infof("tags: %s", tags.List())
|
glog.V(4).Infof("tags: %s", tags.List())
|
||||||
|
|
||||||
return tags, nil
|
return tags, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue