chore: fix function names in comment (#11280)
Signed-off-by: racequite <quiterace@gmail.com>
This commit is contained in:
parent
95554dccd2
commit
e5b6636903
2 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue