Skip to content

Commit

Permalink
Merge pull request #175 from andrewshan/main
Browse files Browse the repository at this point in the history
fix: remove namespace owner check
  • Loading branch information
andrewshan authored Dec 2, 2021
2 parents 4a33e9e + ae2f4fb commit 593ba9d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions naming/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,6 @@ func checkCreateNamespace(req *api.Namespace) *api.Response {
if err := checkResourceName(req.GetName()); err != nil {
return api.NewNamespaceResponse(api.InvalidNamespaceName, req)
}

if err := checkResourceOwners(req.GetOwners()); err != nil {
return api.NewNamespaceResponse(api.InvalidNamespaceOwners, req)
}

return nil
}

Expand All @@ -428,11 +423,6 @@ func checkReviseNamespace(ctx context.Context, req *api.Namespace) *api.Response
if err := checkResourceName(req.GetName()); err != nil {
return api.NewNamespaceResponse(api.InvalidNamespaceName, req)
}

if token := parseNamespaceToken(ctx, req); token == "" {
return api.NewNamespaceResponse(api.InvalidNamespaceToken, req)
}

return nil
}

Expand Down

0 comments on commit 593ba9d

Please sign in to comment.