We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2458531 commit fc4b2c6Copy full SHA for fc4b2c6
pkg/template/registry/templateinstance/strategy.go
@@ -136,7 +136,7 @@ func (s *templateInstanceStrategy) validateImpersonation(templateInstance *templ
136
Group: templateapi.GroupName,
137
Resource: "templateinstances",
138
}); err != nil {
139
- return field.ErrorList{field.Forbidden(field.NewPath("spec.requester.username"), fmt.Sprintf("impersonation forbidden: %v", err))}
+ return field.ErrorList{field.Forbidden(field.NewPath("spec.requester.username"), "you do not have permission to set username")}
140
}
141
142
0 commit comments