Update comment

This commit is contained in:
Donny Xia
2020-07-20 13:06:49 -07:00
parent 15bc399d5a
commit b7f7536cfa

View File

@@ -625,9 +625,8 @@ func (m *resWrangler) SubsetThatCouldBeReferencedByResource(
return result
}
// getNamespacesForRoleBinding returns referenced namespace map if the inputRes is
// a RoleBinding and the subject is ServiceAccount in another namespace. Otherwise it returns
// {}.
// getNamespacesForRoleBinding returns referenced ServiceAccount namespaces if the inputRes is
// a RoleBinding
func getNamespacesForRoleBinding(inputRes *resource.Resource) map[string]bool {
res := make(map[string]bool)
if inputRes.GetKind() != "RoleBinding" {