chore: fix function names in comment (#11280)

Signed-off-by: racequite <quiterace@gmail.com>
This commit is contained in:
racequite 2024-04-19 17:25:09 +08:00 committed by GitHub
parent 95554dccd2
commit e5b6636903
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),

View file

@ -393,7 +393,7 @@ func statusAddressFromService(service string, kubeClient clientset.Interface) ([
return nil, fmt.Errorf("unable to extract IP address/es from service %v", service)
}
// stringInSlice returns true if s is in list
// stringInIngresses returns true if s is in list
func stringInIngresses(s string, list []v1.IngressLoadBalancerIngress) bool {
for _, v := range list {
if v.IP == s || v.Hostname == s {