Return a pointer instead of a copy.
This will allow later to change upstream to use a pointer receiver
for this interface so that copies will stop happening.
@@ -22,7 +22,7 @@ func ToDefaultAuthorizationAttributes(user user.Info, namespace string, in autho
resource = tokens[0]
}
- return authorizer.AttributesRecord{
+ return &authorizer.AttributesRecord{
User: user,
Verb: in.Verb,
Namespace: namespace,
