chore: fix function names in comment (#11281)

Signed-off-by: racequite <quiterace@gmail.com>
Co-authored-by: racequite <quiterace@gmail.com>
This commit is contained in:
k8s-infra-cherrypick-robot 2024-04-19 03:23:40 -07:00 committed by GitHub
parent 213b723d81
commit c5ffbd3cf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ func IsValidationError(e error) bool {
return ok
}
// NewValidationError returns a new LocationDenied error
// NewRiskyAnnotations returns a new LocationDenied error
func NewRiskyAnnotations(name string) error {
return RiskyAnnotationError{
Reason: fmt.Errorf("annotation group %s contains risky annotation based on ingress configuration", name),