Commit c365f195 authored by Josh Yan's avatar Josh Yan
Browse files

directly use isvalidpart

parent 298c996e
......@@ -252,13 +252,7 @@ func (n Name) DisplayShortest() string {
}
func IsValidNamespace(namespace string) bool {
name := Name{
Host: "h",
Model: "m",
Namespace: namespace,
Tag: "t",
}
return name.IsValid()
return isValidPart(kindNamespace, namespace)
}
// IsValid reports whether all parts of the name are present and valid. The
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment