Copy over legacy description; remove unnecessary/verbose log lines

This commit is contained in:
Nick Sardo 2017-07-17 17:14:43 -07:00
parent 26fccdc48b
commit 25b2723b33
4 changed files with 12 additions and 6 deletions

View file

@ -191,7 +191,6 @@ func (n *Namer) ParseName(name string) *NameComponents {
// NameBelongsToCluster checks if a given name is tagged with this cluster's UID.
func (n *Namer) NameBelongsToCluster(name string) bool {
if !strings.HasPrefix(name, "k8s-") {
glog.V(4).Infof("%v not part of cluster", name)
return false
}
parts := strings.Split(name, clusterNameDelimiter)
@ -203,7 +202,6 @@ func (n *Namer) NameBelongsToCluster(name string) bool {
return false
}
if len(parts) > 2 {
glog.Warningf("Too many parts to name %v, ignoring", name)
return false
}
return parts[1] == clusterName