Skip to content

Commit e5b6636

Browse files
authored
chore: fix function names in comment (#11280)
Signed-off-by: racequite <quiterace@gmail.com>
1 parent 95554dc commit e5b6636

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/ingress/errors/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func IsValidationError(e error) bool {
137137
return ok
138138
}
139139

140-
// NewValidationError returns a new LocationDenied error
140+
// NewRiskyAnnotations returns a new LocationDenied error
141141
func NewRiskyAnnotations(name string) error {
142142
return RiskyAnnotationError{
143143
Reason: fmt.Errorf("annotation group %s contains risky annotation based on ingress configuration", name),

internal/ingress/status/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func statusAddressFromService(service string, kubeClient clientset.Interface) ([
393393
return nil, fmt.Errorf("unable to extract IP address/es from service %v", service)
394394
}
395395

396-
// stringInSlice returns true if s is in list
396+
// stringInIngresses returns true if s is in list
397397
func stringInIngresses(s string, list []v1.IngressLoadBalancerIngress) bool {
398398
for _, v := range list {
399399
if v.IP == s || v.Hostname == s {

0 commit comments

Comments
 (0)