Skip to content

Commit

Permalink
description for allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvindthiru committed Jun 15, 2023
1 parent e05e486 commit f06af33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (v *fleetResourceValidator) Handle(_ context.Context, req admission.Request
response = v.handleCRD(req)
default:
klog.V(2).InfoS("resource is not monitored by fleet resource validator webhook", "GVK", req.Kind.String())
response = admission.Allowed("")
response = admission.Allowed(fmt.Sprintf("user: %s in groups: %v is allowed to modify resource with GVK: %s", req.UserInfo.Username, req.UserInfo.Groups, req.Kind.String()))
}
}
return response
Expand Down

0 comments on commit f06af33

Please sign in to comment.